Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions posawesome/public/js/posapp/components/pos/Invoice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
},
};
</script>
Expand Down
5 changes: 5 additions & 0 deletions posawesome/public/js/posapp/components/pos/ItemsSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<v-card
class="selection mx-auto grey lighten-5 mt-3"
style="max-height: 75vh; height: 75vh"
:disabled="is_return==1"
>
<v-progress-linear
:active="loading"
Expand Down Expand Up @@ -190,6 +191,7 @@ export default {
customer_price_list: null,
new_line: false,
qty: 1,
is_return: 0,
}),

watch: {
Expand Down Expand Up @@ -666,6 +668,9 @@ export default {

mounted() {
this.scan_barcoud();
evntBus.$on("disable_items_list", (data) => {
this.is_return = data || 0;
});
},
};
</script>
Expand Down