Changeset 800 for trunk/Modules/Stock/Stock.php
- Timestamp:
- Feb 22, 2016, 11:17:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Stock/Stock.php
r738 r800 31 31 'UnitOfMeasure' => array('Type' => 'TUnitOfMeasure', 'Caption' => 'Měrná jednotka', 'Default' => '', 'Null' => true), 32 32 'StockSerialNumbers' => array('Type' => 'TStockSerialNumberListProduct', 'Caption' => 'Položky na skladě', 'Default' => '', 'Suffix' => 'ks'), 33 'StockState' => array('Type' => 'Integer', 'Caption' => 'Síťová zařízení', 'Default' => '', 'ReadOnly' => true, 34 'SQL' => 'SELECT SUM(`Amount`) FROM `StockMoveItem` WHERE `StockMoveItem`.`Product`=#Id'), 35 'StockMoves' => array('Type' => 'TStockMoveItemListProduct', 'Caption' => 'Pohyby na skladě', 'Default' => ''), 33 36 'NetworkDevices' => array('Type' => 'TNetworkDeviceListProduct', 'Caption' => 'Síťová zařízení', 'Default' => ''), 34 37 ), … … 49 52 'RegNumber' => array('Type' => 'String', 'Caption' => 'Evidenční číslo', 'Default' => '', 'Null' => true), 50 53 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '', 'Null' => true), 51 'Info' => array('Type' => 'Text', 'Caption' => 'Informace', 'Default' => ''),52 54 'Esemble' => array('Type' => 'TStockSerialNumber', 'Caption' => 'Celek', 'Default' => ''), 53 55 'Parts' => array('Type' => 'TStockSerialNumberListStockSerialNumber', 'Caption' => 'Části', 'Default' => ''), 56 'History' => array('Type' => 'TStockItemHistoryListStockSerialNumber', 'Caption' => 'Historie', 'Default' => ''), 54 57 ), 55 58 )); … … 121 124 ), 122 125 )); 126 $this->System->FormManager->RegisterClass('StockItemHistory', array( 127 'Title' => 'Historie skladové položky', 128 'Table' => 'StockItemHistory', 129 'DefaultSortColumn' => 'Time', 130 'Items' => array( 131 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''), 132 'StockSerialNumber' => array('Type' => 'TStockSerialNumber', 'Caption' => 'Sériové číslo', 'Default' => ''), 133 'Text' => array('Type' => 'Text', 'Caption' => 'Text', 'Default' => ''), 134 ), 135 )); 123 136 $this->System->FormManager->RegisterFormType('TStockMoveItemListStockMove', array( 124 137 'Type' => 'ManyToOne', … … 128 141 'Filter' => '1', 129 142 )); 143 $this->System->FormManager->RegisterFormType('TStockMoveItemListProduct', array( 144 'Type' => 'ManyToOne', 145 'Table' => 'StockMoveItem', 146 'Id' => 'Id', 147 'Ref' => 'Product', 148 'Filter' => '1', 149 )); 130 150 $this->System->FormManager->RegisterFormType('TStockMoveStock', array( 131 151 'Type' => 'ManyToOne', … … 161 181 'Id' => 'Id', 162 182 'Name' => 'RegNumber', 183 'Filter' => '1', 184 )); 185 $this->System->FormManager->RegisterFormType('TStockItemHistoryListStockSerialNumber', array( 186 'Type' => 'ManyToOne', 187 'Table' => 'StockItemHistory', 188 'Id' => 'Id', 189 'Ref' => 'StockSerialNumber', 163 190 'Filter' => '1', 164 191 ));
Note:
See TracChangeset
for help on using the changeset viewer.