Changeset 899 for trunk/Modules/Stock/Stock.php
- Timestamp:
- Feb 17, 2021, 12:30:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Stock/Stock.php
r894 r899 1 1 <?php 2 2 3 class ModuleStock extends AppModule3 class ModuleStock extends Module 4 4 { 5 5 function __construct(System $System) … … 9 9 $this->Version = '1.0'; 10 10 $this->Creator = 'Chronos'; 11 $this->License = 'GNU/GPL ';11 $this->License = 'GNU/GPLv3'; 12 12 $this->Description = 'Stock and products'; 13 $this->Dependencies = array('User', 'Customer', 'Network'); 14 } 15 16 function GetModels(): array 17 { 18 return array(Product::GetClassName(), StockSerialNumber::GetClassName(), Stock::GetClassName(), 13 $this->Dependencies = array(ModuleUser::GetName(), ModuleCustomer::GetName(), ModuleNetwork::GetName()); 14 $this->Models = array(Product::GetClassName(), StockSerialNumber::GetClassName(), Stock::GetClassName(), 19 15 StockMoveGroup::GetClassName(), StockMove::GetClassName(), StockMoveItem::GetClassName(), 20 16 StockItemHistory::GetClassName(), StockMoveItemSerialRel::GetClassName()); … … 266 262 class Product extends Model 267 263 { 268 static function Get Desc(): ModelDesc264 static function GetModelDesc(): ModelDesc 269 265 { 270 266 $Desc = new ModelDesc(self::GetClassName()); … … 285 281 class StockSerialNumber extends Model 286 282 { 287 static function Get Desc(): ModelDesc283 static function GetModelDesc(): ModelDesc 288 284 { 289 285 $Desc = new ModelDesc(self::GetClassName()); … … 305 301 class Stock extends Model 306 302 { 307 static function Get Desc(): ModelDesc303 static function GetModelDesc(): ModelDesc 308 304 { 309 305 $Desc = new ModelDesc(self::GetClassName()); … … 315 311 class StockMove extends Model 316 312 { 317 static function Get Desc(): ModelDesc313 static function GetModelDesc(): ModelDesc 318 314 { 319 315 $Desc = new ModelDesc(self::GetClassName()); … … 328 324 class StockMoveItem extends Model 329 325 { 330 static function Get Desc(): ModelDesc326 static function GetModelDesc(): ModelDesc 331 327 { 332 328 $Desc = new ModelDesc(self::GetClassName()); … … 341 337 class StockMoveGroup extends Model 342 338 { 343 static function Get Desc(): ModelDesc339 static function GetModelDesc(): ModelDesc 344 340 { 345 341 $Desc = new ModelDesc(self::GetClassName()); … … 354 350 class StockItemHistory extends Model 355 351 { 356 static function Get Desc(): ModelDesc352 static function GetModelDesc(): ModelDesc 357 353 { 358 354 $Desc = new ModelDesc(self::GetClassName()); … … 366 362 class StockMoveItemSerialRel extends Model 367 363 { 368 static function Get Desc(): ModelDesc364 static function GetModelDesc(): ModelDesc 369 365 { 370 366 $Desc = new ModelDesc(self::GetClassName());
Note:
See TracChangeset
for help on using the changeset viewer.