diff --git a/erpnext/public/scss/point-of-sale.scss b/erpnext/public/scss/point-of-sale.scss index f51e83ffe31..c9e2361e842 100644 --- a/erpnext/public/scss/point-of-sale.scss +++ b/erpnext/public/scss/point-of-sale.scss @@ -1063,21 +1063,31 @@ justify-content: flex-end; padding-right: var(--padding-sm); - > .customer-name { - font-size: var(--text-2xl); - font-weight: 700; - } + > .customer-section { + margin-bottom: auto; - > .customer-email { - font-size: var(--text-md); - font-weight: 500; + > .customer-name { + font-size: var(--text-2xl); + font-weight: 700; + } + + > .customer-code { + font-size: var(--text-xs); + font-weight: 500; + color: var(--text-light); + } + + > .customer-email { + font-size: var(--text-md); + font-weight: 500; + } } > .cashier { font-size: var(--text-md); font-weight: 500; color: var(--gray-600); - margin-top: auto; + margin-top: var(--margin-md); } } @@ -1085,7 +1095,6 @@ display: flex; flex-direction: column; align-items: flex-end; - justify-content: space-between; > .paid-amount { font-size: var(--text-2xl); diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.py b/erpnext/selling/page/point_of_sale/point_of_sale.py index 89e001897dd..d8de762dcd3 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -338,7 +338,7 @@ def create_opening_voucher(pos_profile, company, balance_details): @frappe.whitelist() def get_past_order_list(search_term, status, limit=20): - fields = ["name", "grand_total", "currency", "customer", "posting_time", "posting_date"] + fields = ["name", "grand_total", "currency", "customer", "customer_name", "posting_time", "posting_date"] invoice_list = [] if search_term and status: diff --git a/erpnext/selling/page/point_of_sale/pos_past_order_list.js b/erpnext/selling/page/point_of_sale/pos_past_order_list.js index dda44f25299..5ea58a43c09 100644 --- a/erpnext/selling/page/point_of_sale/pos_past_order_list.js +++ b/erpnext/selling/page/point_of_sale/pos_past_order_list.js @@ -106,7 +106,7 @@ erpnext.PointOfSale.PastOrderList = class { - ${frappe.ellipsis(invoice.customer, 20)} + ${frappe.ellipsis(invoice.customer_name, 20)}
diff --git a/erpnext/selling/page/point_of_sale/pos_past_order_summary.js b/erpnext/selling/page/point_of_sale/pos_past_order_summary.js index cf775176c07..0a965c47f48 100644 --- a/erpnext/selling/page/point_of_sale/pos_past_order_summary.js +++ b/erpnext/selling/page/point_of_sale/pos_past_order_summary.js @@ -73,14 +73,18 @@ erpnext.PointOfSale.PastOrderSummary = class { get_upper_section_html(doc) { const { status } = doc; let indicator_color = ""; + const is_customer_naming_by_customer_name = frappe.sys_defaults.cust_master_name !== "Customer Name"; ["Paid", "Consolidated"].includes(status) && (indicator_color = "green"); status === "Draft" && (indicator_color = "red"); status === "Return" && (indicator_color = "grey"); return `
-
${doc.customer}
-
${this.customer_email}
+
+
${doc.customer_name}
+ ${is_customer_naming_by_customer_name ? `
${doc.customer}
` : ""} +
${this.customer_email}
+
${__("Sold by")}: ${doc.owner}