[2025-03-12 04:31:04] Production.INFO: Call prc_getBillingAccounts(1,2025-03-12,'','0')  
[2025-03-12 04:31:04] Production.INFO: Array
(
    [0] => stdClass Object
        (
            [AccountID] => 70
            [NextInvoiceDate] => 2025-03-12
            [AccountName] => Dominos 10293 (David Mills)
            [ServiceID] => 0
        )

    [1] => stdClass Object
        (
            [AccountID] => 130
            [NextInvoiceDate] => 2025-03-12
            [AccountName] => Auto Loan Centre
            [ServiceID] => 0
        )

    [2] => stdClass Object
        (
            [AccountID] => 258
            [NextInvoiceDate] => 2025-03-10
            [AccountName] => Lion Motors
            [ServiceID] => 0
        )

)
  
[2025-03-12 04:31:04] Production.INFO: AccountID =70 FirstInvoiceSend 0  
[2025-03-12 04:31:04] Production.INFO: LastInvoiceDate 2025-02-12 NextInvoiceDate 2025-03-12  
[2025-03-12 04:31:04] Production.INFO: LastChargeDate 2025-02-12 NextChargeDate 2025-03-11  
[2025-03-12 04:31:04] Production.INFO: isCDRLoaded Array
(
    [0] => stdClass Object
        (
            [isLoaded] => 1
        )

)
  
[2025-03-12 04:31:04] Production.INFO:  ========================== Invoice Send Start =============================  
[2025-03-12 04:31:04] Production.INFO: Invoice::sendInvoice(1,70,2025-02-12,2025-03-12,billing@onswitchit.ca)  
[2025-03-12 04:31:04] Production.INFO: start Date =2025-02-12 EndDate =2025-03-11 23:59:59  
[2025-03-12 04:31:04] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV  
[2025-03-12 04:31:04] Production.INFO: InvoiceTemplate->Terms =<p><br></p><p><br></p><p>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.</p><p><br></p>  
[2025-03-12 04:31:04] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled  
[2025-03-12 04:31:04] Production.INFO: AlreadyBilled   
[2025-03-12 04:31:04] Production.INFO: Reseller ==> 0  
[2025-03-12 04:31:04] Production.INFO: original start date ==>2025-02-12 changed start date ==>2025-02-12 00:00:00 original end date ==>2025-03-11 23:59:59 changed end date ==>2025-03-11 23:59:59  
[2025-03-12 04:31:04] Production.INFO: Invoice::getAccountUsageTotal(1,70,2025-02-12,2025-03-11 23:59:59)  
[2025-03-12 04:31:04] Production.INFO: TotalCharges - 0  
[2025-03-12 04:31:04] Production.INFO: TotalUsageCharges - 0.00  
[2025-03-12 04:31:04] Production.INFO: Usage Over  
[2025-03-12 04:31:04] Production.INFO: Call prc_getAccountSubscription(70,0)  
[2025-03-12 04:31:04] Production.INFO: SUBSCRIPTION 3  
[2025-03-12 04:31:04] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-12 04:31:04] Production.INFO:  SubscriptionID - 5  
[2025-03-12 04:31:04] Production.INFO: isAdvanceSubscription - 5  
[2025-03-12 04:31:04] Production.INFO: SubscriptionStartDate =2025-03-12 - SubscriptionEndDate = 2025-04-11  
[2025-03-12 04:31:04] Production.INFO: NewNextChargeDate =2025-04-11 00:00:00  
[2025-03-12 04:31:04] Production.INFO: EndDate =2025-03-11 00:00:00  
[2025-03-12 04:31:04] Production.INFO: NewEndDate1 =2025-03-12  
[2025-03-12 04:31:04] Production.INFO: SubscriptionDate  
[2025-03-12 04:31:04] Production.INFO: Array
(
    [StartDate] => 2025-03-12
    [EndDate] => 2025-04-11 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-12 04:31:04] Production.INFO: New Account Subscription Start  
