sale item report print action cable added
This commit is contained in:
@@ -86,6 +86,25 @@ class Printer::CashierStationPrinter < Printer::PrinterWorker
|
|||||||
|
|
||||||
if print_settings.unique_code == "SaleItemsPdf"
|
if print_settings.unique_code == "SaleItemsPdf"
|
||||||
pdf = SaleItemsPdf.new(print_settings, shop_details, period_name, type, account, from_date, to_date, shift_name, sale_items, total_other_charges)
|
pdf = SaleItemsPdf.new(print_settings, shop_details, period_name, type, account, from_date, to_date, shift_name, sale_items, total_other_charges)
|
||||||
|
|
||||||
|
ActionCable.server.broadcast("print_channel",
|
||||||
|
queue: 'Cashier',
|
||||||
|
unique_code: print_settings.unique_code,
|
||||||
|
print_copies: print_settings.print_copies,
|
||||||
|
data: {
|
||||||
|
sale_items: sale_items.as_json,
|
||||||
|
total_other_charges: total_other_charges,
|
||||||
|
shop_details:shop_details.as_json,
|
||||||
|
sale_details: {
|
||||||
|
period: period_name,
|
||||||
|
type: type,
|
||||||
|
account: account,
|
||||||
|
from_date: from_date,
|
||||||
|
to_date: to_date,
|
||||||
|
shift: shift_name,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
)
|
||||||
puts 'Printing!!!!'
|
puts 'Printing!!!!'
|
||||||
end
|
end
|
||||||
if print_settings.unique_code == "SaleItemsStarPdf"
|
if print_settings.unique_code == "SaleItemsStarPdf"
|
||||||
|
|||||||
Reference in New Issue
Block a user