|
@@ -309,8 +309,10 @@ module.exports = app => {
|
|
|
});
|
|
|
let sum = 0;
|
|
|
for (const p of monthProgress) {
|
|
|
+ p.ratio = ctx.helper.mul(ctx.helper.div(p.tp, tender.sum, 4), 100);
|
|
|
sum = ctx.helper.add(sum, p.tp);
|
|
|
p.end_tp = sum;
|
|
|
+ p.end_ratio = ctx.helper.mul(ctx.helper.div(p.end_tp, tender.sum, 4), 100);
|
|
|
}
|
|
|
const renderData = {
|
|
|
tender: tender,
|