Ignore:
Timestamp:
Apr 1, 2013, 11:37:49 PM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Generování bankovního účtu do dokladů a emailů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/bills.php

    r500 r509  
    4343    $MainSubject = $DbResult->fetch_assoc();
    4444   
    45     $DbResult = $this->Database->query('SELECT FinanceBankAccount.*, FinanceBank.Code AS NumberFull FROM FinanceBankAccount '.
     45    $DbResult = $this->Database->query('SELECT FinanceBankAccount.*, CONCAT(FinanceBankAccount.Number, "/", FinanceBank.Code) AS NumberFull FROM FinanceBankAccount '.
    4646      'JOIN FinanceBank ON FinanceBank.Id=FinanceBankAccount.Bank '.
    4747      'WHERE (FinanceBankAccount.`Subject`='.$Config['Finance']['MainSubjectId'].') AND (FinanceBankAccount.`Use`=1)');
     
    135135    $MainSubject = $DbResult->fetch_assoc();
    136136   
    137     $DbResult = $this->Database->query('SELECT FinanceBankAccount.*, FinanceBank.Code AS NumberFull FROM FinanceBankAccount '.
     137    $DbResult = $this->Database->query('SELECT FinanceBankAccount.*, CONCAT(FinanceBankAccount.Number, "/", FinanceBank.Code) AS NumberFull FROM FinanceBankAccount '.
    138138      'JOIN FinanceBank ON FinanceBank.Id=FinanceBankAccount.Bank '.
    139139      'WHERE (FinanceBankAccount.`Subject`='.$Config['Finance']['MainSubjectId'].') AND (FinanceBankAccount.`Use`=1)');
     
    154154      'IČ: '.$MainSubject['IC'].'<br>'.
    155155      'DIČ: '.$MainSubject['DIC'].'<br>'.
    156       'Účet: '.$MainSubjectAccount['Number'].'<br>'.
     156      'Účet: '.$MainSubjectAccount['NumberFull'].'<br>'.
    157157      'Plátce DPH: '.$BooleanText[$MainSubject['PayVAT']].
    158158      '</td><td width="50%" valign="top">'.
Note: See TracChangeset for help on using the changeset viewer.