Airshow 416

Mossa,

You should have something like this ...

  1. Extend totals to include discount:

    totals = {taxable: 0, taxExempt: 0, tax: 0, discount: 0 };

  2. Accumulate .discount inside the loop :

    //find
    rowDiscount = rowDiscount.toCurrency().fromCurrency() || 0;
    //insert after
    totals.discount += rowDiscount;

  3. Present totals.discount in your "total discount" field

Airshow 416

Steven,

That's 339 lines of javascript. How is anyone supposed to know why, where or how to add ajax-loader.gif to it with such a rudimentary introduction?

[B]Airshow[/B]