Changeset 884


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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r883 r884  
    11<?php
    22
    3 $Revision = 883; // Subversion revision
     3$Revision = 884; // Subversion revision
    44$DatabaseRevision = 882; // SQL structure revision
    55$ReleaseTime = strtotime('2020-09-08');
  • 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.