Merge branch 'feature/partner-search-preorder' into 'master'

Removed Price as necesatiy

See merge request fronk/thetool!766
This commit is contained in:
Luca Haid
2024-11-27 11:54:41 +00:00

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;