Commit bafb8fcc authored by Riri Novita's avatar Riri Novita

issue prod

parent bc1d535f
...@@ -706,7 +706,7 @@ export default class ProfitLossMR extends Component { ...@@ -706,7 +706,7 @@ export default class ProfitLossMR extends Component {
const handleValue = (value, data) => { const handleValue = (value, data) => {
let total = 0 let total = 0
dataTable2.map((item, index) => { dataTable2.map((item, index) => {
if (data.rowData[1] == item[2]) { if (data.rowData[1] == item[2] && item[0] != 4) {
total = item[10] == undefined ? (Number(total) + 0) : (Number(total) + Number(String(item[10]).includes('-') ? Number(String(item[10]).substr(1, String(item[10]).length)) * -1 : Number(item[10]))) total = item[10] == undefined ? (Number(total) + 0) : (Number(total) + Number(String(item[10]).includes('-') ? Number(String(item[10]).substr(1, String(item[10]).length)) * -1 : Number(item[10])))
} }
}) })
......
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