Changeset 500 for trunk/finance/bills.php
- Timestamp:
- Mar 10, 2013, 10:08:23 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/finance/bills.php
r498 r500 43 43 $MainSubject = $DbResult->fetch_assoc(); 44 44 45 $DbResult = $this->Database->select('FinanceBankAccount', '*', '(`Subject`='. 46 $Config['Finance']['MainSubjectId'].') AND (`Use`=1)'); 45 $DbResult = $this->Database->query('SELECT FinanceBankAccount.*, FinanceBank.Code AS NumberFull FROM FinanceBankAccount '. 46 'JOIN FinanceBank ON FinanceBank.Id=FinanceBankAccount.Bank '. 47 'WHERE (FinanceBankAccount.`Subject`='.$Config['Finance']['MainSubjectId'].') AND (FinanceBankAccount.`Use`=1)'); 47 48 $MainSubjectAccount = $DbResult->fetch_assoc(); 48 49 … … 66 67 'IČ: '.$MainSubject['IC'].'<br>'. 67 68 'DIČ: '.$MainSubject['DIC'].'<br>'. 68 'Účet: '.$MainSubjectAccount['Number '].'<br>'.69 'Účet: '.$MainSubjectAccount['NumberFull'].'<br>'. 69 70 'Plátce DPH: '.$BooleanText[$MainSubject['PayVAT']].'<br>'. 70 71 '</td><td valign="top">'. … … 134 135 $MainSubject = $DbResult->fetch_assoc(); 135 136 136 $DbResult = $this->Database->select('FinanceBankAccount', '*', '(`Subject`='. 137 $Config['Finance']['MainSubjectId'].') AND (`Use`=1)'); 137 $DbResult = $this->Database->query('SELECT FinanceBankAccount.*, FinanceBank.Code AS NumberFull FROM FinanceBankAccount '. 138 'JOIN FinanceBank ON FinanceBank.Id=FinanceBankAccount.Bank '. 139 'WHERE (FinanceBankAccount.`Subject`='.$Config['Finance']['MainSubjectId'].') AND (FinanceBankAccount.`Use`=1)'); 138 140 $MainSubjectAccount = $DbResult->fetch_assoc(); 139 141
Note:
See TracChangeset
for help on using the changeset viewer.