Ignore:
Timestamp:
Jan 2, 2014, 5:07:34 PM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Doplněn parametr rok u dalších vkládaných položek finančních operací a faktur.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/FinanceBankAPI/FileImport.php

    r628 r629  
    3636          if($DbRow['Value'] >= 0) $DocumentLine = 3; // Receive money
    3737            else $DocumentLine = 4; // Send money
    38           $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine);
     38          $Year = date('Y', MysqlDateTimeToTime($DbRow['Time']));
     39          $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine, $Year);
    3940          $DbResult3 = $this->Database->insert('FinanceOperation', array('Subject' => $DbRow2['Id'], 'Cash' => 0,
    4041            'Value' => $DbRow['Value'], 'Taxable' => 1, 'BankAccount' => $DbRow['BankAccount'], 'Network' => 1,
     
    134135  function InsertMoney($Subject, $Value, $Cash, $Taxable, $Time, $Text, $DocumentLine)
    135136  {
    136 
    137     $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine);
     137    $Year = date('Y', $Time);     
     138    $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumber($DocumentLine, $Year);
    138139    $this->Database->insert('FinanceOperation', array('Text' => $Text, 'Subject' => $Subject, 'Cash' => $Cash, 'Value' => $Value, 'Time' => TimeToMysqlDateTime($Time), 'Taxable' => $Taxable, 'BillCode' => $BillCode));
    139140  }
Note: See TracChangeset for help on using the changeset viewer.