Total Calculation From Subtotals On Repeated Group

It'll be a few days before I can get the compressed JS built and the change committed. I'm in panic mode getting ready to fly to England tomorrow.

-- hugh
 
This isn't the kind of thing I can do for you on a standard subscription. Custom coding is just that, custom coding. I can give you coding tips and guidance, but I can't keep maintaining your code on a standard sub.

Having said that, I'll try some more advice. :)

Looks like using the formElements array directly is no longer the way to go, as we sometimes hide rather than deleting repeat groups. So try ...

Code:
jQuery('[id^=oerp_sales_items_list___subtotal2]').each(function(i) {
   myTotal += parseFloat(Fabrik.getBlock('form_36').formElements.get(this.id).getValue());
})

... instead of the myForm.formElement.each() loop.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top