|
@@ -219,7 +219,7 @@ $(document).ready(() => {
|
|
|
keys: ['id', 'tender_id', 'ledger_id'],
|
|
|
masterId: 'id',
|
|
|
minorId: 'lid',
|
|
|
- calcFields: [],
|
|
|
+ calcFields: ['total_price'],
|
|
|
markFoldKey: 'bills-fold',
|
|
|
markFoldSubKey: window.location.pathname.split('/')[2],
|
|
|
});
|
|
@@ -232,6 +232,7 @@ $(document).ready(() => {
|
|
|
|
|
|
postData(window.location.pathname + '/load', {main: true}, function (result) {
|
|
|
cTree.loadDatas(result.main.ledger);
|
|
|
+ treeCalc.calculateAll(cTree);
|
|
|
cPos.loadDatas(result.main.pos);
|
|
|
SpreadJsObj.loadSheetData(billsSheet, SpreadJsObj.DataType.Tree, cTree);
|
|
|
loadPosData(0);
|