[2025-03-31 04:30:05] Production.INFO: Call prc_getBillingAccounts(1,2025-03-31,'','0')  
[2025-03-31 04:30:05] Production.INFO: Array
(
    [0] => stdClass Object
        (
            [AccountID] => 208
            [NextInvoiceDate] => 2025-03-31
            [AccountName] => Lions Auto Protection
            [ServiceID] => 0
        )

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

    [2] => stdClass Object
        (
            [AccountID] => 266
            [NextInvoiceDate] => 2025-03-31
            [AccountName] => Sam Sidhu Paralegal (Miaj Law Office)
            [ServiceID] => 0
        )

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

)
  
[2025-03-31 04:30:05] Production.INFO:  ========================== Invoice Send Start =============================  
[2025-03-31 04:30:05] Production.INFO: Invoice::sendInvoice(1,208,2025-03-03,2025-03-31,billing@onswitchit.ca)  
[2025-03-31 04:30:05] Production.INFO: start Date =2025-03-03 EndDate =2025-03-30 23:59:59  
[2025-03-31 04:30:05] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV  
[2025-03-31 04:30:05] 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-31 04:30:05] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled  
[2025-03-31 04:30:05] Production.INFO: AlreadyBilled   
[2025-03-31 04:30:05] Production.INFO: Reseller ==> 0  
[2025-03-31 04:30:05] Production.INFO: original start date ==>2025-03-03 changed start date ==>2025-03-03 00:00:00 original end date ==>2025-03-30 23:59:59 changed end date ==>2025-03-30 23:59:59  
[2025-03-31 04:30:05] Production.INFO:  CompanyGatewayID 1 TotalCharges ==>32.38000000  
[2025-03-31 04:30:05] Production.INFO: Invoice::getAccountUsageTotal(1,208,2025-03-03,2025-03-30 23:59:59)  
[2025-03-31 04:30:05] Production.INFO: TotalCharges - 32.38  
[2025-03-31 04:30:05] Production.INFO: TotalUsageCharges - 32.38  
[2025-03-31 04:30:05] Production.INFO: Usage Over  
[2025-03-31 04:30:05] Production.INFO: Call prc_getAccountSubscription(208,0)  
[2025-03-31 04:30:05] Production.INFO: SUBSCRIPTION 2  
[2025-03-31 04:30:05] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-31 04:30:05] Production.INFO:  SubscriptionID - 2  
[2025-03-31 04:30:05] Production.INFO: isAdvanceSubscription - 2  
[2025-03-31 04:30:05] Production.INFO: SubscriptionStartDate =2025-03-31 - SubscriptionEndDate = 2025-04-30  
[2025-03-31 04:30:05] Production.INFO: NewNextChargeDate =2025-04-30 00:00:00  
[2025-03-31 04:30:05] Production.INFO: EndDate =2025-03-30 00:00:00  
[2025-03-31 04:30:05] Production.INFO: NewEndDate1 =2025-03-31  
[2025-03-31 04:30:05] Production.INFO: SubscriptionDate  
[2025-03-31 04:30:05] Production.INFO: Array
(
    [StartDate] => 2025-03-31
    [EndDate] => 2025-04-30 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-31 04:30:05] Production.INFO:  AccountSubscription StartDate 2023-07-10 StartDate 2025-03-03  
