mirror of
https://github.com/frappe/books.git
synced 2024-11-15 01:44:04 +00:00
fix: refresh item quantities and clear previous customer after POS purchase
This commit is contained in:
parent
1e41c0803c
commit
c06ec88cb1
@ -792,12 +792,17 @@ export default defineComponent({
|
|||||||
this.setSinvDoc();
|
this.setSinvDoc();
|
||||||
this.toggleModal('Payment', false);
|
this.toggleModal('Payment', false);
|
||||||
},
|
},
|
||||||
clearValues() {
|
async clearValues() {
|
||||||
this.setSinvDoc();
|
this.setSinvDoc();
|
||||||
this.itemSerialNumbers = {};
|
this.itemSerialNumbers = {};
|
||||||
|
|
||||||
this.cashAmount = fyo.pesa(0);
|
this.cashAmount = fyo.pesa(0);
|
||||||
this.transferAmount = fyo.pesa(0);
|
this.transferAmount = fyo.pesa(0);
|
||||||
|
await this.setItems();
|
||||||
|
|
||||||
|
if (!this.defaultCustomer) {
|
||||||
|
this.sinvDoc.party = '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
toggleModal(modal: ModalName, value?: boolean) {
|
toggleModal(modal: ModalName, value?: boolean) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user