fix for tax inclusive

This commit is contained in:
Yan
2017-08-10 14:49:00 +06:30
parent 02c71f1961
commit edf213d6d6
3 changed files with 9 additions and 9 deletions

View File

@@ -196,10 +196,12 @@ end
# PATCH/PUT /crm/customers/1
# PATCH/PUT /crm/customers/1.json
def update
# Remove "" default first
params[:customer][:tax_profiles].delete_at(0)
respond_to do |format|
if @crm_customer.update(customer_params)
# update tax profile
@crm_customer.update_attributes(tax_profiles: params[:customer][:tax_profiles])
name = customer_params[:name]
phone = customer_params[:contact_no]
email = customer_params[:email]