Open DivyarajChudasama opened 2 months ago
Name | Link |
---|---|
Latest commit | d8d63c333df837aee34de0d3c06fc8f779243e01 |
Latest deploy log | https://app.netlify.com/sites/invoice-generator-react/deploys/66814d583c5be2000815a63d |
Deploy Preview | https://deploy-preview-25--invoice-generator-react.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Description
This pull request addresses an issue in the
handleCalculateTotal
function of theInvoiceForm.js
file, where the total was not correctly calculated for multiple items. The changes ensure that the subtotal, tax amount, discount amount, and total are computed accurately when there are two or more items in the invoice.Changes Made
subTotal
in thehandleCalculateTotal
function to correctly sum up the prices of all items.taxAmmount
,discountAmmount
, andtotal
are computed correctly based on the updatedsubTotal
.Testing
Additional Notes
Please review the changes and let me know if there are any questions or further adjustments needed. Thank you!