[2025-03-31 04:30:05] Production.INFO:  SubscriptionID - 2025-03-31=====2025-04-30 00:00:00  
[2025-03-31 04:30:05] Production.INFO:  AccountSubscriptionID - 719 === 2023-07-10=====2026-03-31  
[2025-03-31 04:30:05] Production.INFO: regular Advance Subscription   
[2025-03-31 04:30:05] Production.INFO: First Time False 2023-07-10 2025-03-31  
[2025-03-31 04:30:05] Production.INFO: StartDate 2025-03-31 AccountSubscription->StartDate 2023-07-10 EndDate 2025-04-30 00:00:00 AccountSubscription->EndDate 2026-03-31  
[2025-03-31 04:30:05] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-31 04:30:05] Production.INFO: AccountSubscription::getSubscriptionAmount(719,2025-03-31,2025-04-30 00:00:00,,0)  
[2025-03-31 04:30:05] Production.INFO: SubscriptionCharge - 10  
[2025-03-31 04:30:05] Production.INFO: Already Invoice Subscription 0  
[2025-03-31 04:30:05] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(208,1,2,2025-03-31,2025-04-30 00:00:00,License for an Unlimited Canada/US Cloud Phone extension,60,10,6,719)  
[2025-03-31 04:30:05] Production.INFO: DiscountAmount 0.000000  
[2025-03-31 04:30:05] Production.INFO: DiscountType Flat  
[2025-03-31 04:30:05] Production.INFO: SubscriptionCharge 60  
[2025-03-31 04:30:05] Production.INFO: New SubscriptionCharge 60  
[2025-03-31 04:30:05] Production.INFO:  TotalSubscriptionCharge - 60.00  
[2025-03-31 04:30:05] Production.INFO:  ============================Subscription End ================= 

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

  
[2025-03-31 04:30:05] Production.INFO:  SubscriptionID - 4  
[2025-03-31 04:30:05] Production.INFO: isAdvanceSubscription - 4  
[2025-03-31 04:30:05] Production.INFO: SubscriptionStartDate =2025-03-31 - SubscriptionEndDate = 2025-04-30  
[2025-03-31 04:30:05] Production.INFO: NewNextChargeDate =2025-04-30 00:00:00  
[2025-03-31 04:30:05] Production.INFO: EndDate =2025-03-30 00:00:00  
[2025-03-31 04:30:05] Production.INFO: NewEndDate1 =2025-03-31  
[2025-03-31 04:30:05] Production.INFO: SubscriptionDate  
[2025-03-31 04:30:05] Production.INFO: Array
(
    [StartDate] => 2025-03-31
    [EndDate] => 2025-04-30 00:00:00
    [AlreadyCharged] => 0
)
  
