mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 11:15:10 +00:00
fix: incorrect color in the BOM Stock Report
(cherry picked from commit a8f03ebf7f)
This commit is contained in:
committed by
Mergify
parent
9c43e3a721
commit
001ed9e9ff
@@ -25,8 +25,9 @@ frappe.query_reports["BOM Stock Report"] = {
|
|||||||
],
|
],
|
||||||
"formatter": function(value, row, column, data, default_formatter) {
|
"formatter": function(value, row, column, data, default_formatter) {
|
||||||
value = default_formatter(value, row, column, data);
|
value = default_formatter(value, row, column, data);
|
||||||
|
|
||||||
if (column.id == "item") {
|
if (column.id == "item") {
|
||||||
if (data["enough_parts_to_build"] > 0) {
|
if (data["in_stock_qty"] >= data["required_qty"]) {
|
||||||
value = `<a style='color:green' href="/app/item/${data['item']}" data-doctype="Item">${data['item']}</a>`;
|
value = `<a style='color:green' href="/app/item/${data['item']}" data-doctype="Item">${data['item']}</a>`;
|
||||||
} else {
|
} else {
|
||||||
value = `<a style='color:red' href="/app/item/${data['item']}" data-doctype="Item">${data['item']}</a>`;
|
value = `<a style='color:red' href="/app/item/${data['item']}" data-doctype="Item">${data['item']}</a>`;
|
||||||
|
|||||||
Reference in New Issue
Block a user