mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-22 02:40:02 +00:00
Co-authored-by: Vishnu Priya Baskaran <145791817+ervishnucs@users.noreply.github.com> Co-authored-by: Afsal Syed <afsalsyed12@gmail.com>
This commit is contained in:
@@ -837,6 +837,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: var(--padding-lg);
|
padding: var(--padding-lg);
|
||||||
padding-top: var(--padding-md);
|
padding-top: var(--padding-md);
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
> .item-details-header {
|
> .item-details-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -83,6 +83,17 @@ erpnext.PointOfSale.ItemDetails = class {
|
|||||||
this.item_row = item;
|
this.item_row = item;
|
||||||
this.currency = this.events.get_frm().doc.currency;
|
this.currency = this.events.get_frm().doc.currency;
|
||||||
|
|
||||||
|
if (item.has_serial_no == null || item.has_batch_no == null) {
|
||||||
|
const r = await frappe.db.get_value("Item", item.item_code, [
|
||||||
|
"has_serial_no",
|
||||||
|
"has_batch_no",
|
||||||
|
]);
|
||||||
|
if (r && r.message) {
|
||||||
|
item.has_serial_no = r.message.has_serial_no;
|
||||||
|
item.has_batch_no = r.message.has_batch_no;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.current_item = item;
|
this.current_item = item;
|
||||||
|
|
||||||
this.render_dom(item);
|
this.render_dom(item);
|
||||||
|
|||||||
Reference in New Issue
Block a user