Changeset 591


Ignore:
Timestamp:
Nov 2, 2013, 3:54:49 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Skladová položka nyní může mít nyní jako sestava podpoložky.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Version.php

    r589 r591  
    11<?php
    22
    3 $Revision = 589; // Subversion revision
    4 $DatabaseRevision = 584; // SQL structure revision
    5 $ReleaseTime = '2013-11-01';
     3$Revision = 591; // Subversion revision
     4$DatabaseRevision = 591; // SQL structure revision
     5$ReleaseTime = '2013-11-02';
  • trunk/FormClasses.php

    r588 r591  
    701701    'Filter' => '1',
    702702  ),
     703  'TStockItemListStockItem' => array(
     704    'Type' => 'ManyToOne',
     705    'Table' => 'StockItem',
     706    'Id' => 'Id',
     707    'Ref' => 'Esemble',
     708    'Filter' => '1',
     709  ),
    703710);
    704711}
  • trunk/Modules/Setup/Updates.php

    r590 r591  
    441441}
    442442
     443function UpdateTo591($Manager)
     444{
     445  $Manager->Execute('ALTER TABLE `StockItem` ADD `Esemble` INT NULL ,
     446ADD INDEX ( `Esemble` ) ;');
     447  $Manager->Execute('ALTER TABLE `StockItem` ADD FOREIGN KEY ( `Esemble` ) REFERENCES StockItem` (
     448`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;');
     449}
     450
    443451class Updates
    444452{
     
    468476  571 => array('Revision' => 574, 'Function' => 'UpdateTo574'),
    469477  574 => array('Revision' => 584, 'Function' => 'UpdateTo584'),
     478  584 => array('Revision' => 591, 'Function' => 'UpdateTo591'),
    470479));
    471480    }
  • trunk/Modules/Stock/Stock.php

    r586 r591  
    5050        'Segment' => array('Type' => 'TNetworkSegment', 'Caption' => 'Úsek sítě', 'Default' => '', 'Null' => true),
    5151        'Info' => array('Type' => 'Text', 'Caption' => 'Informace', 'Default' => ''),
     52        'Esemble' => array('Type' => 'TStockItem', 'Caption' => 'Celek', 'Default' => ''),
     53        'Parts' => array('Type' => 'TStockItemListStockItem', 'Caption' => 'Části', 'Default' => ''),         
    5254      ),
    5355    ));
Note: See TracChangeset for help on using the changeset viewer.