mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Merge pull request #23075 from ruchamahabal/fix-pos-print
fix: Print Language for Customer not set for POS Invoice
This commit is contained in:
@@ -110,7 +110,10 @@ erpnext.PointOfSale.PastOrderSummary = class {
|
|||||||
{fieldname:'print', fieldtype:'Data', label:'Print Preview'}
|
{fieldname:'print', fieldtype:'Data', label:'Print Preview'}
|
||||||
],
|
],
|
||||||
primary_action: () => {
|
primary_action: () => {
|
||||||
this.events.get_frm().print_preview.printit(true);
|
const frm = this.events.get_frm();
|
||||||
|
frm.doc = this.doc;
|
||||||
|
frm.print_preview.lang_code = frm.doc.language;
|
||||||
|
frm.print_preview.printit(true);
|
||||||
},
|
},
|
||||||
primary_action_label: __('Print'),
|
primary_action_label: __('Print'),
|
||||||
});
|
});
|
||||||
@@ -271,6 +274,7 @@ erpnext.PointOfSale.PastOrderSummary = class {
|
|||||||
// this.print_dialog.show();
|
// this.print_dialog.show();
|
||||||
const frm = this.events.get_frm();
|
const frm = this.events.get_frm();
|
||||||
frm.doc = this.doc;
|
frm.doc = this.doc;
|
||||||
|
frm.print_preview.lang_code = frm.doc.language;
|
||||||
frm.print_preview.printit(true);
|
frm.print_preview.printit(true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user