[2025-03-12 04:31:04] Production.INFO:  AccountSubscription StartDate 2018-06-12 StartDate 2025-02-12  
[2025-03-12 04:31:04] Production.INFO:  SubscriptionID - 2025-03-12=====2025-04-11 00:00:00  
[2025-03-12 04:31:04] Production.INFO:  AccountSubscriptionID - 283 === 2018-06-12=====2026-03-12  
[2025-03-12 04:31:04] Production.INFO: regular Advance Subscription   
[2025-03-12 04:31:04] Production.INFO: First Time False 2018-06-12 2025-03-12  
[2025-03-12 04:31:04] Production.INFO: StartDate 2025-03-12 AccountSubscription->StartDate 2018-06-12 EndDate 2025-04-11 00:00:00 AccountSubscription->EndDate 2026-03-12  
[2025-03-12 04:31:04] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-12 04:31:04] Production.INFO: AccountSubscription::getSubscriptionAmount(283,2025-03-12,2025-04-11 00:00:00,,0)  
[2025-03-12 04:31:04] Production.INFO: SubscriptionCharge - 75  
[2025-03-12 04:31:04] Production.INFO: Already Invoice Subscription 0  
[2025-03-12 04:31:04] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(70,1,5,2025-03-12,2025-04-11 00:00:00,Restaurant - 4 Line Flat Rate,75,75,1,283)  
[2025-03-12 04:31:04] Production.INFO: DiscountAmount 0.000000  
[2025-03-12 04:31:04] Production.INFO: DiscountType   
[2025-03-12 04:31:04] Production.INFO: SubscriptionCharge 75  
[2025-03-12 04:31:04] Production.INFO: New SubscriptionCharge 75  
[2025-03-12 04:31:04] Production.INFO:  TotalSubscriptionCharge - 75.00  
[2025-03-12 04:31:04] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-12 04:31:04] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-12 04:31:04] Production.INFO:  SubscriptionID - 4  
[2025-03-12 04:31:04] Production.INFO: isAdvanceSubscription - 4  
[2025-03-12 04:31:04] Production.INFO: SubscriptionStartDate =2025-03-12 - SubscriptionEndDate = 2025-04-11  
[2025-03-12 04:31:04] Production.INFO: NewNextChargeDate =2025-04-11 00:00:00  
[2025-03-12 04:31:04] Production.INFO: EndDate =2025-03-11 00:00:00  
[2025-03-12 04:31:04] Production.INFO: NewEndDate1 =2025-03-12  
[2025-03-12 04:31:04] Production.INFO: SubscriptionDate  
[2025-03-12 04:31:04] Production.INFO: Array
(
    [StartDate] => 2025-03-12
    [EndDate] => 2025-04-11 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-12 04:31:04] Production.INFO: New Account Subscription Start  
[2025-03-12 04:31:04] Production.INFO:  AccountSubscription StartDate 2018-06-12 StartDate 2025-02-12  
[2025-03-12 04:31:04] Production.INFO:  SubscriptionID - 2025-03-12=====2025-04-11 00:00:00  
[2025-03-12 04:31:04] Production.INFO:  AccountSubscriptionID - 284 === 2018-06-12=====2026-03-12  
[2025-03-12 04:31:04] Production.INFO: regular Advance Subscription   
[2025-03-12 04:31:04] Production.INFO: First Time False 2018-06-12 2025-03-12  
[2025-03-12 04:31:04] Production.INFO: StartDate 2025-03-12 AccountSubscription->StartDate 2018-06-12 EndDate 2025-04-11 00:00:00 AccountSubscription->EndDate 2026-03-12  
[2025-03-12 04:31:04] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-12 04:31:04] Production.INFO: AccountSubscription::getSubscriptionAmount(284,2025-03-12,2025-04-11 00:00:00,,0)  
[2025-03-12 04:31:04] Production.INFO: SubscriptionCharge - 2.5  
[2025-03-12 04:31:04] Production.INFO: Already Invoice Subscription 0  
[2025-03-12 04:31:04] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(70,1,4,2025-03-12,2025-04-11 00:00:00,e911 address registration (19054589858 - 1650 WILLIAMS PKWY  BRAMPTON, ON L6S5R7),2.5,2.5,1,284)  
[2025-03-12 04:31:04] Production.INFO: DiscountAmount 0.000000  
[2025-03-12 04:31:04] Production.INFO: DiscountType   
[2025-03-12 04:31:04] Production.INFO: SubscriptionCharge 2.5  
[2025-03-12 04:31:04] Production.INFO: New SubscriptionCharge 2.5  
[2025-03-12 04:31:04] Production.INFO:  TotalSubscriptionCharge - 2.50  
[2025-03-12 04:31:04] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-12 04:31:04] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-12 04:31:04] Production.INFO:  SubscriptionID - 11  
[2025-03-12 04:31:04] Production.INFO: isAdvanceSubscription - 11  
[2025-03-12 04:31:05] Production.INFO: SubscriptionStartDate =2025-03-12 - SubscriptionEndDate = 2025-04-11  
[2025-03-12 04:31:05] Production.INFO: NewNextChargeDate =2025-04-11 00:00:00  
[2025-03-12 04:31:05] Production.INFO: EndDate =2025-03-11 00:00:00  
[2025-03-12 04:31:05] Production.INFO: NewEndDate1 =2025-03-12  
[2025-03-12 04:31:05] Production.INFO: SubscriptionDate  
[2025-03-12 04:31:05] Production.INFO: Array
(
    [StartDate] => 2025-03-12
    [EndDate] => 2025-04-11 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-12 04:31:05] Production.INFO:  AccountSubscription StartDate 2019-02-19 StartDate 2025-02-12  
