mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
fix: post submission invoice recipt screen
This commit is contained in:
@@ -299,10 +299,12 @@ erpnext.PointOfSale.PastOrderSummary = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
load_summary_of(doc, after_submission=false) {
|
load_summary_of(doc, after_submission=false) {
|
||||||
this.$summary_wrapper.removeClass("d-none");
|
|
||||||
|
|
||||||
this.toggle_summary_placeholder(false)
|
this.toggle_summary_placeholder(false)
|
||||||
|
|
||||||
|
after_submission ?
|
||||||
|
this.$summary_wrapper.css('grid-column', 'span 10 / span 10') :
|
||||||
|
this.$summary_wrapper.css('grid-column', 'span 6 / span 6')
|
||||||
|
|
||||||
this.doc = doc;
|
this.doc = doc;
|
||||||
|
|
||||||
this.attach_document_info(doc);
|
this.attach_document_info(doc);
|
||||||
|
|||||||
@@ -46,8 +46,9 @@ erpnext.PointOfSale.Payment = class {
|
|||||||
frappe.db.get_doc("POS Settings", undefined).then((doc) => {
|
frappe.db.get_doc("POS Settings", undefined).then((doc) => {
|
||||||
const fields = doc.invoice_fields;
|
const fields = doc.invoice_fields;
|
||||||
if (!fields.length) return;
|
if (!fields.length) return;
|
||||||
|
|
||||||
this.$invoice_fields = this.$invoice_fields_section.find('.invoice-fields');
|
this.$invoice_fields = this.$invoice_fields_section.find('.invoice-fields');
|
||||||
|
this.$invoice_fields.html('');
|
||||||
const frm = this.events.get_frm();
|
const frm = this.events.get_frm();
|
||||||
|
|
||||||
fields.forEach(df => {
|
fields.forEach(df => {
|
||||||
|
|||||||
Reference in New Issue
Block a user