https://i.stack.imgur.com/JIGKp.png i need to find the amount and subtotal.
i need to calculate (qty*price)two columns values and store the result into another column(amount) of the ng2-smart-table
This is a very smooth method to choose this problem
Total:{
title: 'Total',
valuePrepareFunction :(cell, row) =>{
return row.quantity * row.productPrice;
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.