[2025-03-12 04:31:05] Production.INFO:  SubscriptionID - 2025-03-12=====2025-04-11 00:00:00  
[2025-03-12 04:31:05] Production.INFO:  AccountSubscriptionID - 379 === 2019-02-19=====2026-03-12  
[2025-03-12 04:31:05] Production.INFO: regular Advance Subscription   
[2025-03-12 04:31:05] Production.INFO: First Time False 2019-02-19 2025-03-12  
[2025-03-12 04:31:05] Production.INFO: StartDate 2025-03-12 AccountSubscription->StartDate 2019-02-19 EndDate 2025-04-11 00:00:00 AccountSubscription->EndDate 2026-03-12  
[2025-03-12 04:31:05] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-12 04:31:05] Production.INFO: AccountSubscription::getSubscriptionAmount(379,2025-03-12,2025-04-11 00:00:00,,0)  
[2025-03-12 04:31:05] Production.INFO: SubscriptionCharge - -5  
[2025-03-12 04:31:05] Production.INFO: Already Invoice Subscription 0  
[2025-03-12 04:31:05] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(70,1,11,2025-03-12,2025-04-11 00:00:00,Provides a $5/store/month discount when 2+ stores have OnSwitch Cloud Phone service,-20,-5,4,379)  
[2025-03-12 04:31:05] Production.INFO: DiscountAmount 0.000000  
[2025-03-12 04:31:05] Production.INFO: DiscountType   
[2025-03-12 04:31:05] Production.INFO: SubscriptionCharge -20  
[2025-03-12 04:31:05] Production.INFO: New SubscriptionCharge -20  
[2025-03-12 04:31:05] Production.INFO:  TotalSubscriptionCharge - -20.00  
[2025-03-12 04:31:05] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-12 04:31:05] Production.INFO: SUBSCRIPTION Over  
[2025-03-12 04:31:05] Production.INFO: Call prc_getAccountOneOffCharge(70,0,2025-02-12,2025-03-12 23:59:59)  
[2025-03-12 04:31:05] Production.INFO: AccountOneOffCharge 0  
[2025-03-12 04:31:05] Production.INFO: AccountOneOffCharge Over  
[2025-03-12 04:31:05] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start  
[2025-03-12 04:31:05] Production.INFO: New UsageDates 2025-02-12 - 2025-03-11 23:59:59  
[2025-03-12 04:31:05] Production.INFO:  SubTotal 57.5  
[2025-03-12 04:31:05] Production.INFO:  SubTotalWithouttaxTotal 0  
[2025-03-12 04:31:05] Production.INFO: AccountOneOffCharge Tax Over  
[2025-03-12 04:31:05] Production.INFO:  TotalTax 7.475  
[2025-03-12 04:31:05] Production.INFO:  InvoiceGrandTotal 64.975  
[2025-03-12 04:31:05] Production.INFO: InvoiceTaxAmount 7.48  
[2025-03-12 04:31:05] Production.INFO: GrandTotal 64.98  
[2025-03-12 04:31:05] Production.INFO: SubTotal 57.50  
[2025-03-12 04:31:05] Production.INFO: TotalDue 64.98  
[2025-03-12 04:31:05] Production.INFO: Reseller ==> 0  
[2025-03-12 04:31:05] Production.INFO: original start date ==>2025-02-12 changed start date ==>2025-02-12 00:00:00 original end date ==>2025-03-11 23:59:59 changed end date ==>2025-03-11 23:59:59  
[2025-03-12 04:31:05] Production.INFO: CALL prc_getInvoiceUsage(1,'70','0','1','2025-02-12 00:00:00','2025-03-11 23:59:59',0)  
[2025-03-12 04:31:05] Production.INFO: PDF Generation start  
[2025-03-12 04:31:05] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/70/Invoices/2025/03/12/Invoice-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.pdf  
[2025-03-12 04:31:05] Production.INFO: On Linux  
[2025-03-12 04:31:06] 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/70/Invoices/2025/03/12/footer-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.html" "/var/www/tmp/1/70/Invoices/2025/03/12/Invoice-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.html" "/var/www/tmp/1/70/Invoices/2025/03/12/Invoice-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.pdf"  
[2025-03-12 04:31:06] Production.INFO:   
[2025-03-12 04:31:06] Production.INFO: /var/www/tmp/1/70/Invoices/2025/03/12/Invoice-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.html  
[2025-03-12 04:31:06] Production.INFO: /var/www/tmp/1/70/Invoices/2025/03/12/header-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.html  
[2025-03-12 04:31:06] Production.INFO: /var/www/tmp/1/70/Invoices/2025/03/12/footer-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.html  
[2025-03-12 04:31:06] Production.INFO: Invoice generation PDF path  
[2025-03-12 04:31:06] Production.INFO: PDF fullPath 1/70/Invoices/2025/03/12/Invoice-dominos-10293-david-mills-inv11684-from-02-12-2025-to-03-11-2025-10625.pdf  
[2025-03-12 04:31:06] Production.INFO: Generate Usage File Start   
[2025-03-12 04:31:06] Production.INFO: Usage File fullPath 1/70/InvoiceUsageFile/2025/03/12/dominos-10293-david-mills-12-02-2025-00-00-00-TO-11-03-2025-23-59-59_8801__57d8c510-ff1c-11ef-99b4-a75b33b3752f.csv  
[2025-03-12 04:31:08] Production.INFO: Sending Email to Staff over  
[2025-03-12 04:31:08] Production.INFO: Email Status  1  
[2025-03-12 04:31:08] Production.INFO: Sending Email to Customer  
[2025-03-12 04:31:09] Production.INFO: Email Try 10625 1  
[2025-03-12 04:31:09] Production.INFO: =========== Email Sending over ===========   
[2025-03-12 04:31:09] Production.INFO: =========== Returning as Success =========== AccountID 70  
[2025-03-12 04:31:09] Production.INFO: Invoice::sendInvoice done  
[2025-03-12 04:31:09] Production.INFO: Invoice created - Array
(
    [status] => success
    [message] => Invoice Created Successfully.
    [accounts] => 
)
  
