taxes
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/vouchers/vouchers
clickAndWait link=Add vouchers
type tag Test
type amount_total 5
uncheck compound_tax
type tax1_value 10.0
type tax2_value 10.0
type tax3_value 20.0
type tax4_value 40.0
check tax2_enabled
check tax3_enabled
check tax4_enabled
type credit 180
select date_from_year label=2013
clickAndWait commit
verifyTextPresent Created vouchers:
verifyText credit_without_tax_2 100.0000
verifyText credit_with_tax_2 180.0000
open /billing/functions/settings
click tabTabdhtmlgoodies_tabView1_6
type total_tax Total_tax
type tax1name First-tax
type tax2name Second-tax
type tax3name Third-tax
type tax4name Forth-tax
check tax2active
check tax3active
check tax4active
type tax1value 10
type tax2value 10
type tax3value 20
type tax4value 40
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_6
verifyValue total_tax Total_tax
verifyValue tax1name First-tax
verifyValue tax2name Second-tax
verifyValue tax3name Third-tax
verifyValue tax4name Forth-tax
verifyValue tax1value 10.0
verifyValue tax2value 10.0
verifyValue tax3value 20.0
verifyValue tax4value 40.0
verifyChecked tax2active
verifyChecked tax3active
verifyChecked tax4active
uncheck tax2active
uncheck tax3active
uncheck tax4active
type total_tax
clickAndWait commit
click tabTabdhtmlgoodies_tabView1_6
verifyValue total_tax TAX
verifyNotChecked tax2active
verifyNotChecked tax3active
verifyNotChecked tax4active
check tax2active
check tax3active
check tax4active
type total_tax
type total_tax Tmp_total_tax
type tax1name
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_6
verifyValue tax1name Tmp_total_tax
verifyValue total_tax Tmp_total_tax
type total_tax Total_tax
type tax1name First-tax
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_6
clickAndWait link=Apply to all Users
assertConfirmation Are you sure?
verifyTextPresent Taxes set
click tabTabdhtmlgoodies_tabView1_6
clickAndWait link=Apply to all Calling Cards
assertConfirmation Are you sure?
verifyTextPresent Taxes set
click tabTabdhtmlgoodies_tabView1_6
clickAndWait link=Apply to all Vouchers
assertConfirmation Are you sure?
verifyTextPresent Voucher Taxes set
open /billing/vouchers/vouchers
verifyText credit_with_tax_2 180.0000
verifyText credit_without_tax_2 88.5478
clickAndWait link=Add vouchers
type tag Test
type amount_total 5
type credit 180
clickAndWait commit
verifyTextPresent Created vouchers:
verifyText credit_without_tax_7 88.5478
verifyText credit_with_tax_7 180.0000
open /billing/users/default_user
verifyValue total_tax_name Total_tax
verifyValue tax1_name First-tax
verifyValue tax2_name Second-tax
verifyValue tax3_name Third-tax
verifyValue tax4_name Forth-tax
verifyValue tax1_value 10.0
verifyValue tax2_value 10.0
verifyValue tax3_value 20.0
verifyValue tax4_value 40.0
verifyChecked tax2_enabled
verifyChecked tax3_enabled
verifyChecked tax4_enabled
verifyChecked compound_tax
type total_tax_name
type tax1_name new_tax1_name
uncheck tax2_enabled
uncheck tax3_enabled
uncheck tax4_enabled
type tax1_value 1
type tax2_value 1
type tax3_value 2
type tax4_value 4
clickAndWait commit
verifyTextPresent Default User saved
verifyValue tax1_value 1.0
verifyValue tax2_value 1.0
verifyValue tax3_value 2.0
verifyValue tax4_value 4.0
verifyValue total_tax_name TAX
verifyValue tax1_name new_tax1_name
type tax1_name
type tax2_name new_tax2_name
type tax3_name new_tax3_name
type tax4_name new_tax4_name
clickAndWait commit
verifyTextPresent Default User saved
verifyValue total_tax_name TAX
verifyValue tax1_name TAX
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/reseller_settings
click tabTabdhtmlgoodies_tabView1_3
type total_tax Total_tax
type tax1name First-tax
type tax2name Second-tax
type tax3name Third-tax
type tax4name Forth-tax
check tax2active
check tax3active
check tax4active
type tax1value 10
type tax2value 10
type tax3value 20
type tax4value 40
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
verifyValue total_tax Total_tax
verifyValue tax1name First-tax
verifyValue tax2name Second-tax
verifyValue tax3name Third-tax
verifyValue tax4name Forth-tax
verifyValue tax1value 10.0
verifyValue tax2value 10.0
verifyValue tax3value 20.0
verifyValue tax4value 40.0
verifyChecked tax2active
verifyChecked tax3active
verifyChecked tax4active
uncheck tax2active
uncheck tax3active
uncheck tax4active
type total_tax
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
verifyValue total_tax TAX
verifyNotChecked tax2active
verifyNotChecked tax3active
verifyNotChecked tax4active
check tax2active
check tax3active
check tax4active
type total_tax
type total_tax Tmp_total_tax
type tax1name
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
verifyValue tax1name Tmp_total_tax
verifyValue total_tax Tmp_total_tax
type total_tax Total_tax
type tax1name First-tax
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
click link=Apply to all Users
assertConfirmation Are you sure?
waitForPageToLoad 30000
verifyTextPresent Taxes set
click tabTabdhtmlgoodies_tabView1_3
click link=Apply to all Calling Cards
assertConfirmation Are you sure?
waitForPageToLoad 30000
verifyTextPresent Taxes set
open /billing/users/default_user
verifyValue total_tax_name Total_tax
verifyValue tax1_name First-tax
verifyValue tax2_name Second-tax
verifyValue tax3_name Third-tax
verifyValue tax4_name Forth-tax
verifyValue tax1_value 10.0
verifyValue tax2_value 10.0
verifyValue tax3_value 20.0
verifyValue tax4_value 40.0
verifyChecked tax2_enabled
verifyChecked tax3_enabled
verifyChecked tax4_enabled
type total_tax_name
type tax1_name new_tax1_name
uncheck tax2_enabled
uncheck tax3_enabled
uncheck tax4_enabled
type tax1_value 1
type tax2_value 1
type tax3_value 2
type tax4_value 4
clickAndWait commit
verifyTextPresent Default User saved
verifyValue tax1_value 1.0
verifyValue tax2_value 1.0
verifyValue tax3_value 2.0
verifyValue tax4_value 4.0
verifyValue total_tax_name TAX
verifyValue tax1_name new_tax1_name
type tax1_name
type tax2_name new_tax2_name
type tax3_name new_tax3_name
type tax4_name new_tax4_name
clickAndWait commit
verifyTextPresent Default User saved
verifyValue total_tax_name TAX
verifyValue tax1_name TAX
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/default_user
check tax2_enabled
check tax3_enabled
check tax4_enabled
uncheck compound_tax
type tax1_value 1
type tax2_value 1
type tax3_value 2
type tax4_value 4
clickAndWait commit
verifyTextPresent Default User saved
verifyValue tax1_value 1.0
verifyValue tax2_value 1.0
verifyValue tax3_value 2.0
verifyValue tax4_value 4.0
verifyValue total_tax_name TAX
verifyNotChecked compound_tax
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/reseller_settings
click tabTabdhtmlgoodies_tabView1_3
type total_tax Total_tax
type tax1name First-tax
type tax2name Second-tax
type tax3name Third-tax
type tax4name Forth-tax
check tax2active
check tax3active
check tax4active
type tax1value 10
type tax2value 10
type tax3value 20
type tax4value 40
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
verifyValue total_tax Total_tax
verifyValue tax1name First-tax
verifyValue tax2name Second-tax
verifyValue tax3name Third-tax
verifyValue tax4name Forth-tax
verifyValue tax1value 10.0
verifyValue tax2value 10.0
verifyValue tax3value 20.0
verifyValue tax4value 40.0
verifyChecked tax2active
verifyChecked tax3active
verifyChecked tax4active
uncheck tax2active
uncheck tax3active
uncheck tax4active
type total_tax
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
verifyValue total_tax TAX
verifyNotChecked tax2active
verifyNotChecked tax3active
verifyNotChecked tax4active
check tax2active
check tax3active
check tax4active
type total_tax
type total_tax Tmp_total_tax
type tax1name
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
verifyValue tax1name Tmp_total_tax
verifyValue total_tax Tmp_total_tax
type total_tax Total_tax
type tax1name First-tax
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_3
click link=Apply to all Users
assertConfirmation Are you sure?
waitForPageToLoad 30000
verifyTextPresent Taxes set
click tabTabdhtmlgoodies_tabView1_3
click link=Apply to all Calling Cards
assertConfirmation Are you sure?
waitForPageToLoad 30000
verifyTextPresent Taxes set
open /billing/users/default_user
verifyValue total_tax_name Total_tax
check compound_tax
clickAndWait commit
verifyTextPresent Default User saved
verifyChecked compound_tax