Changeset 901 for trunk/Modules/Stock/Stock.php
- Timestamp:
- Feb 17, 2021, 9:27:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Stock/Stock.php
r899 r901 11 11 $this->License = 'GNU/GPLv3'; 12 12 $this->Description = 'Stock and products'; 13 $this->Dependencies = array(ModuleUser::GetName(), ModuleCustomer::GetName(), ModuleNetwork::GetName()); 13 $this->Dependencies = array(ModuleUser::GetName(), ModuleCustomer::GetName(), ModuleNetwork::GetName(), 14 ModuleDocument::GetName()); 14 15 $this->Models = array(Product::GetClassName(), StockSerialNumber::GetClassName(), Stock::GetClassName(), 15 16 StockMoveGroup::GetClassName(), StockMove::GetClassName(), StockMoveItem::GetClassName(), … … 255 256 else $Year = date("Y", $Form->Values['ValidFrom']); 256 257 $Group = $Finance->GetFinanceGroupById($Form->Values['Group'], 'StockMoveGroup'); 257 $Form->Values['BillCode'] = $Finance->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year);258 $Form->Values['BillCode'] = ModuleDocument::Cast($this->System->GetModule('Document'))->GetNextDocumentLineNumberId($Group['DocumentLine'], $Year); 258 259 return $Form->Values; 259 260 }
Note:
See TracChangeset
for help on using the changeset viewer.