[2025-03-12 04:31:09] Production.INFO: Invoice Committed  AccountID = 70  
[2025-03-12 04:31:09] Production.INFO: =========== Updating  InvoiceDate ===========   
[2025-03-12 04:31:09] Production.INFO: NextInvoice 2025-03-12 2025-04-11  
[2025-03-12 04:31:09] Production.INFO: new dates  
[2025-03-12 04:31:09] Production.INFO: LastInvoiceDate 2025-03-12 NextInvoiceDate 2025-04-12  
[2025-03-12 04:31:09] Production.INFO: LastChargeDate 2025-03-12 NextChargeDate 2025-04-11  
[2025-03-12 04:31:09] Production.INFO: =========== Updated  InvoiceDate ===========   
[2025-03-12 04:31:09] Production.INFO:  ========================== Invoice Send End =============================  
[2025-03-12 04:31:09] Production.INFO: AccountID =130 FirstInvoiceSend 0  
[2025-03-12 04:31:09] Production.INFO: LastInvoiceDate 2025-02-12 NextInvoiceDate 2025-03-12  
[2025-03-12 04:31:09] Production.INFO: LastChargeDate 2025-02-12 NextChargeDate 2025-03-11  
[2025-03-12 04:31:09] Production.INFO: isCDRLoaded Array
(
    [0] => stdClass Object
        (
            [isLoaded] => 1
        )

)
  
[2025-03-12 04:31:09] Production.INFO:  ========================== Invoice Send Start =============================  
[2025-03-12 04:31:09] Production.INFO: Invoice::sendInvoice(1,130,2025-02-12,2025-03-12,billing@onswitchit.ca)  
[2025-03-12 04:31:09] Production.INFO: start Date =2025-02-12 EndDate =2025-03-11 23:59:59  
[2025-03-12 04:31:09] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV  
[2025-03-12 04:31:09] Production.INFO: InvoiceTemplate->Terms =<p><br></p><p><br></p><p>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.</p><p><br></p>  
[2025-03-12 04:31:09] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled  
[2025-03-12 04:31:09] Production.INFO: AlreadyBilled   
[2025-03-12 04:31:09] Production.INFO: Reseller ==> 0  
[2025-03-12 04:31:09] Production.INFO: original start date ==>2025-02-12 changed start date ==>2025-02-12 00:00:00 original end date ==>2025-03-11 23:59:59 changed end date ==>2025-03-11 23:59:59  
[2025-03-12 04:31:09] Production.INFO:  CompanyGatewayID 1 TotalCharges ==>2.19000000  
[2025-03-12 04:31:09] Production.INFO: Invoice::getAccountUsageTotal(1,130,2025-02-12,2025-03-11 23:59:59)  
[2025-03-12 04:31:09] Production.INFO: TotalCharges - 2.19  
[2025-03-12 04:31:09] Production.INFO: TotalUsageCharges - 2.19  
[2025-03-12 04:31:09] Production.INFO: Usage Over  
[2025-03-12 04:31:09] Production.INFO: Call prc_getAccountSubscription(130,0)  
[2025-03-12 04:31:09] Production.INFO: SUBSCRIPTION 4  
[2025-03-12 04:31:09] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-12 04:31:09] Production.INFO:  SubscriptionID - 23  
[2025-03-12 04:31:09] Production.INFO: isAdvanceSubscription - 23  
[2025-03-12 04:31:09] Production.INFO: SubscriptionStartDate =2025-03-12 - SubscriptionEndDate = 2025-04-11  
[2025-03-12 04:31:09] Production.INFO: NewNextChargeDate =2025-04-11 00:00:00  
[2025-03-12 04:31:09] Production.INFO: EndDate =2025-03-11 00:00:00  
[2025-03-12 04:31:09] Production.INFO: NewEndDate1 =2025-03-12  
[2025-03-12 04:31:09] Production.INFO: SubscriptionDate  
[2025-03-12 04:31:09] Production.INFO: Array
(
    [StartDate] => 2025-03-12
    [EndDate] => 2025-04-11 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-12 04:31:09] Production.INFO:  AccountSubscription StartDate 2020-03-05 StartDate 2025-02-12  
