0

https://i.stack.imgur.com/JIGKp.pngi 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

Aswani
  • 1
  • 2

1 Answers1

0

This is a very smooth method to choose this problem

Total:{
    title: 'Total',
    valuePrepareFunction :(cell, row) =>{
        return row.quantity * row.productPrice;
   } 
  }
Code
  • 1
  • 1