Default Payment Mode
POS drafted, user retrieves the record and sets the default payment mode so that Zero payment is not done.
This commit is contained in:
parent
e9f2b176bc
commit
2b6bf82d61
@ -1638,6 +1638,14 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
|
||||
this.si_docs = this.get_doc_from_localstorage();
|
||||
if (this.name) {
|
||||
this.update_invoice()
|
||||
//to retrieve and set the default payment
|
||||
invoice_data[this.name] = this.frm.doc;
|
||||
invoice_data[this.name].payments[0].amount = this.frm.doc.net_total
|
||||
invoice_data[this.name].payments[0].base_amount = this.frm.doc.net_total
|
||||
|
||||
this.frm.doc.paid_amount = this.frm.doc.net_total
|
||||
this.frm.doc.outstanding_amount = 0
|
||||
|
||||
} else {
|
||||
this.name = $.now();
|
||||
this.frm.doc.offline_pos_name = this.name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user