Ignore:
Timestamp:
Jul 27, 2014, 12:28:16 PM (10 years ago)
Author:
chronos
Message:
  • Upraveno: Zaokrouhlovat vypočítanou cenu na celé čísla v položkách faktur.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Manage.php

    r653 r680  
    110110    $SumValue = 0;
    111111    foreach($Items as $Item)
    112         $SumValue = $SumValue + $Item['Price'] * $Item['Quantity'];
     112        $SumValue = $SumValue + ceil($Item['Price'] * $Item['Quantity']);
    113113    $this->Database->insert('FinanceInvoice', array(
    114114          'Subject' => $Subject, 'Time' => TimeToMysqlDateTime($TimeCreation),
     
    119119    foreach($Items as $Item)
    120120      $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']));
    122123    //$LastInsertTime = $Time;
    123124    //$this->CheckAdvancesAndLiabilities($Subject);
Note: See TracChangeset for help on using the changeset viewer.