modify api and change rounding adj

This commit is contained in:
phyusin
2018-04-11 10:28:33 +06:30
parent 590ee16aa4
commit 27e70f1a86
7 changed files with 14 additions and 8 deletions

View File

@@ -360,7 +360,7 @@ class Customer < ApplicationRecord
customer.contact_no = params[:contact_no]
customer.gender = params[:gender]
customer.address = params[:address]
customer.date_of_birth = Time.parse(params[:date_of_birth]).strftime("%Y-%m-%d")
customer.date_of_birth = params[:date_of_birth] ? Time.parse(params[:date_of_birth]).strftime("%Y-%m-%d") : ''
customer.membership_id = params[:membership_id]
customer.customer_type = "Takeaway"
customer.tax_profiles = ["2"]