Files
sx-fc/app/views/api/shifts/create.json.jbuilder
2018-10-16 15:40:50 +06:30

34 lines
1.3 KiB
Ruby

if @status == true
json.status true
json.message @message
# json.shift_sale @shift_sale do |shift|
# json.id shift.id
# json.cashier_terminal_id shift.cashier_terminal_id
# json.shift_started_at shift.shift_started_at.strftime("%Y-%m-%d %H:%m:%s")
# json.shift_closed_at shift.shift_closed_at.strftime("%Y-%m-%d %H:%m:%s")
# json.employee_id shift.employee_id
# json.opening_balance shift.opening_balance
# json.closing_balance shift.closing_balance
# json.total_revenue shift.total_revenue
# json.total_discounts shift.total_discounts
# json.total_taxes shift.total_taxes
# json.grand_total shift.grand_total
# json.nett_sales shift.nett_sales
# json.cash_sales shift.cash_sales
# json.credit_sales shift.credit_sales
# json.other_sales shift.other_sales
# json.commercial_taxes shift.commercial_taxes
# json.cash_in shift.cash_in
# json.cash_out shift.cash_out
# json.dining_count shift.dining_count
# json.takeaway_count shift.takeaway_count
# json.member_count shift.member_count
# json.total_rounding shift.total_rounding
# json.total_receipt shift.total_receipt
# json.total_void shift.total_void
# end
else
json.status false
json.error_message @error_message
end