mirror of
https://github.com/frappe/books.git
synced 2025-01-03 07:12:21 +00:00
Merge pull request #973 from AbleKSaju/fix-pos-datas
fix: refresh item quantities & clear previous customer after POS purchase
This commit is contained in:
commit
d2c307d8a3
@ -788,16 +788,21 @@ export default defineComponent({
|
||||
|
||||
async afterTransaction() {
|
||||
await this.setItemQtyMap();
|
||||
this.clearValues();
|
||||
await this.clearValues();
|
||||
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