Fix: tax doesn't include after discount.

This commit is contained in:
Htoi San Aung
2025-07-02 13:06:48 +06:30
committed by DevTeam
parent 96cef4197b
commit d571933caf
4 changed files with 8 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class PrintReceiptJob < ApplicationJob
other_amount = SaleItem.calculate_other_charges(sale_items)
printer = Printer::ReceiptPrinter.new(print_settings)
byebug
if saleObj.sale_status == 'completed'
printer.print_receipt_bill(print_settings, false, nil, cashier_terminal, sale_items, saleObj, customer.paypar_account_no, item_price_by_accounts, discount_price_by_accounts, member_info, rebate_amount, current_shop, 'paid', current_balance, card_data, other_amount, latest_order_no, card_balance_amount, nil, transaction_ref)
elsif saleObj.generic_void?