[2025-03-31 04:30:05] Production.INFO:  AccountSubscription StartDate 2023-07-10 StartDate 2025-03-03  
[2025-03-31 04:30:05] Production.INFO:  SubscriptionID - 2025-03-31=====2025-04-30 00:00:00  
[2025-03-31 04:30:05] Production.INFO:  AccountSubscriptionID - 720 === 2023-07-10=====2026-03-31  
[2025-03-31 04:30:05] Production.INFO: regular Advance Subscription   
[2025-03-31 04:30:05] Production.INFO: First Time False 2023-07-10 2025-03-31  
[2025-03-31 04:30:05] Production.INFO: StartDate 2025-03-31 AccountSubscription->StartDate 2023-07-10 EndDate 2025-04-30 00:00:00 AccountSubscription->EndDate 2026-03-31  
[2025-03-31 04:30:05] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-31 04:30:05] Production.INFO: AccountSubscription::getSubscriptionAmount(720,2025-03-31,2025-04-30 00:00:00,,0)  
[2025-03-31 04:30:05] Production.INFO: SubscriptionCharge - 2.5  
[2025-03-31 04:30:05] Production.INFO: Already Invoice Subscription 0  
[2025-03-31 04:30:05] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(208,1,4,2025-03-31,2025-04-30 00:00:00,e911 address registration (9056299698 - 1 Greensborough Drive, Suite 300, Etobicoke, ON M9W1C8),2.5,2.5,1,720)  
[2025-03-31 04:30:05] Production.INFO: DiscountAmount 0.000000  
[2025-03-31 04:30:05] Production.INFO: DiscountType Flat  
[2025-03-31 04:30:05] Production.INFO: SubscriptionCharge 2.5  
[2025-03-31 04:30:05] Production.INFO: New SubscriptionCharge 2.5  
[2025-03-31 04:30:05] Production.INFO:  TotalSubscriptionCharge - 2.50  
[2025-03-31 04:30:05] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-31 04:30:05] Production.INFO: SUBSCRIPTION Over  
[2025-03-31 04:30:05] Production.INFO: Call prc_getAccountOneOffCharge(208,0,2025-03-03,2025-03-31 23:59:59)  
[2025-03-31 04:30:05] Production.INFO: AccountOneOffCharge 0  
[2025-03-31 04:30:05] Production.INFO: AccountOneOffCharge Over  
[2025-03-31 04:30:05] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start  
[2025-03-31 04:30:05] Production.INFO: New UsageDates 2025-03-03 - 2025-03-30 23:59:59  
[2025-03-31 04:30:05] Production.INFO:  SubTotal 94.88  
[2025-03-31 04:30:05] Production.INFO:  SubTotalWithouttaxTotal 0  
[2025-03-31 04:30:06] Production.INFO: AccountOneOffCharge Tax Over  
[2025-03-31 04:30:06] Production.INFO:  TotalTax 12.3344  
[2025-03-31 04:30:06] Production.INFO:  InvoiceGrandTotal 107.2144  
[2025-03-31 04:30:06] Production.INFO: InvoiceTaxAmount 12.33  
[2025-03-31 04:30:06] Production.INFO: GrandTotal 107.21  
[2025-03-31 04:30:06] Production.INFO: SubTotal 94.88  
[2025-03-31 04:30:06] Production.INFO: TotalDue 107.21  
[2025-03-31 04:30:06] Production.INFO: Reseller ==> 0  
[2025-03-31 04:30:06] Production.INFO: original start date ==>2025-03-03 changed start date ==>2025-03-03 00:00:00 original end date ==>2025-03-30 23:59:59 changed end date ==>2025-03-30 23:59:59  
[2025-03-31 04:30:06] Production.INFO: CALL prc_getInvoiceUsage(1,'208','0','1','2025-03-03 00:00:00','2025-03-30 23:59:59',0)  
[2025-03-31 04:30:06] Production.INFO: PDF Generation start  
[2025-03-31 04:30:07] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/208/Invoices/2025/03/31/Invoice-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.pdf  
[2025-03-31 04:30:07] Production.INFO: On Linux  
[2025-03-31 04:30:10] 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/208/Invoices/2025/03/31/footer-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.html" "/var/www/tmp/1/208/Invoices/2025/03/31/Invoice-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.html" "/var/www/tmp/1/208/Invoices/2025/03/31/Invoice-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.pdf"  
[2025-03-31 04:30:10] Production.INFO:   
[2025-03-31 04:30:10] Production.INFO: /var/www/tmp/1/208/Invoices/2025/03/31/Invoice-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.html  
[2025-03-31 04:30:10] Production.INFO: /var/www/tmp/1/208/Invoices/2025/03/31/header-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.html  
[2025-03-31 04:30:10] Production.INFO: /var/www/tmp/1/208/Invoices/2025/03/31/footer-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.html  
[2025-03-31 04:30:10] Production.INFO: Invoice generation PDF path  
[2025-03-31 04:30:10] Production.INFO: PDF fullPath 1/208/Invoices/2025/03/31/Invoice-lions-auto-protection-inv11776-from-03-03-2025-to-03-30-2025-10718.pdf  
[2025-03-31 04:30:10] Production.INFO: Generate Usage File Start   
[2025-03-31 04:30:10] Production.INFO: Usage File fullPath 1/208/InvoiceUsageFile/2025/03/31/lions-auto-protection-03-03-2025-00-00-00-TO-30-03-2025-23-59-59_8341__5c4a7b90-0e0a-11f0-bd07-4d2881b92aa3.csv  
[2025-03-31 04:30:13] Production.INFO: Sending Email to Staff over  
[2025-03-31 04:30:13] Production.INFO: Email Status  1  
[2025-03-31 04:30:13] Production.INFO: Sending Email to Customer  
[2025-03-31 04:30:15] Production.INFO: Email Try 10718 1  
[2025-03-31 04:30:16] Production.INFO: Email Try 10718 1  
[2025-03-31 04:30:16] Production.INFO: =========== Email Sending over ===========   
[2025-03-31 04:30:16] Production.INFO: =========== Returning as Success =========== AccountID 208  
[2025-03-31 04:30:16] Production.INFO: Invoice::sendInvoice done  
[2025-03-31 04:30:16] Production.INFO: Invoice created - Array
(
    [status] => success
    [message] => Invoice Created Successfully.
    [accounts] => 
)
  
