Add logic for Invoice Item Adjustment check.

We allow scenario where we can spricify each invoice item amount , or not amount in which case we calculate the max allowed value.