Ignore:
Timestamp:
Sep 30, 2015, 11:55:11 PM (9 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

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

    r747 r748  
    109109    $SumValue = 0;
    110110    foreach($Items as $Item) {
    111       $SumValue = $SumValue + ceil($Item['Price'] * $Item['Quantity']);
    112     }
     111      $SumValue = $SumValue + $Item['Price'] * $Item['Quantity'];
     112    }
     113    $Finance = &$this->System->Modules['Finance'];
     114    $SumValue = round($SumValue, $Finance->Rounding);
    113115    $this->Database->insert('FinanceInvoice', array(
    114116      'Subject' => $Subject, 'Time' => TimeToMysqlDateTime($TimeCreation),
Note: See TracChangeset for help on using the changeset viewer.