mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-02 10:04:40 +00:00
fix: pos item details fetch uoms on stock settings allow_uom_with_conversion_rate_defined_in_item configuration (backport #48178) (#48179)
fix: pos item details fetch uoms on stock settings allow_uom_with_conversion_rate_defined_in_item configuration (#48178)
(cherry picked from commit 4aa4942a17)
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -321,6 +321,15 @@ erpnext.PointOfSale.ItemDetails = class {
|
|||||||
me.conversion_factor_control.df.read_only = item_row.stock_uom == this.value;
|
me.conversion_factor_control.df.read_only = item_row.stock_uom == this.value;
|
||||||
me.conversion_factor_control.refresh();
|
me.conversion_factor_control.refresh();
|
||||||
};
|
};
|
||||||
|
this.uom_control.df.get_query = () => {
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.get_item_uom_query",
|
||||||
|
filters: {
|
||||||
|
item_code: me.current_item.item_code,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
this.uom_control.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
frappe.model.on("POS Invoice Item", "*", (fieldname, value, item_row) => {
|
frappe.model.on("POS Invoice Item", "*", (fieldname, value, item_row) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user