记账凭证

This commit is contained in:
CRM8000 2024-11-22 11:03:03 +08:00
parent 6794ba6deb
commit d6be6b4b5a

View File

@ -864,12 +864,17 @@ PCL.define("PSI.SLN0002.Voucher.MainForm", {
if (value == 0 || isNaN(value)) {
return "";
} else {
return value;
const s = PCL.util.Format.number(value, "0,0.00");
if (value < 0) {
return `<span style='color:red'>${s}</span>`;
} else {
return s;
}
}
}
}, {
header: "贷方金额",
dataIndex: "crebit",
dataIndex: "credit",
menuDisabled: true,
sortable: false,
align: "right",
@ -879,7 +884,12 @@ PCL.define("PSI.SLN0002.Voucher.MainForm", {
if (value == 0 || isNaN(value)) {
return "";
} else {
return value;
const s = PCL.util.Format.number(value, "0,0.00");
if (value < 0) {
return `<span style='color:red'>${s}</span>`;
} else {
return s;
}
}
}
}, {