Calculate charge per item and return amount to caller
Calculate charge per item and return amount to caller
Your pricing routine lacks consistent per-unit rules, producing incorrect line totals. It calculates the correct per-item charge and returns the amount to the caller so invoices are accurate.