add customer type and tax profile in customer

This commit is contained in:
Yan
2017-08-09 10:51:13 +06:30
parent 1685713ff5
commit cc6e422c8b
4 changed files with 16 additions and 7 deletions

View File

@@ -69,7 +69,9 @@ class Crm::CustomersController < BaseCrmController
# POST /crm/customers
# POST /crm/customers.json
def create
def create
# Remove "" default first
params[:customer][:tax_profiles].delete_at(0)
@crm_customers = Customer.new(customer_params)
respond_to do |format|