add shift data
This commit is contained in:
@@ -2,32 +2,30 @@ if @status == true
|
|||||||
json.status true
|
json.status true
|
||||||
json.message @message
|
json.message @message
|
||||||
|
|
||||||
# json.shift_sale @shift_sale do |shift|
|
json.shift_id @shift_sale.id
|
||||||
# json.id shift.id
|
json.cashier_terminal_id @shift_sale.cashier_terminal_id
|
||||||
# json.cashier_terminal_id shift.cashier_terminal_id
|
json.shift_started_at @shift_sale.shift_started_at
|
||||||
# json.shift_started_at shift.shift_started_at.strftime("%Y-%m-%d %H:%m:%s")
|
json.shift_closed_at @shift_sale.shift_closed_at
|
||||||
# json.shift_closed_at shift.shift_closed_at.strftime("%Y-%m-%d %H:%m:%s")
|
json.employee_id @shift_sale.employee_id
|
||||||
# json.employee_id shift.employee_id
|
json.opening_balance @shift_sale.opening_balance
|
||||||
# json.opening_balance shift.opening_balance
|
json.closing_balance @shift_sale.closing_balance
|
||||||
# json.closing_balance shift.closing_balance
|
json.total_revenue @shift_sale.total_revenue
|
||||||
# json.total_revenue shift.total_revenue
|
json.total_discounts @shift_sale.total_discounts
|
||||||
# json.total_discounts shift.total_discounts
|
json.total_taxes @shift_sale.total_taxes
|
||||||
# json.total_taxes shift.total_taxes
|
json.grand_total @shift_sale.grand_total
|
||||||
# json.grand_total shift.grand_total
|
json.nett_sales @shift_sale.nett_sales
|
||||||
# json.nett_sales shift.nett_sales
|
json.cash_sales @shift_sale.cash_sales
|
||||||
# json.cash_sales shift.cash_sales
|
json.credit_sales @shift_sale.credit_sales
|
||||||
# json.credit_sales shift.credit_sales
|
json.other_sales @shift_sale.other_sales
|
||||||
# json.other_sales shift.other_sales
|
json.commercial_taxes @shift_sale.commercial_taxes
|
||||||
# json.commercial_taxes shift.commercial_taxes
|
json.cash_in @shift_sale.cash_in
|
||||||
# json.cash_in shift.cash_in
|
json.cash_out @shift_sale.cash_out
|
||||||
# json.cash_out shift.cash_out
|
json.dining_count @shift_sale.dining_count
|
||||||
# json.dining_count shift.dining_count
|
json.takeaway_count @shift_sale.takeaway_count
|
||||||
# json.takeaway_count shift.takeaway_count
|
json.member_count @shift_sale.member_count
|
||||||
# json.member_count shift.member_count
|
json.total_rounding @shift_sale.total_rounding
|
||||||
# json.total_rounding shift.total_rounding
|
json.total_receipt @shift_sale.total_receipt
|
||||||
# json.total_receipt shift.total_receipt
|
json.total_void @shift_sale.total_void
|
||||||
# json.total_void shift.total_void
|
|
||||||
# end
|
|
||||||
else
|
else
|
||||||
json.status false
|
json.status false
|
||||||
json.error_message @error_message
|
json.error_message @error_message
|
||||||
|
|||||||
Reference in New Issue
Block a user