Changeset 720 for trunk/Modules/Finance/Bill.php
- Timestamp:
- Jan 3, 2015, 5:55:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Bill.php
r719 r720 73 73 74 74 // If negative value => switch sides 75 if($Invoice[' Value'] < 0)75 if($Invoice['Direction'] == -1) 76 76 { 77 77 $Subject = $SubjectTo; 78 78 $SubjectTo = $SubjectFrom; 79 79 $SubjectFrom = $Subject; 80 foreach($InvoiceItems as $Index => $Item)81 {82 $InvoiceItems[$Index]['Price'] = -$InvoiceItems[$Index]['Price'];83 }84 80 } 85 81 … … 159 155 $MainSubjectAccount = $DbResult->fetch_assoc(); 160 156 161 //$Dodavka = array();162 //$DbResult = $this->Database->select('FinanceInvoiceItem', '*', 'FinanceInvoice='.$BillId);163 //while($Item = $DbResult->fetch_assoc())164 //{165 // $InvoiceItems[$Item['Id']] = $Item;166 //}167 157 $BooleanText = array('Ne', 'Ano'); 168 158 if($Operation['Direction'] == -1)
Note:
See TracChangeset
for help on using the changeset viewer.