fixed set menu item update and individual payment

This commit is contained in:
phyusin
2018-03-15 11:15:43 +06:30
parent 68a27ffcc7
commit c7f11c2a33
5 changed files with 84 additions and 24 deletions

View File

@@ -494,8 +494,8 @@ class ReceiptBillPdf < Prawn::Document
end
#individual payment per person
def individual_payment(sale_data, survey, precision, delimiter)
per_person = sale_data.grand_total.to_f / survey.total_customer.to_i
def individual_payment(sale_data, precision, delimiter)
per_person = sale_data.grand_total.to_i / sale_data.equal_persons.to_i
stroke_horizontal_rule
move_down line_move
y_position = cursor