diff --git a/posawesome/public/js/posapp/components/pos/Invoice.vue b/posawesome/public/js/posapp/components/pos/Invoice.vue index a758f5da..12158fe5 100644 --- a/posawesome/public/js/posapp/components/pos/Invoice.vue +++ b/posawesome/public/js/posapp/components/pos/Invoice.vue @@ -2759,6 +2759,10 @@ export default { this.additional_discount_percentage = 0; } }, + invoice_doc(){ + const is_return = this.invoice_doc.is_return; + evntBus.$emit('disable_items_list', is_return); + }, }, }; diff --git a/posawesome/public/js/posapp/components/pos/ItemsSelector.vue b/posawesome/public/js/posapp/components/pos/ItemsSelector.vue index 443c669f..f3526626 100644 --- a/posawesome/public/js/posapp/components/pos/ItemsSelector.vue +++ b/posawesome/public/js/posapp/components/pos/ItemsSelector.vue @@ -3,6 +3,7 @@ { + this.is_return = data || 0; + }); }, };