[2025-03-31 04:30:16] Production.INFO: Invoice Committed  AccountID = 208  
[2025-03-31 04:30:16] Production.INFO: =========== Updating  InvoiceDate ===========   
[2025-03-31 04:30:16] Production.INFO: NextInvoice 2025-03-31 2025-04-30  
[2025-03-31 04:30:16] Production.INFO: new dates  
[2025-03-31 04:30:16] Production.INFO: LastInvoiceDate 2025-03-31 NextInvoiceDate 2025-05-01  
[2025-03-31 04:30:16] Production.INFO: LastChargeDate 2025-03-31 NextChargeDate 2025-04-30  
[2025-03-31 04:30:16] Production.INFO: =========== Updated  InvoiceDate ===========   
[2025-03-31 04:30:16] Production.INFO:  ========================== Invoice Send End =============================  
[2025-03-31 04:30:16] Production.INFO: AccountID =258 FirstInvoiceSend 0  
[2025-03-31 04:30:16] Production.INFO: LastInvoiceDate 2025-02-10 NextInvoiceDate 2025-03-10  
[2025-03-31 04:30:16] Production.INFO: LastChargeDate 2025-02-10 NextChargeDate 2025-03-09  
[2025-03-31 04:30:16] Production.INFO: isCDRLoaded Array
(
    [0] => stdClass Object
        (
            [isLoaded] => 1
        )

)
  
[2025-03-31 04:30:16] Production.INFO:  ========================== Invoice Send Start =============================  
[2025-03-31 04:30:16] Production.INFO: Invoice::sendInvoice(1,258,2025-02-10,2025-03-10,billing@onswitchit.ca)  
[2025-03-31 04:30:16] Production.INFO: start Date =2025-02-10 EndDate =2025-03-09 23:59:59  
[2025-03-31 04:30:16] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV  
[2025-03-31 04:30:16] 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-31 04:30:16] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled  
[2025-03-31 04:30:16] Production.INFO: Invoice::sendInvoice done  
[2025-03-31 04:30:16] Production.INFO: Invoice rollback  AccountID = 258  
[2025-03-31 04:30:16] Production.INFO:  ========================== Error  =============================  
[2025-03-31 04:30:16] Production.INFO: Invoice with Error - Array
(
    [status] => failure
    [message] => Lion Motors Account is already billed on this duration
)
  
[2025-03-31 04:30:16] Production.INFO:  ========================== Invoice Send End =============================  
[2025-03-31 04:30:16] Production.INFO: AccountID =266 FirstInvoiceSend 0  
[2025-03-31 04:30:16] Production.INFO: LastInvoiceDate 2025-03-13 NextInvoiceDate 2025-03-31  
[2025-03-31 04:30:16] Production.INFO: LastChargeDate 2025-03-13 NextChargeDate 2025-03-17  
[2025-03-31 04:30:16] Production.INFO: isCDRLoaded Array
(
    [0] => stdClass Object
        (
            [isLoaded] => 1
        )

)
  
