Implement Sum - Credit / debit on the same Column

Implement Sum - Credit / debit on the same Column

tsicalastsicalas Posts: 1Questions: 1Answers: 0

Hi every one,

Sorry my terrible english.

I started working with DataTables yesterday, it was all great but I'm not getting this simple sum.

Let me try to show my difficulty in the datatables.

I have a table :
{"target":0, "mDataProp": "seq"},
{"target":1, "mDataProp": "datavcto"},
{"target":2, "mDataProp": "datapgto"},
{"target":3, "mDataProp": "descricao"},
{"target":4, "mDataProp": "valororig"},
{"target":5, "mDataProp": "valorpago"},
{"target":6, "mDataProp": "id"},
{"target":7, "mDataProp": "debcre_dito"}

When the value of column 7 equals 1, store the sum of the column 3 in the variable deb, when the value is 0 to store in the variable cred on footerCallback.

Can someone help me?

Att

Georgios

This discussion has been closed.