[2025-03-20 04:30:04] Production.INFO: Call prc_getBillingAccounts(1,2025-03-20,'','0')
[2025-03-20 04:30:04] Production.INFO: Array
(
[0] => stdClass Object
(
[AccountID] => 19
[NextInvoiceDate] => 2025-03-20
[AccountName] => Craig Travel
[ServiceID] => 0
)
[1] => stdClass Object
(
[AccountID] => 121
[NextInvoiceDate] => 2025-03-20
[AccountName] => Dominos 10462 (Anwar Hossain)
[ServiceID] => 0
)
[2] => stdClass Object
(
[AccountID] => 258
[NextInvoiceDate] => 2025-03-10
[AccountName] => Lion Motors
[ServiceID] => 0
)
)
[2025-03-20 04:30:04] Production.INFO: AccountID =19 FirstInvoiceSend 0
[2025-03-20 04:30:04] Production.INFO: LastInvoiceDate 2025-02-20 NextInvoiceDate 2025-03-20
[2025-03-20 04:30:04] Production.INFO: LastChargeDate 2025-02-20 NextChargeDate 2025-03-19
[2025-03-20 04:30:04] Production.INFO: isCDRLoaded Array
(
[0] => stdClass Object
(
[isLoaded] => 1
)
)
[2025-03-20 04:30:04] Production.INFO: ========================== Invoice Send Start =============================
[2025-03-20 04:30:04] Production.INFO: Invoice::sendInvoice(1,19,2025-02-20,2025-03-20,billing@onswitchit.ca)
[2025-03-20 04:30:04] Production.INFO: start Date =2025-02-20 EndDate =2025-03-19 23:59:59
[2025-03-20 04:30:04] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV
[2025-03-20 04:30:04] Production.INFO: InvoiceTemplate->Terms =
This a summary of your subscription and usage charges for this billing period. Detailed charges, such as a list of all billable calls, can be found on subsequent pages.
[2025-03-20 04:30:04] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled
[2025-03-20 04:30:04] Production.INFO: AlreadyBilled
[2025-03-20 04:30:04] Production.INFO: Reseller ==> 0
[2025-03-20 04:30:04] Production.INFO: original start date ==>2025-02-20 changed start date ==>2025-02-20 00:00:00 original end date ==>2025-03-19 23:59:59 changed end date ==>2025-03-19 23:59:59
[2025-03-20 04:30:05] Production.INFO: CompanyGatewayID 1 TotalCharges ==>34.47000000
[2025-03-20 04:30:05] Production.INFO: Invoice::getAccountUsageTotal(1,19,2025-02-20,2025-03-19 23:59:59)
[2025-03-20 04:30:05] Production.INFO: TotalCharges - 34.47
[2025-03-20 04:30:05] Production.INFO: TotalUsageCharges - 34.47
[2025-03-20 04:30:05] Production.INFO: Usage Over
[2025-03-20 04:30:05] Production.INFO: Call prc_getAccountSubscription(19,0)
[2025-03-20 04:30:05] Production.INFO: SUBSCRIPTION 2
[2025-03-20 04:30:05] Production.INFO: ============================Subscription Start =================
[2025-03-20 04:30:05] Production.INFO: SubscriptionID - 1
[2025-03-20 04:30:05] Production.INFO: isAdvanceSubscription - 1
[2025-03-20 04:30:05] Production.INFO: SubscriptionStartDate =2025-03-20 - SubscriptionEndDate = 2025-04-19
[2025-03-20 04:30:05] Production.INFO: NewNextChargeDate =2025-04-19 00:00:00
[2025-03-20 04:30:05] Production.INFO: EndDate =2025-03-19 00:00:00
[2025-03-20 04:30:05] Production.INFO: NewEndDate1 =2025-03-20
[2025-03-20 04:30:05] Production.INFO: SubscriptionDate
[2025-03-20 04:30:05] Production.INFO: Array
(
[StartDate] => 2025-03-20
[EndDate] => 2025-04-19 00:00:00
[AlreadyCharged] => 0
)
[2025-03-20 04:30:05] Production.INFO: AccountSubscription StartDate 2017-04-20 StartDate 2025-02-20
[2025-03-20 04:30:05] Production.INFO: SubscriptionID - 2025-03-20=====2025-04-19 00:00:00
[2025-03-20 04:30:05] Production.INFO: AccountSubscriptionID - 27 === 2017-04-20=====2026-03-20
[2025-03-20 04:30:05] Production.INFO: regular Advance Subscription
[2025-03-20 04:30:05] Production.INFO: First Time False 2017-04-20 2025-03-20
[2025-03-20 04:30:05] Production.INFO: StartDate 2025-03-20 AccountSubscription->StartDate 2017-04-20 EndDate 2025-04-19 00:00:00 AccountSubscription->EndDate 2026-03-20
[2025-03-20 04:30:05] Production.INFO: days diff - 31 subscription days 31 quarter days 90
[2025-03-20 04:30:05] Production.INFO: AccountSubscription::getSubscriptionAmount(27,2025-03-20,2025-04-19 00:00:00,,0)
[2025-03-20 04:30:05] Production.INFO: SubscriptionCharge - 10
[2025-03-20 04:30:05] Production.INFO: Already Invoice Subscription 0
[2025-03-20 04:30:05] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(19,1,1,2025-03-20,2025-04-19 00:00:00,License for a Pay As You Go Cloud Phone extension,220,10,22,27)
[2025-03-20 04:30:05] Production.INFO: DiscountAmount 0.000000
[2025-03-20 04:30:05] Production.INFO: DiscountType
[2025-03-20 04:30:05] Production.INFO: SubscriptionCharge 220
[2025-03-20 04:30:05] Production.INFO: New SubscriptionCharge 220
[2025-03-20 04:30:05] Production.INFO: TotalSubscriptionCharge - 220.00
[2025-03-20 04:30:05] Production.INFO: ============================Subscription End =================
[2025-03-20 04:30:05] Production.INFO: ============================Subscription Start =================
[2025-03-20 04:30:05] Production.INFO: SubscriptionID - 4
[2025-03-20 04:30:05] Production.INFO: isAdvanceSubscription - 4
[2025-03-20 04:30:05] Production.INFO: SubscriptionStartDate =2025-03-20 - SubscriptionEndDate = 2025-04-19
[2025-03-20 04:30:05] Production.INFO: NewNextChargeDate =2025-04-19 00:00:00
[2025-03-20 04:30:05] Production.INFO: EndDate =2025-03-19 00:00:00
[2025-03-20 04:30:05] Production.INFO: NewEndDate1 =2025-03-20
[2025-03-20 04:30:05] Production.INFO: SubscriptionDate
[2025-03-20 04:30:05] Production.INFO: Array
(
[StartDate] => 2025-03-20
[EndDate] => 2025-04-19 00:00:00
[AlreadyCharged] => 0
)
[2025-03-20 04:30:05] Production.INFO: AccountSubscription StartDate 2017-04-20 StartDate 2025-02-20
[2025-03-20 04:30:05] Production.INFO: SubscriptionID - 2025-03-20=====2025-04-19 00:00:00
[2025-03-20 04:30:05] Production.INFO: AccountSubscriptionID - 28 === 2017-04-20=====2026-03-20
[2025-03-20 04:30:05] Production.INFO: regular Advance Subscription
[2025-03-20 04:30:05] Production.INFO: First Time False 2017-04-20 2025-03-20
[2025-03-20 04:30:05] Production.INFO: StartDate 2025-03-20 AccountSubscription->StartDate 2017-04-20 EndDate 2025-04-19 00:00:00 AccountSubscription->EndDate 2026-03-20
[2025-03-20 04:30:05] Production.INFO: days diff - 31 subscription days 31 quarter days 90
[2025-03-20 04:30:05] Production.INFO: AccountSubscription::getSubscriptionAmount(28,2025-03-20,2025-04-19 00:00:00,,0)
[2025-03-20 04:30:05] Production.INFO: SubscriptionCharge - 2.5
[2025-03-20 04:30:05] Production.INFO: Already Invoice Subscription 0
[2025-03-20 04:30:05] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(19,1,4,2025-03-20,2025-04-19 00:00:00,e911 address registration (14164840926 - 1092 MOUNT PLEASANT RD TORONTO, ON M4P2M6),2.5,2.5,1,28)
[2025-03-20 04:30:05] Production.INFO: DiscountAmount 0.000000
[2025-03-20 04:30:05] Production.INFO: DiscountType
[2025-03-20 04:30:05] Production.INFO: SubscriptionCharge 2.5
[2025-03-20 04:30:05] Production.INFO: New SubscriptionCharge 2.5
[2025-03-20 04:30:05] Production.INFO: TotalSubscriptionCharge - 2.50
[2025-03-20 04:30:05] Production.INFO: ============================Subscription End =================
[2025-03-20 04:30:05] Production.INFO: SUBSCRIPTION Over
[2025-03-20 04:30:05] Production.INFO: Call prc_getAccountOneOffCharge(19,0,2025-02-20,2025-03-20 23:59:59)
[2025-03-20 04:30:05] Production.INFO: AccountOneOffCharge 0
[2025-03-20 04:30:05] Production.INFO: AccountOneOffCharge Over
[2025-03-20 04:30:05] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start
[2025-03-20 04:30:05] Production.INFO: New UsageDates 2025-02-20 - 2025-03-19 23:59:59
[2025-03-20 04:30:05] Production.INFO: SubTotal 256.97
[2025-03-20 04:30:05] Production.INFO: SubTotalWithouttaxTotal 0
[2025-03-20 04:30:05] Production.INFO: AccountOneOffCharge Tax Over
[2025-03-20 04:30:05] Production.INFO: TotalTax 33.4061
[2025-03-20 04:30:05] Production.INFO: InvoiceGrandTotal 290.3761
[2025-03-20 04:30:05] Production.INFO: InvoiceTaxAmount 33.41
[2025-03-20 04:30:05] Production.INFO: GrandTotal 290.38
[2025-03-20 04:30:05] Production.INFO: SubTotal 256.97
[2025-03-20 04:30:05] Production.INFO: TotalDue -326.64
[2025-03-20 04:30:05] Production.INFO: Reseller ==> 0
[2025-03-20 04:30:05] Production.INFO: original start date ==>2025-02-20 changed start date ==>2025-02-20 00:00:00 original end date ==>2025-03-19 23:59:59 changed end date ==>2025-03-19 23:59:59
[2025-03-20 04:30:05] Production.INFO: CALL prc_getInvoiceUsage(1,'19','0','1','2025-02-20 00:00:00','2025-03-19 23:59:59',0)
[2025-03-20 04:30:05] Production.INFO: PDF Generation start
[2025-03-20 04:30:06] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/19/Invoices/2025/03/20/Invoice-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.pdf
[2025-03-20 04:30:06] Production.INFO: On Linux
[2025-03-20 04:30:09] Production.INFO: /var/www/html/onswitch.neon.service/wkhtmltox/bin/wkhtmltopdf --header-spacing 3 --footer-spacing 1 --header-html --footer-html "/var/www/tmp/1/19/Invoices/2025/03/20/footer-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.html" "/var/www/tmp/1/19/Invoices/2025/03/20/Invoice-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.html" "/var/www/tmp/1/19/Invoices/2025/03/20/Invoice-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.pdf"
[2025-03-20 04:30:09] Production.INFO:
[2025-03-20 04:30:09] Production.INFO: /var/www/tmp/1/19/Invoices/2025/03/20/Invoice-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.html
[2025-03-20 04:30:09] Production.INFO: /var/www/tmp/1/19/Invoices/2025/03/20/header-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.html
[2025-03-20 04:30:09] Production.INFO: /var/www/tmp/1/19/Invoices/2025/03/20/footer-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.html
[2025-03-20 04:30:09] Production.INFO: Invoice generation PDF path
[2025-03-20 04:30:09] Production.INFO: PDF fullPath 1/19/Invoices/2025/03/20/Invoice-craig-travel-inv11739-from-02-20-2025-to-03-19-2025-10680.pdf
[2025-03-20 04:30:09] Production.INFO: Generate Usage File Start
[2025-03-20 04:30:09] Production.INFO: Usage File fullPath 1/19/InvoiceUsageFile/2025/03/20/craig-travel-20-02-2025-00-00-00-TO-19-03-2025-23-59-59_4507__89122c00-0565-11f0-afce-d50dd7104ddf.csv
[2025-03-20 04:30:13] Production.INFO: Sending Email to Staff over
[2025-03-20 04:30:13] Production.INFO: Email Status 1
[2025-03-20 04:30:13] Production.INFO: Sending Email to Customer
[2025-03-20 04:30:14] Production.INFO: Email Try 10680 1
[2025-03-20 04:30:14] Production.INFO: =========== Email Sending over ===========
[2025-03-20 04:30:14] Production.INFO: =========== Returning as Success =========== AccountID 19
[2025-03-20 04:30:14] Production.INFO: Invoice::sendInvoice done
[2025-03-20 04:30:14] Production.INFO: Invoice created - Array
(
[status] => success
[message] => Invoice Created Successfully.
[accounts] =>
)
[2025-03-20 04:30:14] Production.INFO: Invoice Committed AccountID = 19
[2025-03-20 04:30:14] Production.INFO: =========== Updating InvoiceDate ===========
[2025-03-20 04:30:14] Production.INFO: NextInvoice 2025-03-20 2025-04-19
[2025-03-20 04:30:14] Production.INFO: new dates
[2025-03-20 04:30:14] Production.INFO: LastInvoiceDate 2025-03-20 NextInvoiceDate 2025-04-20
[2025-03-20 04:30:14] Production.INFO: LastChargeDate 2025-03-20 NextChargeDate 2025-04-19
[2025-03-20 04:30:14] Production.INFO: =========== Updated InvoiceDate ===========
[2025-03-20 04:30:14] Production.INFO: ========================== Invoice Send End =============================
[2025-03-20 04:30:14] Production.INFO: AccountID =121 FirstInvoiceSend 0
[2025-03-20 04:30:14] Production.INFO: LastInvoiceDate 2025-02-20 NextInvoiceDate 2025-03-20
[2025-03-20 04:30:14] Production.INFO: LastChargeDate 2025-02-20 NextChargeDate 2025-03-19
[2025-03-20 04:30:14] Production.INFO: isCDRLoaded Array
(
[0] => stdClass Object
(
[isLoaded] => 1
)
)
[2025-03-20 04:30:14] Production.INFO: ========================== Invoice Send Start =============================
[2025-03-20 04:30:14] Production.INFO: Invoice::sendInvoice(1,121,2025-02-20,2025-03-20,billing@onswitchit.ca)
[2025-03-20 04:30:14] Production.INFO: start Date =2025-02-20 EndDate =2025-03-19 23:59:59
[2025-03-20 04:30:14] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV
[2025-03-20 04:30:14] Production.INFO: InvoiceTemplate->Terms =
This a summary of your subscription and usage charges for this billing period. Detailed charges, such as a list of all billable calls, can be found on subsequent pages.
[2025-03-20 04:30:14] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled
[2025-03-20 04:30:14] Production.INFO: AlreadyBilled
[2025-03-20 04:30:14] Production.INFO: Reseller ==> 0
[2025-03-20 04:30:14] Production.INFO: original start date ==>2025-02-20 changed start date ==>2025-02-20 00:00:00 original end date ==>2025-03-19 23:59:59 changed end date ==>2025-03-19 23:59:59
[2025-03-20 04:30:14] Production.INFO: Invoice::getAccountUsageTotal(1,121,2025-02-20,2025-03-19 23:59:59)
[2025-03-20 04:30:14] Production.INFO: TotalCharges - 0
[2025-03-20 04:30:14] Production.INFO: TotalUsageCharges - 0.00
[2025-03-20 04:30:14] Production.INFO: Usage Over
[2025-03-20 04:30:14] Production.INFO: Call prc_getAccountSubscription(121,0)
[2025-03-20 04:30:14] Production.INFO: SUBSCRIPTION 3
[2025-03-20 04:30:14] Production.INFO: ============================Subscription Start =================
[2025-03-20 04:30:14] Production.INFO: SubscriptionID - 5
[2025-03-20 04:30:14] Production.INFO: isAdvanceSubscription - 5
[2025-03-20 04:30:14] Production.INFO: SubscriptionStartDate =2025-03-20 - SubscriptionEndDate = 2025-04-19
[2025-03-20 04:30:14] Production.INFO: NewNextChargeDate =2025-04-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: EndDate =2025-03-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: NewEndDate1 =2025-03-20
[2025-03-20 04:30:14] Production.INFO: SubscriptionDate
[2025-03-20 04:30:14] Production.INFO: Array
(
[StartDate] => 2025-03-20
[EndDate] => 2025-04-19 00:00:00
[AlreadyCharged] => 0
)
[2025-03-20 04:30:14] Production.INFO: AccountSubscription StartDate 2019-09-06 StartDate 2025-02-20
[2025-03-20 04:30:14] Production.INFO: SubscriptionID - 2025-03-20=====2025-04-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: AccountSubscriptionID - 416 === 2019-09-06=====2026-03-20
[2025-03-20 04:30:14] Production.INFO: regular Advance Subscription
[2025-03-20 04:30:14] Production.INFO: First Time False 2019-09-06 2025-03-20
[2025-03-20 04:30:14] Production.INFO: StartDate 2025-03-20 AccountSubscription->StartDate 2019-09-06 EndDate 2025-04-19 00:00:00 AccountSubscription->EndDate 2026-03-20
[2025-03-20 04:30:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90
[2025-03-20 04:30:14] Production.INFO: AccountSubscription::getSubscriptionAmount(416,2025-03-20,2025-04-19 00:00:00,,0)
[2025-03-20 04:30:14] Production.INFO: SubscriptionCharge - 75
[2025-03-20 04:30:14] Production.INFO: Already Invoice Subscription 0
[2025-03-20 04:30:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(121,1,5,2025-03-20,2025-04-19 00:00:00,Restaurant - 4 Line Flat Rate,75,75,1,416)
[2025-03-20 04:30:14] Production.INFO: DiscountAmount 0.000000
[2025-03-20 04:30:14] Production.INFO: DiscountType
[2025-03-20 04:30:14] Production.INFO: SubscriptionCharge 75
[2025-03-20 04:30:14] Production.INFO: New SubscriptionCharge 75
[2025-03-20 04:30:14] Production.INFO: TotalSubscriptionCharge - 75.00
[2025-03-20 04:30:14] Production.INFO: ============================Subscription End =================
[2025-03-20 04:30:14] Production.INFO: ============================Subscription Start =================
[2025-03-20 04:30:14] Production.INFO: SubscriptionID - 4
[2025-03-20 04:30:14] Production.INFO: isAdvanceSubscription - 4
[2025-03-20 04:30:14] Production.INFO: SubscriptionStartDate =2025-03-20 - SubscriptionEndDate = 2025-04-19
[2025-03-20 04:30:14] Production.INFO: NewNextChargeDate =2025-04-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: EndDate =2025-03-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: NewEndDate1 =2025-03-20
[2025-03-20 04:30:14] Production.INFO: SubscriptionDate
[2025-03-20 04:30:14] Production.INFO: Array
(
[StartDate] => 2025-03-20
[EndDate] => 2025-04-19 00:00:00
[AlreadyCharged] => 0
)
[2025-03-20 04:30:14] Production.INFO: AccountSubscription StartDate 2019-09-06 StartDate 2025-02-20
[2025-03-20 04:30:14] Production.INFO: SubscriptionID - 2025-03-20=====2025-04-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: AccountSubscriptionID - 417 === 2019-09-06=====2026-03-20
[2025-03-20 04:30:14] Production.INFO: regular Advance Subscription
[2025-03-20 04:30:14] Production.INFO: First Time False 2019-09-06 2025-03-20
[2025-03-20 04:30:14] Production.INFO: StartDate 2025-03-20 AccountSubscription->StartDate 2019-09-06 EndDate 2025-04-19 00:00:00 AccountSubscription->EndDate 2026-03-20
[2025-03-20 04:30:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90
[2025-03-20 04:30:14] Production.INFO: AccountSubscription::getSubscriptionAmount(417,2025-03-20,2025-04-19 00:00:00,,0)
[2025-03-20 04:30:14] Production.INFO: SubscriptionCharge - 2.5
[2025-03-20 04:30:14] Production.INFO: Already Invoice Subscription 0
[2025-03-20 04:30:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(121,1,4,2025-03-20,2025-04-19 00:00:00,e911 address registration (17056457700 - 195 Wellington St 1 Bracebridge, ON P1L1C2),2.5,2.5,1,417)
[2025-03-20 04:30:14] Production.INFO: DiscountAmount 0.000000
[2025-03-20 04:30:14] Production.INFO: DiscountType
[2025-03-20 04:30:14] Production.INFO: SubscriptionCharge 2.5
[2025-03-20 04:30:14] Production.INFO: New SubscriptionCharge 2.5
[2025-03-20 04:30:14] Production.INFO: TotalSubscriptionCharge - 2.50
[2025-03-20 04:30:14] Production.INFO: ============================Subscription End =================
[2025-03-20 04:30:14] Production.INFO: ============================Subscription Start =================
[2025-03-20 04:30:14] Production.INFO: SubscriptionID - 11
[2025-03-20 04:30:14] Production.INFO: isAdvanceSubscription - 11
[2025-03-20 04:30:14] Production.INFO: SubscriptionStartDate =2025-03-20 - SubscriptionEndDate = 2025-04-19
[2025-03-20 04:30:14] Production.INFO: NewNextChargeDate =2025-04-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: EndDate =2025-03-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: NewEndDate1 =2025-03-20
[2025-03-20 04:30:14] Production.INFO: SubscriptionDate
[2025-03-20 04:30:14] Production.INFO: Array
(
[StartDate] => 2025-03-20
[EndDate] => 2025-04-19 00:00:00
[AlreadyCharged] => 0
)
[2025-03-20 04:30:14] Production.INFO: AccountSubscription StartDate 2019-09-06 StartDate 2025-02-20
[2025-03-20 04:30:14] Production.INFO: SubscriptionID - 2025-03-20=====2025-04-19 00:00:00
[2025-03-20 04:30:14] Production.INFO: AccountSubscriptionID - 418 === 2019-09-06=====2026-03-20
[2025-03-20 04:30:14] Production.INFO: regular Advance Subscription
[2025-03-20 04:30:14] Production.INFO: First Time False 2019-09-06 2025-03-20
[2025-03-20 04:30:14] Production.INFO: StartDate 2025-03-20 AccountSubscription->StartDate 2019-09-06 EndDate 2025-04-19 00:00:00 AccountSubscription->EndDate 2026-03-20
[2025-03-20 04:30:14] Production.INFO: days diff - 31 subscription days 31 quarter days 90
[2025-03-20 04:30:14] Production.INFO: AccountSubscription::getSubscriptionAmount(418,2025-03-20,2025-04-19 00:00:00,,0)
[2025-03-20 04:30:14] Production.INFO: SubscriptionCharge - -5
[2025-03-20 04:30:14] Production.INFO: Already Invoice Subscription 0
[2025-03-20 04:30:14] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(121,1,11,2025-03-20,2025-04-19 00:00:00,Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service,-10,-5,2,418)
[2025-03-20 04:30:14] Production.INFO: DiscountAmount 0.000000
[2025-03-20 04:30:14] Production.INFO: DiscountType
[2025-03-20 04:30:14] Production.INFO: SubscriptionCharge -10
[2025-03-20 04:30:14] Production.INFO: New SubscriptionCharge -10
[2025-03-20 04:30:14] Production.INFO: TotalSubscriptionCharge - -10.00
[2025-03-20 04:30:14] Production.INFO: ============================Subscription End =================
[2025-03-20 04:30:14] Production.INFO: SUBSCRIPTION Over
[2025-03-20 04:30:14] Production.INFO: Call prc_getAccountOneOffCharge(121,0,2025-02-20,2025-03-20 23:59:59)
[2025-03-20 04:30:14] Production.INFO: AccountOneOffCharge 0
[2025-03-20 04:30:14] Production.INFO: AccountOneOffCharge Over
[2025-03-20 04:30:14] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start
[2025-03-20 04:30:14] Production.INFO: New UsageDates 2025-02-20 - 2025-03-19 23:59:59
[2025-03-20 04:30:14] Production.INFO: SubTotal 67.5
[2025-03-20 04:30:14] Production.INFO: SubTotalWithouttaxTotal 0
[2025-03-20 04:30:14] Production.INFO: AccountOneOffCharge Tax Over
[2025-03-20 04:30:14] Production.INFO: TotalTax 8.775
[2025-03-20 04:30:14] Production.INFO: InvoiceGrandTotal 76.275
[2025-03-20 04:30:15] Production.INFO: InvoiceTaxAmount 8.78
[2025-03-20 04:30:15] Production.INFO: GrandTotal 76.28
[2025-03-20 04:30:15] Production.INFO: SubTotal 67.50
[2025-03-20 04:30:15] Production.INFO: TotalDue -76.28
[2025-03-20 04:30:15] Production.INFO: Reseller ==> 0
[2025-03-20 04:30:15] Production.INFO: original start date ==>2025-02-20 changed start date ==>2025-02-20 00:00:00 original end date ==>2025-03-19 23:59:59 changed end date ==>2025-03-19 23:59:59
[2025-03-20 04:30:15] Production.INFO: CALL prc_getInvoiceUsage(1,'121','0','1','2025-02-20 00:00:00','2025-03-19 23:59:59',0)
[2025-03-20 04:30:15] Production.INFO: PDF Generation start
[2025-03-20 04:30:15] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/121/Invoices/2025/03/20/Invoice-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.pdf
[2025-03-20 04:30:15] Production.INFO: On Linux
[2025-03-20 04:30:17] Production.INFO: /var/www/html/onswitch.neon.service/wkhtmltox/bin/wkhtmltopdf --header-spacing 3 --footer-spacing 1 --header-html --footer-html "/var/www/tmp/1/121/Invoices/2025/03/20/footer-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.html" "/var/www/tmp/1/121/Invoices/2025/03/20/Invoice-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.html" "/var/www/tmp/1/121/Invoices/2025/03/20/Invoice-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.pdf"
[2025-03-20 04:30:17] Production.INFO:
[2025-03-20 04:30:17] Production.INFO: /var/www/tmp/1/121/Invoices/2025/03/20/Invoice-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.html
[2025-03-20 04:30:17] Production.INFO: /var/www/tmp/1/121/Invoices/2025/03/20/header-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.html
[2025-03-20 04:30:17] Production.INFO: /var/www/tmp/1/121/Invoices/2025/03/20/footer-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.html
[2025-03-20 04:30:17] Production.INFO: Invoice generation PDF path
[2025-03-20 04:30:17] Production.INFO: PDF fullPath 1/121/Invoices/2025/03/20/Invoice-dominos-10462-anwar-hossain-inv11740-from-02-20-2025-to-03-19-2025-10681.pdf
[2025-03-20 04:30:17] Production.INFO: Generate Usage File Start
[2025-03-20 04:30:17] Production.INFO: Usage File fullPath 1/121/InvoiceUsageFile/2025/03/20/dominos-10462-anwar-hossain-20-02-2025-00-00-00-TO-19-03-2025-23-59-59_4929__8d8d2ee0-0565-11f0-9e9e-7519a6e5ef49.csv
[2025-03-20 04:30:18] Production.INFO: Sending Email to Staff over
[2025-03-20 04:30:18] Production.INFO: Email Status 1
[2025-03-20 04:30:18] Production.INFO: Sending Email to Customer
[2025-03-20 04:30:19] Production.INFO: Email Try 10681 1
[2025-03-20 04:30:19] Production.INFO: =========== Email Sending over ===========
[2025-03-20 04:30:19] Production.INFO: =========== Returning as Success =========== AccountID 121
[2025-03-20 04:30:19] Production.INFO: Invoice::sendInvoice done
[2025-03-20 04:30:19] Production.INFO: Invoice created - Array
(
[status] => success
[message] => Invoice Created Successfully.
[accounts] =>
)
[2025-03-20 04:30:19] Production.INFO: Invoice Committed AccountID = 121
[2025-03-20 04:30:19] Production.INFO: =========== Updating InvoiceDate ===========
[2025-03-20 04:30:19] Production.INFO: NextInvoice 2025-03-20 2025-04-19
[2025-03-20 04:30:19] Production.INFO: new dates
[2025-03-20 04:30:19] Production.INFO: LastInvoiceDate 2025-03-20 NextInvoiceDate 2025-04-20
[2025-03-20 04:30:19] Production.INFO: LastChargeDate 2025-03-20 NextChargeDate 2025-04-19
[2025-03-20 04:30:19] Production.INFO: =========== Updated InvoiceDate ===========
[2025-03-20 04:30:19] Production.INFO: ========================== Invoice Send End =============================
[2025-03-20 04:30:19] Production.INFO: AccountID =258 FirstInvoiceSend 0
[2025-03-20 04:30:19] Production.INFO: LastInvoiceDate 2025-02-10 NextInvoiceDate 2025-03-10
[2025-03-20 04:30:19] Production.INFO: LastChargeDate 2025-02-10 NextChargeDate 2025-03-09
[2025-03-20 04:30:19] Production.INFO: isCDRLoaded Array
(
[0] => stdClass Object
(
[isLoaded] => 1
)
)
[2025-03-20 04:30:19] Production.INFO: ========================== Invoice Send Start =============================
[2025-03-20 04:30:19] Production.INFO: Invoice::sendInvoice(1,258,2025-02-10,2025-03-10,billing@onswitchit.ca)
[2025-03-20 04:30:19] Production.INFO: start Date =2025-02-10 EndDate =2025-03-09 23:59:59
[2025-03-20 04:30:19] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV
[2025-03-20 04:30:19] Production.INFO: InvoiceTemplate->Terms =
This a summary of your subscription and usage charges for this billing period. Detailed charges, such as a list of all billable calls, can be found on subsequent pages.
[2025-03-20 04:30:19] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled
[2025-03-20 04:30:19] Production.INFO: Invoice::sendInvoice done
[2025-03-20 04:30:19] Production.INFO: Invoice rollback AccountID = 258
[2025-03-20 04:30:19] Production.INFO: ========================== Error =============================
[2025-03-20 04:30:19] Production.INFO: Invoice with Error - Array
(
[status] => failure
[message] => Lion Motors Account is already billed on this duration
)
[2025-03-20 04:30:19] Production.INFO: ========================== Invoice Send End =============================
[2025-03-20 04:30:19] Production.INFO: ========================== Recurring invoice Start =============================
[2025-03-20 04:30:19] Production.INFO: recurring invoices ID
[2025-03-20 04:30:19] Production.INFO:
[2025-03-20 04:30:19] Production.INFO: recurring errorsArray
(
)
[2025-03-20 04:30:19] Production.INFO: ========================== Recurring invoice End =============================
[2025-03-20 04:30:19] Production.INFO: ========================== Job Updated =============================
[2025-03-20 04:30:21] Production.INFO: ========================== Job Email Sent =============================
[2025-03-20 04:30:22] Production.ERROR: **Email Sent Status 1
[2025-03-20 04:30:22] Production.ERROR: **Email Sent message Email has been sent
[2025-03-20 04:30:22] Production.ERROR: CronJobId end6
[2025-03-20 04:30:22] Production.INFO: ==11167== Releasing lock...
[2025-03-20 04:30:22] Production.INFO: invoicegenerator-command-invoicegenerator-companyid-1-cronjobid-6 #Stops#
[2025-03-20 04:30:22] Production.INFO: 41.75 MB #Memory Used#