Commit 97e5bc2a authored by 我在何方's avatar 我在何方 Committed by houjn@hikoon.cn

收款单总核销比例修复

parent ddf2fe68
...@@ -679,8 +679,10 @@ export default { ...@@ -679,8 +679,10 @@ export default {
} }
// total = NP.plus(total, item.writeOffAmount) // total = NP.plus(total, item.writeOffAmount)
}) })
console.log(total);
let portion = NP.divide(total,amountTotal) let portion = NP.divide(total,amountTotal)
console.log(portion);
if(!portion) return 0
return (portion*100).toFixed(2) return (portion*100).toFixed(2)
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment