Ignore:
Timestamp:
Sep 8, 2020, 5:26:30 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Wrong decimal separator and uninitialized Value database column for Fio Import.
Location:
trunk/Modules/FinanceBankAPI
Files:
2 edited

Legend:

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

    r874 r884  
    4242          $BillCode = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($FinanceGroup['DocumentLine'], $Year);
    4343          $DbResult3 = $this->Database->insert('FinanceOperation', array('Subject' => $DbRow2['Id'], 'Cash' => 0,
    44             'ValueUser' => Abs($DbRow['Value']), 'Taxable' => 1, 'BankAccount' => $DbRow['BankAccount'], 'Network' => 1,
     44            'ValueUser' => Abs($DbRow['Value']), 'Value' => 0, 'Taxable' => 1, 'BankAccount' => $DbRow['BankAccount'], 'Network' => 1,
    4545            'Time' => $DbRow['Time'], 'Text' => $DbRow['Description'], 'BillCode' => $BillCode, 'Group' => $FinanceGroup['Id']));
    4646          $Id = $this->Database->insert_id;
  • trunk/Modules/FinanceBankAPI/ImportFio.php

    r874 r884  
    2727      if ($DbResult->num_rows == 0)
    2828      {
     29        $Record['Value'] = str_replace(",", ".", $Record['Value']);
    2930        $Output .= '<tr>';
    3031        $this->Database->insert('FinanceBankImport', array('Time' => TimeToMysqlDate($Record['Date']),
Note: See TracChangeset for help on using the changeset viewer.