2
0
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:
AbleKSaju 2024-10-09 16:02:48 +05:30
parent 1e41c0803c
commit c06ec88cb1

View File

@ -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) {