update bugs for demo
This commit is contained in:
@@ -84,7 +84,7 @@ class ReceiptBillPdf < Prawn::Document
|
||||
|
||||
#start for individual payment
|
||||
if !sale_data.equal_persons.nil?
|
||||
individual_payment(sale_data, printer_settings.precision, delimiter)
|
||||
individual_payment(sale_data,sale_data.equal_persons, printer_settings.precision, delimiter)
|
||||
end
|
||||
#end for individual payment
|
||||
|
||||
@@ -487,7 +487,8 @@ class ReceiptBillPdf < Prawn::Document
|
||||
|
||||
#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
|
||||
# per_person = sale_data.grand_total.to_f / survey.total_customer.to_i
|
||||
per_person = sale_data.grand_total.to_f / survey.to_i
|
||||
stroke_horizontal_rule
|
||||
move_down line_move
|
||||
y_position = cursor
|
||||
|
||||
Reference in New Issue
Block a user