|
@@ -94,7 +94,7 @@ module.exports = app => {
|
|
|
said: this.ctx.session.sessionUser.accountId,
|
|
|
};
|
|
|
|
|
|
- const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, updateNode.unit);
|
|
|
+ const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, ledgerData.unit);
|
|
|
if (insertData.contract_qty) {
|
|
|
d.contract_qty = this.round(insertData.contract_qty, precision.value);
|
|
|
d.contract_tp = d.contract_qty * ledgerData.unit_price;
|
|
@@ -116,7 +116,6 @@ module.exports = app => {
|
|
|
*/
|
|
|
async updateStageData(data) {
|
|
|
const datas = data instanceof Array ? data : [data];
|
|
|
- console.log(datas);
|
|
|
const transaction = await this.db.beginTransaction();
|
|
|
try {
|
|
|
for (const d of datas) {
|
|
@@ -131,7 +130,6 @@ module.exports = app => {
|
|
|
d.qc_qty = this.round(d.qc_qty, precision.value);
|
|
|
d.qc_tp = d.qc_qty * ledgerBills.unit_price;
|
|
|
}
|
|
|
- console.log(d);
|
|
|
if (!stageBills) {
|
|
|
d.tid = this.ctx.tender.id;
|
|
|
d.sid = this.ctx.stage.id;
|