[2025-03-12 04:31:09] Production.INFO:  SubscriptionID - 2025-03-12=====2025-04-11 00:00:00  
[2025-03-12 04:31:09] Production.INFO:  AccountSubscriptionID - 472 === 2020-03-05=====2026-03-12  
[2025-03-12 04:31:09] Production.INFO: regular Advance Subscription   
[2025-03-12 04:31:09] Production.INFO: First Time False 2020-03-05 2025-03-12  
[2025-03-12 04:31:09] Production.INFO: StartDate 2025-03-12 AccountSubscription->StartDate 2020-03-05 EndDate 2025-04-11 00:00:00 AccountSubscription->EndDate 2026-03-12  
[2025-03-12 04:31:09] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-12 04:31:09] Production.INFO: AccountSubscription::getSubscriptionAmount(472,2025-03-12,2025-04-11 00:00:00,,0)  
[2025-03-12 04:31:09] Production.INFO: SubscriptionCharge - 63.17  
[2025-03-12 04:31:09] Production.INFO: Already Invoice Subscription 0  
[2025-03-12 04:31:09] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(130,5,23,2025-03-12,2025-04-11 00:00:00,LTE Internet Failover Service (1389 Cardiff Blvd, Unit 4, Mississauga, ON L5S 1P9 Canada),63.17,63.17,1,472)  
[2025-03-12 04:31:09] Production.INFO: DiscountAmount 0.000000  
[2025-03-12 04:31:09] Production.INFO: DiscountType   
[2025-03-12 04:31:09] Production.INFO: SubscriptionCharge 63.17  
[2025-03-12 04:31:09] Production.INFO: New SubscriptionCharge 63.17  
[2025-03-12 04:31:09] Production.INFO:  TotalSubscriptionCharge - 63.17  
[2025-03-12 04:31:09] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-12 04:31:09] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-12 04:31:09] Production.INFO:  SubscriptionID - 1  
[2025-03-12 04:31:09] Production.INFO: isAdvanceSubscription - 1  
[2025-03-12 04:31:09] Production.INFO: SubscriptionStartDate =2025-03-12 - SubscriptionEndDate = 2025-04-11  
[2025-03-12 04:31:09] Production.INFO: NewNextChargeDate =2025-04-11 00:00:00  
[2025-03-12 04:31:09] Production.INFO: EndDate =2025-03-11 00:00:00  
[2025-03-12 04:31:09] Production.INFO: NewEndDate1 =2025-03-12  
[2025-03-12 04:31:09] Production.INFO: SubscriptionDate  
[2025-03-12 04:31:09] Production.INFO: Array
(
    [StartDate] => 2025-03-12
    [EndDate] => 2025-04-11 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-12 04:31:09] Production.INFO:  AccountSubscription StartDate 2020-03-05 StartDate 2025-02-12  
