Changeset 692


Ignore:
Timestamp:
Sep 11, 2014, 11:34:08 PM (10 years ago)
Author:
chronos
Message:
  • Opraveno: Výpočet zůstatku pro email s vyúčtováním.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r691 r692  
    11<?php
    22
    3 $Revision = 691; // Subversion revision
     3$Revision = 692; // Subversion revision
    44$DatabaseRevision = 688; // SQL structure revision
    5 $ReleaseTime = strtotime('2014-09-07');
     5$ReleaseTime = strtotime('2014-09-11');
  • trunk/Modules/Finance/Manage.php

    r688 r692  
    320320    $MainSubject = $DbResult->fetch_assoc();
    321321
     322    $Period = $this->GetBillingPeriod($Member['BillingPeriodNext']);
     323
    322324    $DbResult = $this->Database->query('SELECT FinanceBankAccount.*, CONCAT(FinanceBankAccount.Number, "/", FinanceBank.Code) AS NumberFull FROM FinanceBankAccount '.
    323325      'JOIN FinanceBank ON FinanceBank.Id=FinanceBankAccount.Bank '.
     
    337339      $Content .= '<strong>'.$Service['Name'].'</strong><br />'."\n".
    338340        'Vaše platební období: <strong>'.$this->System->Modules['Finance']->BillingPeriods[$Member['BillingPeriod']]['Name'].'</strong><br />'."\n".
    339         'Pravidelná platba za období: <strong>'.$MemberPayment['MonthlyTotal'].' Kč</strong><br />'."\n".
     341        'Pravidelná platba za období: <strong>'.($MemberPayment['MonthlyTotal'] * $Period['MonthCount']).' Kč</strong><br />'."\n".
    340342        'Bankovní účet: <strong>'.$MainSubjectAccount['NumberFull'].'</strong><br/>'."\n".
    341343        'Variabilní symbol: <strong>'.$Member['Subject'].'</strong><br/>'."\n".
    342         'Stav vašeho účtu: <strong>'.($MemberPayment['Cash'] - $MemberPayment['MonthlyTotal']).' Kč</strong><br /><br />'."\n";
     344        'Stav vašeho účtu: <strong>'.($MemberPayment['Cash'] - $MemberPayment['MonthlyTotal'] * $Period['MonthCount']).' Kč</strong><br /><br />'."\n";
    343345      $Content .= 'Nové finanční operace:<br/>'.
    344346        '<table style="margin-left: auto; margin-right: auto; border-style: solid; border-width: 1px; border-collapse: collapse;">'.
  • trunk/Modules/News/ImportZdechovCzRecords.php

    r683 r692  
    2222  $Date = substr($Content, 0, strpos($Content, '<'));
    2323  $DateParts = explode('.', $Date);
    24   $Date = $DateParts[2].'-'.$DateParts[1].'-'.$DateParts[0];
     24  if(count($DateParts) >= 3)
     25    $Date = $DateParts[2].'-'.$DateParts[1].'-'.$DateParts[0];
     26      else break;
    2527  $Content = substr($Content, strpos($Content, $StartLink) + strlen($StartLink));
    2628  $Link = substr($Content, 0, strpos($Content, '"'));
Note: See TracChangeset for help on using the changeset viewer.