|
@@ -827,6 +827,10 @@ module.exports = app => {
|
|
d.pre_arrive_tp = pd.arrive_tp;
|
|
d.pre_arrive_tp = pd.arrive_tp;
|
|
d.pre_deduct_qty = pd.deduct_qty;
|
|
d.pre_deduct_qty = pd.deduct_qty;
|
|
d.pre_deduct_tp = pd.deduct_tp;
|
|
d.pre_deduct_tp = pd.deduct_tp;
|
|
|
|
+ d.end_arrive_qty = this.ctx.helper.add(d.pre_arrive_qty, d.arrive_qty);
|
|
|
|
+ d.end_arrive_tp = this.ctx.helper.add(d.pre_arrive_tp, d.arrive_tp);
|
|
|
|
+ d.end_deduct_qty = this.ctx.helper.add(d.pre_deduct_qty, d.deduct_qty);
|
|
|
|
+ d.end_deduct_tp = this.ctx.helper.add(d.pre_deduct_tp, d.deduct_tp);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return data;
|
|
return data;
|
|
@@ -858,6 +862,7 @@ module.exports = app => {
|
|
const pd = this.ctx.helper._.find(preData, {uuid: d.uuid});
|
|
const pd = this.ctx.helper._.find(preData, {uuid: d.uuid});
|
|
if (pd) {
|
|
if (pd) {
|
|
d.pre_tp = pd.tp;
|
|
d.pre_tp = pd.tp;
|
|
|
|
+ d.end_tp = this.ctx.helper.add(d.pre_tp, d.tp);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return data;
|
|
return data;
|
|
@@ -878,6 +883,8 @@ module.exports = app => {
|
|
if (pd) {
|
|
if (pd) {
|
|
d.pre_qty = pd.qty;
|
|
d.pre_qty = pd.qty;
|
|
d.pre_tp = pd.tp;
|
|
d.pre_tp = pd.tp;
|
|
|
|
+ d.end_qty = this.ctx.helper.add(d.pre_qty, d.qty);
|
|
|
|
+ d.end_tp = this.ctx.helper.add(d.pre_tp, d.tp);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return data;
|
|
return data;
|
|
@@ -898,6 +905,8 @@ module.exports = app => {
|
|
if (pd) {
|
|
if (pd) {
|
|
d.pre_qty = pd.qty;
|
|
d.pre_qty = pd.qty;
|
|
d.pre_tp = pd.tp;
|
|
d.pre_tp = pd.tp;
|
|
|
|
+ d.end_qty = this.ctx.helper.add(d.pre_qty, d.qty);
|
|
|
|
+ d.end_tp = this.ctx.helper.add(d.pre_tp, d.tp);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return data;
|
|
return data;
|