[2025-03-12 04:31:09] Production.INFO:  SubscriptionID - 2025-03-12=====2025-04-11 00:00:00  
[2025-03-12 04:31:09] Production.INFO:  AccountSubscriptionID - 473 === 2020-03-05=====2026-03-12  
[2025-03-12 04:31:09] Production.INFO: regular Advance Subscription   
[2025-03-12 04:31:09] Production.INFO: First Time False 2020-03-05 2025-03-12  
[2025-03-12 04:31:09] Production.INFO: StartDate 2025-03-12 AccountSubscription->StartDate 2020-03-05 EndDate 2025-04-11 00:00:00 AccountSubscription->EndDate 2026-03-12  
[2025-03-12 04:31:09] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-12 04:31:09] Production.INFO: AccountSubscription::getSubscriptionAmount(473,2025-03-12,2025-04-11 00:00:00,,0)  
[2025-03-12 04:31:09] Production.INFO: SubscriptionCharge - 7  
[2025-03-12 04:31:09] Production.INFO: Already Invoice Subscription 0  
[2025-03-12 04:31:09] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(130,1,1,2025-03-12,2025-04-11 00:00:00,License for a Pay As You Go Cloud Phone extension,77,7,11,473)  
[2025-03-12 04:31:09] Production.INFO: DiscountAmount 0.000000  
[2025-03-12 04:31:09] Production.INFO: DiscountType   
[2025-03-12 04:31:09] Production.INFO: SubscriptionCharge 77  
[2025-03-12 04:31:09] Production.INFO: New SubscriptionCharge 77  
[2025-03-12 04:31:09] Production.INFO:  TotalSubscriptionCharge - 77.00  
[2025-03-12 04:31:10] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-12 04:31:10] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-12 04:31:10] Production.INFO:  SubscriptionID - 1  
[2025-03-12 04:31:10] Production.INFO: isAdvanceSubscription - 1  
[2025-03-12 04:31:10] Production.INFO: SubscriptionStartDate =2025-03-12 - SubscriptionEndDate = 2025-04-11  
[2025-03-12 04:31:10] Production.INFO: NewNextChargeDate =2025-04-11 00:00:00  
[2025-03-12 04:31:10] Production.INFO: EndDate =2025-03-11 00:00:00  
[2025-03-12 04:31:10] Production.INFO: NewEndDate1 =2025-03-12  
[2025-03-12 04:31:10] Production.INFO: SubscriptionDate  
[2025-03-12 04:31:10] Production.INFO: Array
(
    [StartDate] => 2025-03-12
    [EndDate] => 2025-04-11 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-12 04:31:10] Production.INFO:  AccountSubscription StartDate 2020-03-05 StartDate 2025-02-12  
[2025-03-12 04:31:10] Production.INFO:  SubscriptionID - 2025-03-12=====2025-04-11 00:00:00  
[2025-03-12 04:31:10] Production.INFO:  AccountSubscriptionID - 474 === 2020-03-05=====2026-03-12  
[2025-03-12 04:31:10] Production.INFO: regular Advance Subscription   
[2025-03-12 04:31:10] Production.INFO: First Time False 2020-03-05 2025-03-12  
[2025-03-12 04:31:10] Production.INFO: StartDate 2025-03-12 AccountSubscription->StartDate 2020-03-05 EndDate 2025-04-11 00:00:00 AccountSubscription->EndDate 2026-03-12  
[2025-03-12 04:31:10] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-12 04:31:10] Production.INFO: AccountSubscription::getSubscriptionAmount(474,2025-03-12,2025-04-11 00:00:00,,0)  
[2025-03-12 04:31:10] Production.INFO: SubscriptionCharge - 5  
[2025-03-12 04:31:10] Production.INFO: Already Invoice Subscription 0  
[2025-03-12 04:31:10] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(130,1,1,2025-03-12,2025-04-11 00:00:00,License for a fax extension (12894592111),5,5,1,474)  
[2025-03-12 04:31:10] Production.INFO: DiscountAmount 0.000000  
[2025-03-12 04:31:10] Production.INFO: DiscountType   
[2025-03-12 04:31:10] Production.INFO: SubscriptionCharge 5  
[2025-03-12 04:31:10] Production.INFO: New SubscriptionCharge 5  
[2025-03-12 04:31:10] Production.INFO:  TotalSubscriptionCharge - 5.00  
[2025-03-12 04:31:10] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-12 04:31:10] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-12 04:31:10] Production.INFO:  SubscriptionID - 12  
[2025-03-12 04:31:10] Production.INFO: isAdvanceSubscription - 12  
[2025-03-12 04:31:10] Production.INFO: SubscriptionStartDate =2025-03-12 - SubscriptionEndDate = 2025-04-11  
[2025-03-12 04:31:10] Production.INFO: NewNextChargeDate =2025-04-11 00:00:00  
[2025-03-12 04:31:10] Production.INFO: EndDate =2025-03-11 00:00:00  
[2025-03-12 04:31:10] Production.INFO: NewEndDate1 =2025-03-12  
[2025-03-12 04:31:10] Production.INFO: SubscriptionDate  
[2025-03-12 04:31:10] Production.INFO: Array
(
    [StartDate] => 2025-03-12
    [EndDate] => 2025-04-11 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-12 04:31:10] Production.INFO:  AccountSubscription StartDate 2020-06-10 StartDate 2025-02-12  
