mirror of
https://github.com/frappe/books.git
synced 2024-11-14 09:24: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.toggleModal('Payment', false);
|
||||
},
|
||||
clearValues() {
|
||||
async clearValues() {
|
||||
this.setSinvDoc();
|
||||
this.itemSerialNumbers = {};
|
||||
|
||||
this.cashAmount = fyo.pesa(0);
|
||||
this.transferAmount = fyo.pesa(0);
|
||||
await this.setItems();
|
||||
|
||||
if (!this.defaultCustomer) {
|
||||
this.sinvDoc.party = '';
|
||||
}
|
||||
},
|
||||
toggleModal(modal: ModalName, value?: boolean) {
|
||||
if (value) {
|
||||
|
Loading…
Reference in New Issue
Block a user