[2025-03-31 04:30:16] Production.INFO:  ========================== Invoice Send Start =============================  
[2025-03-31 04:30:16] Production.INFO: Invoice::sendInvoice(1,266,2025-03-13,2025-03-31,billing@onswitchit.ca)  
[2025-03-31 04:30:16] Production.INFO: start Date =2025-03-13 EndDate =2025-03-17 23:59:59  
[2025-03-31 04:30:16] Production.INFO: InvoiceTemplate->InvoiceNumberPrefix =INV  
[2025-03-31 04:30:16] 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-31 04:30:16] Production.INFO: Invoice::checkIfAccountUsageAlreadyBilled  
[2025-03-31 04:30:16] Production.INFO: AlreadyBilled   
[2025-03-31 04:30:16] Production.INFO: Reseller ==> 0  
[2025-03-31 04:30:16] Production.INFO: original start date ==>2025-03-13 changed start date ==>2025-03-13 00:00:00 original end date ==>2025-03-17 23:59:59 changed end date ==>2025-03-17 23:59:59  
[2025-03-31 04:30:16] Production.INFO: Invoice::getAccountUsageTotal(1,266,2025-03-13,2025-03-17 23:59:59)  
[2025-03-31 04:30:16] Production.INFO: TotalCharges - 0  
[2025-03-31 04:30:16] Production.INFO: TotalUsageCharges - 0.00  
[2025-03-31 04:30:16] Production.INFO: Usage Over  
[2025-03-31 04:30:16] Production.INFO: Call prc_getAccountSubscription(266,0)  
[2025-03-31 04:30:16] Production.INFO: SUBSCRIPTION 2  
[2025-03-31 04:30:16] Production.INFO:  ============================Subscription Start ================= 

  
[2025-03-31 04:30:16] Production.INFO:  SubscriptionID - 64  
[2025-03-31 04:30:16] Production.INFO: isAdvanceSubscription - 64  
[2025-03-31 04:30:16] Production.INFO: SubscriptionStartDate =2025-03-18 - SubscriptionEndDate = 2025-04-17  
[2025-03-31 04:30:16] Production.INFO: NewNextChargeDate =2025-04-17 00:00:00  
[2025-03-31 04:30:16] Production.INFO: SubscriptionDate  
[2025-03-31 04:30:16] Production.INFO: Array
(
    [StartDate] => 2025-03-18
    [EndDate] => 2025-04-17
    [AlreadyCharged] => 0
)
  
[2025-03-31 04:30:16] Production.INFO:  AccountSubscription StartDate 2025-03-13 StartDate 2025-03-13  
[2025-03-31 04:30:16] Production.INFO: First Time + Advance Billing - Yes  
[2025-03-31 04:30:16] Production.INFO: StartDate 2025-03-13 - EndDate 2025-03-17  
[2025-03-31 04:30:16] Production.INFO: ACStartDate 2025-03-13 - ACEndDate 2026-03-31  
[2025-03-31 04:30:16] Production.INFO: regular Subscription if advance   
[2025-03-31 04:30:16] Production.INFO: First Time True 2025-03-13 2025-03-13  
[2025-03-31 04:30:16] Production.INFO: StartDate 2025-03-13 AccountSubscription->StartDate 2025-03-13 EndDate 2025-03-17 AccountSubscription->EndDate 2026-03-31  
[2025-03-31 04:30:16] Production.INFO: days diff - 5 subscription days 31 quarter days 90  
[2025-03-31 04:30:16] Production.INFO: AccountSubscription::getSubscriptionAmount(1322,2025-03-13,2025-03-17,1,0)  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge - 2.15  
[2025-03-31 04:30:16] Production.INFO: Already Invoice Subscription 0  
[2025-03-31 04:30:16] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(266,1,64,2025-03-13,2025-03-17,CloudPhone.ONE Per Person License,2.15,2.15,1,1322)  
[2025-03-31 04:30:16] Production.INFO: DiscountAmount 0.000000  
[2025-03-31 04:30:16] Production.INFO: DiscountType Flat  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge 2.15  
[2025-03-31 04:30:16] Production.INFO: New SubscriptionCharge 2.15  
[2025-03-31 04:30:16] Production.INFO:  TotalSubscriptionCharge - 2.15  
[2025-03-31 04:30:16] Production.INFO:  SubscriptionID - 2025-03-18=====2025-04-17  
[2025-03-31 04:30:16] Production.INFO:  AccountSubscriptionID - 1322 === 2025-03-13=====2026-03-31  
[2025-03-31 04:30:16] Production.INFO: regular Advance Subscription   
[2025-03-31 04:30:16] Production.INFO: First Time False 2025-03-13 2025-03-18  
[2025-03-31 04:30:16] Production.INFO: StartDate 2025-03-18 AccountSubscription->StartDate 2025-03-13 EndDate 2025-04-17 AccountSubscription->EndDate 2026-03-31  
[2025-03-31 04:30:16] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-31 04:30:16] Production.INFO: AccountSubscription::getSubscriptionAmount(1322,2025-03-18,2025-04-17,,0)  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge - 12.99  
[2025-03-31 04:30:16] Production.INFO: Already Invoice Subscription 0  
[2025-03-31 04:30:16] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(266,1,64,2025-03-18,2025-04-17,CloudPhone.ONE Per Person License,12.99,12.99,1,1322)  
[2025-03-31 04:30:16] Production.INFO: DiscountAmount 0.000000  
[2025-03-31 04:30:16] Production.INFO: DiscountType Flat  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge 12.99  
[2025-03-31 04:30:16] Production.INFO: New SubscriptionCharge 12.99  
[2025-03-31 04:30:16] Production.INFO:  TotalSubscriptionCharge - 12.99  
[2025-03-31 04:30:16] Production.INFO:  ============================Subscription End ================= 

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

  
[2025-03-31 04:30:16] Production.INFO:  SubscriptionID - 65  
[2025-03-31 04:30:16] Production.INFO: isAdvanceSubscription - 65  
[2025-03-31 04:30:16] Production.INFO: SubscriptionStartDate =2025-03-18 - SubscriptionEndDate = 2025-04-17  
[2025-03-31 04:30:16] Production.INFO: NewNextChargeDate =2025-04-17 00:00:00  
[2025-03-31 04:30:16] Production.INFO: SubscriptionDate  
[2025-03-31 04:30:16] Production.INFO: Array
(
    [StartDate] => 2025-03-18
    [EndDate] => 2025-04-17
    [AlreadyCharged] => 0
)
  
