mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-28 19:18:32 +00:00
[fix] [minor] setup print fix in sales invoice
This commit is contained in:
@@ -38,7 +38,7 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte
|
||||
// if document is POS then change default print format to "POS Invoice"
|
||||
if(cur_frm.doc.is_pos && cur_frm.doc.docstatus===1) {
|
||||
locals.DocType[cur_frm.doctype].default_print_format = "POS Invoice";
|
||||
cur_frm.setup_print();
|
||||
cur_frm.setup_print_layout();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user