Changeset 747 for trunk/Modules/Finance/Bill.php
- Timestamp:
- Sep 21, 2015, 12:12:26 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Bill.php
r741 r747 52 52 function GenerateHTML() 53 53 { 54 $DbResult = $this->Database->select('FinanceInvoice', '*', '`Id`='.$this->InvoiceId); 54 $DbResult = $this->Database->query('SELECT `FinanceInvoice`.*, `FinanceInvoiceGroup`.`Direction` FROM `FinanceInvoice` '. 55 'LEFT JOIN `FinanceInvoiceGroup` ON `FinanceInvoiceGroup`.`Id`=`FinanceInvoice`.`Group` '. 56 'WHERE `FinanceInvoice`.`Id`='.$this->InvoiceId); 55 57 $Invoice = $DbResult->fetch_assoc(); 56 58 … … 79 81 80 82 // If direction is in => switch sides 81 if($Invoice['Direction'] == FINANCE_DIRECTION_OUT) 82 { 83 if($Invoice['Direction'] == FINANCE_DIRECTION_OUT) 84 { 83 85 } 84 86 else if($Invoice['Direction'] == FINANCE_DIRECTION_IN) … … 151 153 function GenerateHTML() 152 154 { 153 $DbResult = $this->Database->select('FinanceOperation', '*', '`Id`='.$this->OperationId); 155 $DbResult = $this->Database->query('SELECT `FinanceOperation`.*, `FinanceOperationGroup`.`Direction` FROM `FinanceOperation` '. 156 'LEFT JOIN `FinanceOperationGroup` ON `FinanceOperationGroup`.`Id`=`FinanceOperation`.`Group` '. 157 'WHERE `FinanceOperation`.`Id`='.$this->OperationId); 154 158 $Operation = $DbResult->fetch_assoc(); 155 159
Note:
See TracChangeset
for help on using the changeset viewer.