Changeset 882 for trunk/Modules


Ignore:
Timestamp:
Sep 8, 2020, 5:00:04 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: New monthly payment was not working after upgrade of to new SQL server.
Location:
trunk/Modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/EmailQueue/EmailQueue.php

    r874 r882  
    7777  {
    7878    $Values = array('To' => $To,
    79       'Subject' => $Subject, 'Content' => $Content, 'Time' => 'NOW()',
     79      'Subject' => $Subject, 'Content' => $Content, 'Time' => 'NOW()', 'Headers' => '',
    8080      'From' => $From);
    8181    if ($AttachmentFileId != '') $Values['AttachmentFile'] = $AttachmentFileId;
  • trunk/Modules/Finance/Manage.php

    r874 r882  
    291291    $DateParts = explode('-', $Overall['Date']);
    292292    $MonthLast = $DateParts[1];
     293    $YearLast = $DateParts[0];
    293294    $MonthCurrent = date('m') + 0;
     295    $YearCurrent = date('Y') + 0;
    294296
    295297    $Output .= $Finance->RecalculateMemberPayment();
     
    311313    // Zkontrolovat odečtení měsíčního poplatku
    312314    $Output .= 'Kontrola odečtení poplatků: Poslední měsíc-'.$MonthLast.' Aktuální měsíc-'.$MonthCurrent."\n";
    313     if ($MonthCurrent != $MonthLast)
     315    if (($MonthCurrent != $MonthLast) or ($YearCurrent != $YearLast))
    314316    {
    315317      $Output .= 'Odečítám pravidelný poplatek...'."\n";
Note: See TracChangeset for help on using the changeset viewer.