Changeset 873 for trunk/Modules/Stock/Stock.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Stock/Stock.php
r807 r873 248 248 function BeforeInsertStockMove($Form) 249 249 { 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']); 251 251 else $Year = date("Y", $Form->Values['ValidFrom']); 252 252 $Group = $this->System->Modules['Finance']->GetFinanceGroupById($Form->Values['Group'], 'StockMoveGroup'); 253 253 $Form->Values['BillCode'] = $this->System->Modules['Finance']->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year); 254 return ($Form->Values);254 return ($Form->Values); 255 255 } 256 256 }
Note:
See TracChangeset
for help on using the changeset viewer.