Removed Price as necesatiy

This commit is contained in:
Luca Haid
2024-11-27 12:54:22 +01:00
parent 2225e89a22
commit 6ee92de994

View File

@@ -278,10 +278,9 @@ Vue.component('warehouse-shipping-note-modal-positions-entry', {
// TODO: if articlePacket is needed we need to implement this
async createOrUpdate() {
if (!this.amount) return this.window.notify('error', 'Bitte füllen sie die Menge aus');
if (!this.price) return this.window.notify('error', 'Bitte füllen sie den Preis aus');
const data = {
amount: this.amount,
price: parseFloat(this.price)
price: parseFloat(this.price) ?? ''
}
if (!this.articleId && this.$refs.article.displayValue) {
data.articleText = this.$refs.article.displayValue;