Ignore:
Timestamp:
Feb 17, 2021, 12:30:23 PM (4 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

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

    r894 r899  
    11<?php
    22
    3 class ModuleStock extends AppModule
     3class ModuleStock extends Module
    44{
    55  function __construct(System $System)
     
    99    $this->Version = '1.0';
    1010    $this->Creator = 'Chronos';
    11     $this->License = 'GNU/GPL';
     11    $this->License = 'GNU/GPLv3';
    1212    $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(),
    1915      StockMoveGroup::GetClassName(), StockMove::GetClassName(), StockMoveItem::GetClassName(),
    2016      StockItemHistory::GetClassName(), StockMoveItemSerialRel::GetClassName());
     
    266262class Product extends Model
    267263{
    268   static function GetDesc(): ModelDesc
     264  static function GetModelDesc(): ModelDesc
    269265  {
    270266    $Desc = new ModelDesc(self::GetClassName());
     
    285281class StockSerialNumber extends Model
    286282{
    287   static function GetDesc(): ModelDesc
     283  static function GetModelDesc(): ModelDesc
    288284  {
    289285    $Desc = new ModelDesc(self::GetClassName());
     
    305301class Stock extends Model
    306302{
    307   static function GetDesc(): ModelDesc
     303  static function GetModelDesc(): ModelDesc
    308304  {
    309305    $Desc = new ModelDesc(self::GetClassName());
     
    315311class StockMove extends Model
    316312{
    317   static function GetDesc(): ModelDesc
     313  static function GetModelDesc(): ModelDesc
    318314  {
    319315    $Desc = new ModelDesc(self::GetClassName());
     
    328324class StockMoveItem extends Model
    329325{
    330   static function GetDesc(): ModelDesc
     326  static function GetModelDesc(): ModelDesc
    331327  {
    332328    $Desc = new ModelDesc(self::GetClassName());
     
    341337class StockMoveGroup extends Model
    342338{
    343   static function GetDesc(): ModelDesc
     339  static function GetModelDesc(): ModelDesc
    344340  {
    345341    $Desc = new ModelDesc(self::GetClassName());
     
    354350class StockItemHistory extends Model
    355351{
    356   static function GetDesc(): ModelDesc
     352  static function GetModelDesc(): ModelDesc
    357353  {
    358354    $Desc = new ModelDesc(self::GetClassName());
     
    366362class StockMoveItemSerialRel extends Model
    367363{
    368   static function GetDesc(): ModelDesc
     364  static function GetModelDesc(): ModelDesc
    369365  {
    370366    $Desc = new ModelDesc(self::GetClassName());
Note: See TracChangeset for help on using the changeset viewer.