AH Updates. IO-594

This commit is contained in:
Patrick Fic
2021-03-05 10:30:00 -08:00
parent 22f3f20882
commit 89383dccff
2 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,9 @@ module.exports = {
lessLoaderOptions: {
lessOptions: {
modifyVars: {
"@primary-color": "#1DA57A",
...(process.env.NODE_ENV === "development"
? { "@primary-color": "#a51d1d" }
: { "@primary-color": "#1DA57A" }),
// "@primary-color": " #1890ff", // primary color for all components
// "@link-color": "#1890ff", // link color
// "@success-color": "#52c41a", // success state color

View File

@@ -354,7 +354,7 @@ const StatusMapping = (status, md_ro_statuses) => {
else if (status === default_invoiced || status === default_exported)
return "CLO";
else if (status === default_void) return "CLO";
else if (md_ro_statuses.production_statuses.include(status)) return "IPR";
else if (md_ro_statuses.production_statuses.includes(status)) return "IPR";
else return "UNDEFINED";
// default: return "UNDEFINED"
@@ -362,7 +362,7 @@ const StatusMapping = (status, md_ro_statuses) => {
const GenerateDetailLines = (line, statuses) => {
const ret = {
BackOrdered: line.status === statuses.default_bo ? "Y" : "N",
BackOrdered: line.status === statuses.default_bo ? "1" : "0",
Cost:
line.billlines[0] &&
(line.billlines[0].actual_cost * line.billlines[0].quantity).toFixed(2),