[2025-03-12 04:31:10] Production.INFO:  SubscriptionID - 2025-03-12=====2025-04-11 00:00:00  
[2025-03-12 04:31:10] Production.INFO:  AccountSubscriptionID - 499 === 2020-06-10=====2026-03-12  
[2025-03-12 04:31:10] Production.INFO: regular Advance Subscription   
[2025-03-12 04:31:10] Production.INFO: First Time False 2020-06-10 2025-03-12  
[2025-03-12 04:31:10] Production.INFO: StartDate 2025-03-12 AccountSubscription->StartDate 2020-06-10 EndDate 2025-04-11 00:00:00 AccountSubscription->EndDate 2026-03-12  
[2025-03-12 04:31:10] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-12 04:31:10] Production.INFO: AccountSubscription::getSubscriptionAmount(499,2025-03-12,2025-04-11 00:00:00,,0)  
[2025-03-12 04:31:10] Production.INFO: SubscriptionCharge - 0  
[2025-03-12 04:31:10] Production.INFO: Already Invoice Subscription 0  
[2025-03-12 04:31:10] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(130,1,12,2025-03-12,2025-04-11 00:00:00,Included DID (19058899642),0,0,1,499)  
[2025-03-12 04:31:10] Production.INFO: DiscountAmount 0.000000  
[2025-03-12 04:31:10] Production.INFO: DiscountType   
[2025-03-12 04:31:10] Production.INFO: SubscriptionCharge 0  
[2025-03-12 04:31:10] Production.INFO: New SubscriptionCharge 0  
[2025-03-12 04:31:10] Production.INFO:  TotalSubscriptionCharge - 0.00  
[2025-03-12 04:31:10] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-12 04:31:10] Production.INFO: SUBSCRIPTION Over  
[2025-03-12 04:31:10] Production.INFO: Call prc_getAccountOneOffCharge(130,0,2025-02-12,2025-03-12 23:59:59)  
[2025-03-12 04:31:10] Production.INFO: AccountOneOffCharge 0  
[2025-03-12 04:31:10] Production.INFO: AccountOneOffCharge Over  
[2025-03-12 04:31:10] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start  
[2025-03-12 04:31:10] Production.INFO: New UsageDates 2025-02-12 - 2025-03-11 23:59:59  
[2025-03-12 04:31:10] Production.INFO:  SubTotal 147.36  
[2025-03-12 04:31:10] Production.INFO:  SubTotalWithouttaxTotal 0  
[2025-03-12 04:31:10] Production.INFO: AccountOneOffCharge Tax Over  
[2025-03-12 04:31:10] Production.INFO:  TotalTax 19.1568  
[2025-03-12 04:31:10] Production.INFO:  InvoiceGrandTotal 166.5168  
[2025-03-12 04:31:10] Production.INFO: InvoiceTaxAmount 19.16  
[2025-03-12 04:31:10] Production.INFO: GrandTotal 166.52  
[2025-03-12 04:31:10] Production.INFO: SubTotal 147.36  
[2025-03-12 04:31:10] Production.INFO: TotalDue 1175.73  
[2025-03-12 04:31:10] Production.INFO: Reseller ==> 0  
[2025-03-12 04:31:10] Production.INFO: original start date ==>2025-02-12 changed start date ==>2025-02-12 00:00:00 original end date ==>2025-03-11 23:59:59 changed end date ==>2025-03-11 23:59:59  
[2025-03-12 04:31:10] Production.INFO: CALL prc_getInvoiceUsage(1,'130','0','1','2025-02-12 00:00:00','2025-03-11 23:59:59',0)  
[2025-03-12 04:31:10] Production.INFO: PDF Generation start  
[2025-03-12 04:31:10] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/130/Invoices/2025/03/12/Invoice-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.pdf  
[2025-03-12 04:31:10] Production.INFO: On Linux  
[2025-03-12 04:31:11] 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/130/Invoices/2025/03/12/footer-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.html" "/var/www/tmp/1/130/Invoices/2025/03/12/Invoice-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.html" "/var/www/tmp/1/130/Invoices/2025/03/12/Invoice-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.pdf"  
[2025-03-12 04:31:11] Production.INFO:   
[2025-03-12 04:31:11] Production.INFO: /var/www/tmp/1/130/Invoices/2025/03/12/Invoice-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.html  
[2025-03-12 04:31:11] Production.INFO: /var/www/tmp/1/130/Invoices/2025/03/12/header-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.html  
[2025-03-12 04:31:11] Production.INFO: /var/www/tmp/1/130/Invoices/2025/03/12/footer-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.html  
[2025-03-12 04:31:11] Production.INFO: Invoice generation PDF path  
[2025-03-12 04:31:12] Production.INFO: PDF fullPath 1/130/Invoices/2025/03/12/Invoice-auto-loan-centre-inv11685-from-02-12-2025-to-03-11-2025-10626.pdf  
[2025-03-12 04:31:12] Production.INFO: Generate Usage File Start   
[2025-03-12 04:31:12] Production.INFO: Usage File fullPath 1/130/InvoiceUsageFile/2025/03/12/auto-loan-centre-12-02-2025-00-00-00-TO-11-03-2025-23-59-59_1604__5ad81630-ff1c-11ef-bf93-edd89a82c8f2.csv  
[2025-03-12 04:31:12] Production.INFO: Sending Email to Staff over  
[2025-03-12 04:31:12] Production.INFO: Email Status  1  
[2025-03-12 04:31:12] Production.INFO: Sending Email to Customer  
[2025-03-12 04:31:13] Production.INFO: Email Try 10626 1  
[2025-03-12 04:31:13] Production.INFO: =========== Email Sending over ===========   
[2025-03-12 04:31:13] Production.INFO: =========== Returning as Success =========== AccountID 130  
[2025-03-12 04:31:13] Production.INFO: Invoice::sendInvoice done  
[2025-03-12 04:31:13] Production.INFO: Invoice created - Array
(
    [status] => success
    [message] => Invoice Created Successfully.
    [accounts] => 
)
  
