Validations for Add Button Icons:
1 PO Amount and Remaining PO Amount Calculation:
1.1. When a value is entered in the PO Amount field, it should be reflected in the Remaining PO Amount column.
1.2 As new rows are added, the amount is calculated phase-wise.
2. Example Workflow: If the PO Amount is set to 1000:
1. Adding Row 1 (Phase 1) with an invoice amount of 500 will update the Remaining Charges to 1000.
2. Adding Row 2 (Phase 2) will automatically set the Remaining Charges to 500 (1000 - 500) in the new row with an invoice amount of 500.
How to implement this?