Hi Hetal,
The major issue that i can tell by looking at the current configuration is
1) Tax amount is picked from $ProjectInvoice.TaxAmount which has a many-to-one relation with the contract item lines.
2) Same structure is used in the format as well.
How it will work:
Contract item lines have one-to-many relation with $ProjInvoice, so the nodes given for On-account, Item, Expense, Hour etc should be used to store the values first in the model mapping.
And then the same should be used in the format.. the orange-highlighted node should move a node up, and presently highlighted node should have binding with model.InvoiceProject_Main.LineOnAccount
then below that tax amount will be saved line-by-line.
You can also use debugger to validate whether system is calculating separate vat amount or not, it must be saving line-wise [one thing we can understand from current behaviour that system is just showing first record in all lines, but calculating.. else if it would be calculating at header level, then it would be sum of all those VAT amounts]
I am not sure how much i would be able to assist you by typing over this thread, as you need to try a lot, i have given an idea to proceed.
If this helped, please mark it as "Verified" for others facing the same issue Keep in mind that it is possible to mark more than one answer as verified
Regards,
Neeraj Kumar