[2025-03-12 04:31:13] Production.INFO: Invoice Committed  AccountID = 130  
[2025-03-12 04:31:13] Production.INFO: =========== Updating  InvoiceDate ===========   
[2025-03-12 04:31:13] Production.INFO: NextInvoice 2025-03-12 2025-04-11  
[2025-03-12 04:31:13] Production.INFO: new dates  
[2025-03-12 04:31:13] Production.INFO: LastInvoiceDate 2025-03-12 NextInvoiceDate 2025-04-12  
[2025-03-12 04:31:13] Production.INFO: LastChargeDate 2025-03-12 NextChargeDate 2025-04-11  
[2025-03-12 04:31:13] Production.INFO: =========== Updated  InvoiceDate ===========   
[2025-03-12 04:31:13] Production.INFO:  ========================== Invoice Send End =============================  
[2025-03-12 04:31:13] Production.INFO: AccountID =258 FirstInvoiceSend 0  
[2025-03-12 04:31:13] Production.INFO: LastInvoiceDate 2025-02-10 NextInvoiceDate 2025-03-10  
[2025-03-12 04:31:13] Production.INFO: LastChargeDate 2025-02-10 NextChargeDate 2025-03-09  
[2025-03-12 04:31:13] Production.INFO: isCDRLoaded Array
(
    [0] => stdClass Object
        (
            [isLoaded] => 1
        )

)
  
[2025-03-12 04:31:13] Production.INFO:  ========================== Invoice Send Start =============================  
[2025-03-12 04:31:13] Production.INFO: Invoice::sendInvoice(1,258,2025-02-10,2025-03-10,billing@onswitchit.ca)  
[2025-03-12 04:31:13] Production.INFO: start Date =2025-02-10 EndDate =2025-03-09 23:59:59  
[2025-03-12 04:31:13] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV  
[2025-03-12 04:31:13] Production.INFO: InvoiceTemplate->Terms =<p><br></p><p><br></p><p>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.</p><p><br></p>  
[2025-03-12 04:31:13] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled  
[2025-03-12 04:31:13] Production.INFO: Invoice::sendInvoice done  
[2025-03-12 04:31:13] Production.INFO: Invoice rollback  AccountID = 258  
[2025-03-12 04:31:13] Production.INFO:  ========================== Error  =============================  
[2025-03-12 04:31:13] Production.INFO: Invoice with Error - Array
(
    [status] => failure
    [message] => Lion Motors Account is already billed on this duration
)
  
[2025-03-12 04:31:13] Production.INFO:  ========================== Invoice Send End =============================  
[2025-03-12 04:31:13] Production.INFO:  ========================== Recurring invoice Start =============================  
[2025-03-12 04:31:13] Production.INFO: recurring invoices ID  
[2025-03-12 04:31:13] Production.INFO:   
[2025-03-12 04:31:13] Production.INFO: recurring errorsArray
(
)
  
[2025-03-12 04:31:13] Production.INFO:  ========================== Recurring invoice End =============================  
[2025-03-12 04:31:13] Production.INFO:  ========================== Job Updated =============================  
[2025-03-12 04:31:15] Production.INFO:  ========================== Job Email Sent =============================  
[2025-03-12 04:31:16] Production.ERROR: **Email Sent Status 1  
[2025-03-12 04:31:16] Production.ERROR: **Email Sent message Email has been sent  
[2025-03-12 04:31:16] Production.ERROR:  CronJobId end6  
[2025-03-12 04:31:16] Production.INFO: ==11701== Releasing lock...  
[2025-03-12 04:31:16] Production.INFO: invoicegenerator-command-invoicegenerator-companyid-1-cronjobid-6 #Stops#   
[2025-03-12 04:31:16] Production.INFO: 39.25 MB  #Memory Used#