优化企业成本核算表单插件
This commit is contained in:
parent
adac5e85c8
commit
e333e87276
|
@ -97,11 +97,8 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
|
||||||
if (processName != null && !processName.isEmpty()) {
|
if (processName != null && !processName.isEmpty()) {
|
||||||
// 存在工序时,按照工序+成本项+二级分类去重
|
// 存在工序时,按照工序+成本项+二级分类去重
|
||||||
uniqueKey = "PROCESS_" + processName + "_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
|
uniqueKey = "PROCESS_" + processName + "_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
|
||||||
} else if (costCompanyName != null && !costCompanyName.isEmpty()) {
|
|
||||||
// 存在成本中心时,按照成本中心+成本项+二级分类去重
|
|
||||||
uniqueKey = "COSTCENTER_" + costCompanyName + "_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
|
|
||||||
} else {
|
} else {
|
||||||
// 如果既没有工序也没有成本中心,则按照成本项+二级分类去重
|
// 如果没有工序,则按照成本项+二级分类去重
|
||||||
uniqueKey = "NONE_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
|
uniqueKey = "NONE_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue