Ignore:
Timestamp:
Apr 12, 2024, 9:43:27 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Improved content of email with finance account state.
  • Added: Customer IS action to generate finance email into email queue.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/FinanceModels.php

    r960 r968  
    4040    $DbResult = $this->Database->query('SELECT * FROM `FinanceBillingPeriod`');
    4141    while ($BillingPeriod = $DbResult->fetch_assoc())
     42    {
    4243      $this->BillingPeriods[$BillingPeriod['Id']] = $BillingPeriod;
     44    }
    4345
    4446    // Period parameter is not used as it have to be determined from item replacement
     
    6567
    6668    $DbResult = $this->Database->query('SELECT SUM(`MemberPayment`.`MonthlyInternet`) AS `MonthlyInternet`, '.
    67         'SUM(`MemberPayment`.`MonthlyTotal`) AS `MonthlyTotal` '.
    68         'FROM `MemberPayment` JOIN `Member` ON `Member`.`Id`=`MemberPayment`.`Member` WHERE `Member`.`Blocked`=0');
     69      'SUM(`MemberPayment`.`MonthlyTotal`) AS `MonthlyTotal` '.
     70      'FROM `MemberPayment` JOIN `Member` ON `Member`.`Id`=`MemberPayment`.`Member` WHERE `Member`.`Blocked`=0');
    6971    $Row = $DbResult->fetch_assoc();
    7072    $this->TotalInternetPaid = $Row['MonthlyInternet'];
Note: See TracChangeset for help on using the changeset viewer.