|
@@ -299,7 +299,7 @@ $(document).ready(() => {
|
|
treeSetting.calcFields.push('deal_tp');
|
|
treeSetting.calcFields.push('deal_tp');
|
|
}
|
|
}
|
|
treeSetting.calcFun = function (node) {
|
|
treeSetting.calcFun = function (node) {
|
|
- if (node && node.b_code) {
|
|
|
|
|
|
+ if (node && node.b_code && node.is_leaf) {
|
|
const posData = pos.getLedgerPos(node.id) || [];
|
|
const posData = pos.getLedgerPos(node.id) || [];
|
|
let camount = ZhCalc.round(node.camount, findDecimal(node.unit)) || 0;
|
|
let camount = ZhCalc.round(node.camount, findDecimal(node.unit)) || 0;
|
|
if (posData.length > 0) {
|
|
if (posData.length > 0) {
|