Ignore:
Timestamp:
Apr 6, 2020, 11:17:40 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved code format.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Stock/Stock.php

    r807 r873  
    248248  function BeforeInsertStockMove($Form)
    249249  {
    250     if(array_key_exists('Time', $Form->Values)) $Year = date("Y", $Form->Values['Time']);
     250    if (array_key_exists('Time', $Form->Values)) $Year = date("Y", $Form->Values['Time']);
    251251      else $Year = date("Y", $Form->Values['ValidFrom']);
    252252    $Group = $this->System->Modules['Finance']->GetFinanceGroupById($Form->Values['Group'], 'StockMoveGroup');
    253253    $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year);
    254     return($Form->Values);
     254    return ($Form->Values);
    255255  }
    256256}
Note: See TracChangeset for help on using the changeset viewer.