[2025-03-31 04:30:16] Production.INFO:  AccountSubscription StartDate 2025-03-13 StartDate 2025-03-13  
[2025-03-31 04:30:16] Production.INFO: First Time + Advance Billing - Yes  
[2025-03-31 04:30:16] Production.INFO: StartDate 2025-03-13 - EndDate 2025-03-17  
[2025-03-31 04:30:16] Production.INFO: ACStartDate 2025-03-13 - ACEndDate 2026-03-31  
[2025-03-31 04:30:16] Production.INFO: regular Subscription if advance   
[2025-03-31 04:30:16] Production.INFO: First Time True 2025-03-13 2025-03-13  
[2025-03-31 04:30:16] Production.INFO: StartDate 2025-03-13 AccountSubscription->StartDate 2025-03-13 EndDate 2025-03-17 AccountSubscription->EndDate 2026-03-31  
[2025-03-31 04:30:16] Production.INFO: days diff - 5 subscription days 31 quarter days 90  
[2025-03-31 04:30:16] Production.INFO: AccountSubscription::getSubscriptionAmount(1323,2025-03-13,2025-03-17,1,0)  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge - 0.85  
[2025-03-31 04:30:16] Production.INFO: Already Invoice Subscription 0  
[2025-03-31 04:30:16] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(266,1,65,2025-03-13,2025-03-17,CloudPhone.ONE Fax Line Add-on,0.85,0.85,1,1323)  
[2025-03-31 04:30:16] Production.INFO: DiscountAmount 0.000000  
[2025-03-31 04:30:16] Production.INFO: DiscountType Flat  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge 0.85  
[2025-03-31 04:30:16] Production.INFO: New SubscriptionCharge 0.85  
[2025-03-31 04:30:16] Production.INFO:  TotalSubscriptionCharge - 0.85  
[2025-03-31 04:30:16] Production.INFO:  SubscriptionID - 2025-03-18=====2025-04-17  
[2025-03-31 04:30:16] Production.INFO:  AccountSubscriptionID - 1323 === 2025-03-13=====2026-03-31  
[2025-03-31 04:30:16] Production.INFO: regular Advance Subscription   
[2025-03-31 04:30:16] Production.INFO: First Time False 2025-03-13 2025-03-18  
[2025-03-31 04:30:16] Production.INFO: StartDate 2025-03-18 AccountSubscription->StartDate 2025-03-13 EndDate 2025-04-17 AccountSubscription->EndDate 2026-03-31  
[2025-03-31 04:30:16] Production.INFO: days diff - 31 subscription days 31 quarter days 90  
[2025-03-31 04:30:16] Production.INFO: AccountSubscription::getSubscriptionAmount(1323,2025-03-18,2025-04-17,,0)  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge - 5  
[2025-03-31 04:30:16] Production.INFO: Already Invoice Subscription 0  
[2025-03-31 04:30:16] Production.INFO: Invoice::IsAlreadyInvoiceSubscriptionDetail(266,1,65,2025-03-18,2025-04-17,CloudPhone.ONE Fax Line Add-on,5,5,1,1323)  
[2025-03-31 04:30:16] Production.INFO: DiscountAmount 0.000000  
[2025-03-31 04:30:16] Production.INFO: DiscountType Flat  
[2025-03-31 04:30:16] Production.INFO: SubscriptionCharge 5  
[2025-03-31 04:30:16] Production.INFO: New SubscriptionCharge 5  
[2025-03-31 04:30:16] Production.INFO:  TotalSubscriptionCharge - 5.00  
[2025-03-31 04:30:16] Production.INFO:  ============================Subscription End ================= 

  
[2025-03-31 04:30:16] Production.INFO: SUBSCRIPTION Over  
[2025-03-31 04:30:16] Production.INFO: Call prc_getAccountOneOffCharge(266,0,2025-03-13,2025-03-18 23:59:59)  
[2025-03-31 04:30:16] Production.INFO: AccountOneOffCharge 0  
[2025-03-31 04:30:16] Production.INFO: AccountOneOffCharge Over  
[2025-03-31 04:30:16] Production.INFO: USAGE FILE & Invoice PDF & EMAIL Start  
[2025-03-31 04:30:16] Production.INFO: New UsageDates 2025-03-13 - 2025-03-17 23:59:59  
[2025-03-31 04:30:16] Production.INFO:  SubTotal 20.99  
[2025-03-31 04:30:16] Production.INFO:  SubTotalWithouttaxTotal 0  
[2025-03-31 04:30:16] Production.INFO: AccountOneOffCharge Tax Over  
[2025-03-31 04:30:16] Production.INFO:  TotalTax 2.7287  
[2025-03-31 04:30:16] Production.INFO:  InvoiceGrandTotal 23.7187  
[2025-03-31 04:30:16] Production.INFO: InvoiceTaxAmount 2.73  
[2025-03-31 04:30:16] Production.INFO: GrandTotal 23.72  
[2025-03-31 04:30:16] Production.INFO: SubTotal 20.99  
[2025-03-31 04:30:16] Production.INFO: TotalDue 23.72  
[2025-03-31 04:30:16] Production.INFO: Reseller ==> 0  
[2025-03-31 04:30:16] Production.INFO: original start date ==>2025-03-13 changed start date ==>2025-03-13 00:00:00 original end date ==>2025-03-17 23:59:59 changed end date ==>2025-03-17 23:59:59  
[2025-03-31 04:30:16] Production.INFO: CALL prc_getInvoiceUsage(1,'266','0','1','2025-03-13 00:00:00','2025-03-17 23:59:59',0)  
[2025-03-31 04:30:16] Production.INFO: PDF Generation start  
[2025-03-31 04:30:16] Production.INFO: Invoice generation PDF path local /var/www/tmp/1/266/Invoices/2025/03/31/Invoice-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.pdf  
[2025-03-31 04:30:16] Production.INFO: On Linux  
[2025-03-31 04:30:18] 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/266/Invoices/2025/03/31/footer-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.html" "/var/www/tmp/1/266/Invoices/2025/03/31/Invoice-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.html" "/var/www/tmp/1/266/Invoices/2025/03/31/Invoice-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.pdf"  
[2025-03-31 04:30:18] Production.INFO:   
[2025-03-31 04:30:18] Production.INFO: /var/www/tmp/1/266/Invoices/2025/03/31/Invoice-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.html  
[2025-03-31 04:30:18] Production.INFO: /var/www/tmp/1/266/Invoices/2025/03/31/header-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.html  
[2025-03-31 04:30:18] Production.INFO: /var/www/tmp/1/266/Invoices/2025/03/31/footer-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.html  
[2025-03-31 04:30:18] Production.INFO: Invoice generation PDF path  
[2025-03-31 04:30:18] Production.INFO: PDF fullPath 1/266/Invoices/2025/03/31/Invoice-sam-sidhu-paralegal-miaj-law-office-inv11777-from-03-13-2025-to-03-17-2025-10719.pdf  
[2025-03-31 04:30:18] Production.INFO: Generate Usage File Start   
[2025-03-31 04:30:18] Production.INFO: Usage File fullPath 1/266/InvoiceUsageFile/2025/03/31/sam-sidhu-paralegal-miaj-law-office-13-03-2025-00-00-00-TO-17-03-2025-23-59-59_7893__610223f0-0e0a-11f0-904b-a94f43b530bb.csv  
[2025-03-31 04:30:19] Production.INFO: Sending Email to Staff over  
[2025-03-31 04:30:19] Production.INFO: Email Status  1  
[2025-03-31 04:30:19] Production.INFO: Sending Email to Customer  
[2025-03-31 04:30:21] Production.INFO: Email Try 10719 1  
[2025-03-31 04:30:21] Production.INFO: =========== Email Sending over ===========   
[2025-03-31 04:30:21] Production.INFO: =========== Returning as Success =========== AccountID 266  
[2025-03-31 04:30:21] Production.INFO: Invoice::sendInvoice done  
[2025-03-31 04:30:21] Production.INFO: Invoice created - Array
(
    [status] => success
    [message] => Invoice Created Successfully.
    [accounts] => 
)
  
