Changeset 803 for trunk/Modules/Stock/Stock.php
- Timestamp:
- Feb 23, 2016, 7:18:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Stock/Stock.php
r802 r803 17 17 { 18 18 global $Config; 19 19 20 20 $this->System->FormManager->RegisterClass('Product', array( 21 21 'Title' => 'Produkty', … … 57 57 'Parts' => array('Type' => 'TStockSerialNumberListStockSerialNumber', 'Caption' => 'Části', 'Default' => ''), 58 58 'History' => array('Type' => 'TStockItemHistoryListStockSerialNumber', 'Caption' => 'Historie', 'Default' => ''), 59 'Sériové čísla' => array('Type' => 'TStockMoveItemSerialListSerial', 'Caption' => 'Skladové pohyby', 'Default' => ''), 59 60 ), 60 61 )); … … 106 107 'Total' => array('Type' => 'Integer', 'Caption' => 'Celkem', 'Default' => '', 'Suffix' => 'Kč', 107 108 'ReadOnly' => true, 'SQL' => 'ROUND(`UnitPrice` * `Amount`, '.$Config['Finance']['Rounding'].')'), 109 'Položky pohybů' => array('Type' => 'TStockMoveItemSerialListItem', 'Caption' => 'Vztahy sériových čísel', 'Default' => ''), 110 'Sériové čísla' => array('Type' => 'String', 'Caption' => 'Sériové čísla', 'ReadOnly' => true, 111 'SQL' => 'SELECT GROUP_CONCAT(`StockSerialNumber`.`RegNumber` SEPARATOR ", ") FROM `StockMoveItemSerialRel` '. 112 'LEFT JOIN `StockSerialNumber` ON `StockSerialNumber`.`Id`=`StockMoveItemSerialRel`.`StockSerialNumber` '. 113 'WHERE `StockMoveItemSerialRel`.`StockMoveItem`=#Id'), 108 114 ), 109 115 )); … … 129 135 ), 130 136 )); 137 $this->System->FormManager->RegisterClass('StockMoveItemSerialRel', array( 138 'Title' => 'Vztah položky skladových pohybů a sériových čísel', 139 'Table' => 'StockMoveItemSerialRel', 140 'Items' => array( 141 'StockMoveItem' => array('Type' => 'TStockMoveItem', 'Caption' => 'Položky pohybu', 'Default' => ''), 142 'StockSerialNumber' => array('Type' => 'TStockSerialNumber', 'Caption' => 'Sériové číslo', 'Default' => ''), 143 ), 144 )); 131 145 $this->System->FormManager->RegisterFormType('TStockMoveItemListStockMove', array( 132 146 'Type' => 'ManyToOne', … … 157 171 'Filter' => '1', 158 172 )); 173 $this->System->FormManager->RegisterFormType('TStockMoveItemSerialListItem', array( 174 'Type' => 'ManyToOne', 175 'Table' => 'StockMoveItemSerialRel', 176 'Id' => 'Id', 177 'Ref' => 'StockMoveItem', 178 'Filter' => '1', 179 )); 180 $this->System->FormManager->RegisterFormType('TStockMoveItemSerialListSerial', array( 181 'Type' => 'ManyToOne', 182 'Table' => 'StockMoveItemSerialRel', 183 'Id' => 'Id', 184 'Ref' => 'StockSerialNumber', 185 'Filter' => '1', 186 )); 159 187 $this->System->FormManager->RegisterFormType('TStockMove', array( 160 188 'Type' => 'Reference', … … 162 190 'Id' => 'Id', 163 191 'Name' => '(SELECT `DocumentLineCode`.`Name` FROM `DocumentLineCode` WHERE `Id`=`StockMove`.`BillCode`)', 192 'Filter' => '1', 193 )); 194 $this->System->FormManager->RegisterFormType('TStockMoveItem', array( 195 'Type' => 'Reference', 196 'Table' => 'StockMoveItem', 197 'Id' => 'Id', 198 'Name' => '(SELECT `Name` FROM `Product` WHERE `Product`.`Id`=`StockMoveItem`.`Product`)', 164 199 'Filter' => '1', 165 200 ));
Note:
See TracChangeset
for help on using the changeset viewer.