Changeset 680 for trunk/Modules/Finance/Manage.php
- Timestamp:
- Jul 27, 2014, 12:28:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Manage.php
r653 r680 110 110 $SumValue = 0; 111 111 foreach($Items as $Item) 112 $SumValue = $SumValue + $Item['Price'] * $Item['Quantity'];112 $SumValue = $SumValue + ceil($Item['Price'] * $Item['Quantity']); 113 113 $this->Database->insert('FinanceInvoice', array( 114 114 'Subject' => $Subject, 'Time' => TimeToMysqlDateTime($TimeCreation), … … 119 119 foreach($Items as $Item) 120 120 $this->Database->insert('FinanceInvoiceItem', array('FinanceInvoice' => $InvoiceId, 121 'Description' => $Item['Description'], 'Price' => $Item['Price'], 'Quantity' => $Item['Quantity'], 'VAT' => $Item['VAT'])); 121 'Description' => $Item['Description'], 'Price' => $Item['Price'], 122 'Quantity' => $Item['Quantity'], 'VAT' => $Item['VAT'])); 122 123 //$LastInsertTime = $Time; 123 124 //$this->CheckAdvancesAndLiabilities($Subject);
Note:
See TracChangeset
for help on using the changeset viewer.