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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;">'.
Note: See TracChangeset for help on using the changeset viewer.