- The invoice displays a single product: "Mi 11X Pro 128 GB, 8 GB RAM, Cosmic Black, Smc" with a rate of 38999.00 for a quantity of 1, resulting in a Sub Amount of 38999.00.
- A GST of 18% is applied to the Sub Amount, calculated as 38999.00 * 0.18 = 7019.82.
- The Total Amount and Grand Total are both 46018.82, which is the sum of the Sub Amount (38999.00) and GST (7019.82).
- The Paid Amount is entered as 20000.00.
- The Due Amount is calculated as the Grand Total minus the Paid Amount: 46018.82 - 20000.00 = 26018.82.
- The Payment Status is set to "Advance Payment", indicating that the payment received is an advance against the total invoice amount.
Parent Tip: Review the logic above to help your child master the concept of print invoice codeigniter.