User can set whether an enterprise charges sales tax when registering

This commit is contained in:
Rohan Mitchell
2015-04-08 12:05:07 +10:00
parent 05551aa2a9
commit 0bdb8f7241
2 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,14 @@
.field
%label{ for: 'enterprise_acn' } ACN:
%input.chunky{ id: 'enterprise_acn', placeholder: "eg. 123 456 789", ng: { model: 'enterprise.acn' } }
.row
.small-12.columns
.field
%label{ for: 'enterprise_charges_sales_tax' }= t(:charges_sales_tax)
%input{ id: 'enterprise_charges_sales_tax_true', type: 'radio', value: 'true', ng: { model: 'enterprise.charges_sales_tax' } }
%label{ for: 'enterprise_charges_sales_tax_true' } Yes
%input{ id: 'enterprise_charges_sales_tax_false', type: 'radio', value: 'false', ng: { model: 'enterprise.charges_sales_tax' } }
%label{ for: 'enterprise_charges_sales_tax_false' } No
.row.buttons.pad-top
.small-12.columns

View File

@@ -60,15 +60,17 @@ feature "Registration", js: true do
fill_in 'enterprise_long_desc', with: 'Long description'
fill_in 'enterprise_abn', with: '12345'
fill_in 'enterprise_acn', with: '54321'
choose 'Yes' # enterprise_charges_sales_tax
click_button 'Continue'
# Enterprise should be update
# Enterprise should be updated
expect(page).to have_content "Let's upload some pretty pictures so your profile looks great!"
e.reload
expect(e.description).to eq "Short description"
expect(e.long_description).to eq "Long description"
expect(e.abn).to eq '12345'
expect(e.acn).to eq '54321'
expect(e.charges_sales_tax).to be_true
# Images
# Move from logo page