Hey I’m slowly becoming a business rules guru:) um please note I said ‘slowly’.
Anyway I have another question. First here is my schema
<file>
<SupplierName>
<SupplierAddress>
<Invoice>
<BuyerNameAndAddress>
<SupplierAccountNumber>
<TotalValue>
<Line>
<LineItem>
<LineItemValue>
<GSTValue>
Now normally I would create a little math magic and say that a rule must exist to check if <TotalValue> = <LineItemValue> + <GSTValue> That’s easy enough. But what if there are 6 or 9 or 221 LineItems – then all LineItems + all GSTValues need to equal the single TotalValue and this is where I am stumped.
Any help will be appreciated.
Regards
JMan