Merge pull request #6982 from rohitwaghchaure/pos_is_pos_default_issue
[Fix] Onload pull pos profile data for IS POS invoice
This commit is contained in:
commit
05d0cd9574
@ -20,6 +20,13 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
|
|||||||
erpnext.queries.setup_queries(this.frm, "Warehouse", function() {
|
erpnext.queries.setup_queries(this.frm, "Warehouse", function() {
|
||||||
return erpnext.queries.warehouse(me.frm.doc);
|
return erpnext.queries.warehouse(me.frm.doc);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(this.frm.doc.__islocal && this.frm.doc.is_pos) {
|
||||||
|
//Load pos profile data on the invoice if the default value of Is POS is 1
|
||||||
|
|
||||||
|
me.frm.script_manager.trigger("is_pos");
|
||||||
|
me.frm.refresh_fields();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
refresh: function(doc, dt, dn) {
|
refresh: function(doc, dt, dn) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user