mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Admin can set enterprises to charge or not charge sales tax
This commit is contained in:
@@ -218,6 +218,7 @@ feature %q{
|
||||
click_link "Business Details"
|
||||
fill_in 'enterprise_abn', :with => '09812309823'
|
||||
fill_in 'enterprise_acn', :with => ''
|
||||
choose 'Yes' # enterprise_charges_sales_tax
|
||||
|
||||
click_link "Address"
|
||||
fill_in 'enterprise_address_attributes_address1', :with => '35 Ballantyne St'
|
||||
@@ -237,6 +238,9 @@ feature %q{
|
||||
@enterprise.reload
|
||||
expect(@enterprise.owner).to eq user
|
||||
|
||||
click_link "Business Details"
|
||||
page.should have_checked_field "enterprise_charges_sales_tax_true"
|
||||
|
||||
click_link "Payment Methods"
|
||||
page.should have_checked_field "enterprise_payment_method_ids_#{payment_method.id}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user