Today I completed the Update Invoice API logic including the full implementation of the tax removal feature. I added the backend logic to automatically recalculate totalAmount and remainingBalance when isWithoutTax is toggled from the frontend.
Additionally, I updated the Get All Invoice Details API to return both taxAmount and the new withoutTaxAmount (total – tax).
On the frontend side, I integrated the checkbox functionality and connected it to the new backend /tax/:id endpoint so tax is applied/removed correctly and updates reflect immediately on UI.
These changes ensure that tax handling is consistent across: