check_price_invoice_last_calls_country_stats
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/load_delta_sql/calls_fix_delta
open /billing/stats/last_calls_stats
select id=date_from_year label=2008
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_till_year label=2010
select id=date_till_month label=November
select id=date_till_day label=31
select id=s_call_type label=Answered
clickAndWait name=commit
waitForText id=total_billsec 00:10:50
waitForText id=total_provider_price 17.0000
waitForText id=total_profit 97.0000
open /billing/stats/country_stats
waitForTable css=table.maintable.3.4 17.0000
waitForTable css=table.maintable.3.6 97.0000
waitForTable css=table.maintable.3.2 17
waitForTable css=table.maintable.3.3 00:10:50
open /billing/stats/last_calls_stats
select id=date_from_year label=2008
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
select id=s_call_type label=Answered
select id=s_user label=System Admin
clickAndWait name=commit
waitForText id=total_did_inc_price 3.0000
waitForText id=total_did_price 0.0000
waitForText id=total_user_price 10.0000
open /billing/accounting/invoices
waitForTextPresent Notice that when generating invoices global timezone will be applied, so depending on your timezone settings some statistics may differ
open /billing/accounting/generate_invoices
waitForTextPresent Notice that when generating invoices global timezone will be applied, so depending on your timezone settings some statistics may differ
click id=invoice_type_user
select id=user_id label=System Admin
clickAndWait name=commit
assertConfirmation Are you sure?
waitForTextPresent 2008-01-01 - 2009-01-01
waitForTextPresent Invoices generated: 1
open /billing/accounting/invoice_details/1
waitForTextPresent Notice that when generating invoices global timezone will be applied, so depending on your timezone settings some statistics may differ
open /billing/accounting/invoice_details/1?currency=USD
waitForText id=id_quantity_1 2
waitForText id=id_price_1 13.0000
open /billing/accounting/generate_invoice_pdf/1?&test=1
waitForTextPresent price: "13
open /billing/accounting/generate_invoice_detailed_pdf/1?&test=1
waitForTextPresent price: "8"
waitForTextPresent price: "5"
open /billing/accounting/generate_invoice_by_cid_pdf/1?&test=1
waitForTextPresent total => 13.0
open /billing/stats/country_stats
select name=user_id label=admin - System Admin
clickAndWait name=commit
waitForText calls 2
waitForText price 13.0000
select id=date_till_day label=2
select id=date_till_hour label=00
select id=date_till_minute label=00
clickAndWait name=commit
waitForText calls 2
select id=date_from_hour label=01
clickAndWait name=commit
waitForText calls 1