diff --git a/app/controllers/origami/payments_controller.rb b/app/controllers/origami/payments_controller.rb index b14be800..0bc77fc3 100755 --- a/app/controllers/origami/payments_controller.rb +++ b/app/controllers/origami/payments_controller.rb @@ -22,7 +22,7 @@ class Origami::PaymentsController < BaseOrigamiController cashier_terminal = CashierTerminal.find(cashier_zone.cashier_terminal_id) # Print for First Bill to Customer - unique_code = "ReceiptBillA5Pdf" + unique_code = "ReceiptBillPdf" #shop detail shop_details = Shop::ShopDetail # customer= Customer.where('customer_id=' +.customer_id) @@ -106,7 +106,7 @@ class Origami::PaymentsController < BaseOrigamiController cashier_terminal = CashierTerminal.find(cashier_zone.cashier_terminal_id) # For Print - unique_code = "ReceiptBillA5Pdf" + unique_code = "ReceiptBillPdf" customer= Customer.find(saleObj.customer_id) # get member information @@ -228,7 +228,7 @@ class Origami::PaymentsController < BaseOrigamiController cashier_zone = CashierTerminalByZone.find_by_zone_id(table.zone_id) cashier_terminal = CashierTerminal.find(cashier_zone.cashier_terminal_id) - unique_code = "ReceiptBillA5Pdf" + unique_code = "ReceiptBillPdf" customer= Customer.find(saleObj.customer_id) #shop detail @@ -285,7 +285,7 @@ class Origami::PaymentsController < BaseOrigamiController # Re-call Sale Data saleObj = Sale.find(sale_id) - unique_code = "ReceiptBillA5Pdf" + unique_code = "ReceiptBillPdf" customer= Customer.find(saleObj.customer_id) #shop detail diff --git a/app/models/printer/receipt_printer.rb b/app/models/printer/receipt_printer.rb index 7a1ef65a..adcb187e 100755 --- a/app/models/printer/receipt_printer.rb +++ b/app/models/printer/receipt_printer.rb @@ -70,7 +70,7 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker #Generate PDF #Print - pdf = ReceiptBillA5Pdf.new(printer_settings, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance) + pdf = ReceiptBillPdf.new(printer_settings, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance) # print as print copies in printer setting count = printer_settings.print_copies