[2025-03-31 04:30:21] Production.INFO: Invoice Committed  AccountID = 266  
[2025-03-31 04:30:21] Production.INFO: =========== Updating  InvoiceDate ===========   
[2025-03-31 04:30:21] Production.INFO: NextInvoice 2025-03-18 2025-04-17  
[2025-03-31 04:30:21] Production.INFO: new dates  
[2025-03-31 04:30:21] Production.INFO: LastInvoiceDate 2025-03-31 NextInvoiceDate 2025-04-18  
[2025-03-31 04:30:21] Production.INFO: LastChargeDate 2025-03-18 NextChargeDate 2025-04-17  
[2025-03-31 04:30:21] Production.INFO: =========== Updated  InvoiceDate ===========   
[2025-03-31 04:30:21] Production.INFO:  ========================== Invoice Send End =============================  
[2025-03-31 04:30:21] Production.INFO:  ========================== Recurring invoice Start =============================  
[2025-03-31 04:30:21] Production.INFO: recurring invoices ID  
[2025-03-31 04:30:21] Production.INFO:   
[2025-03-31 04:30:21] Production.INFO: recurring errorsArray
(
)
  
[2025-03-31 04:30:21] Production.INFO:  ========================== Recurring invoice End =============================  
[2025-03-31 04:30:21] Production.INFO:  ========================== Job Updated =============================  
[2025-03-31 04:30:22] Production.INFO:  ========================== Job Email Sent =============================  
[2025-03-31 04:30:23] Production.ERROR: **Email Sent Status 1  
[2025-03-31 04:30:23] Production.ERROR: **Email Sent message Email has been sent  
[2025-03-31 04:30:23] Production.ERROR:  CronJobId end6  
[2025-03-31 04:30:23] Production.INFO: ==12421== Releasing lock...  
[2025-03-31 04:30:23] Production.INFO: invoicegenerator-command-invoicegenerator-companyid-1-cronjobid-6 #Stops#   
[2025-03-31 04:30:23] Production.INFO: 40.5 MB  #Memory Used#