Changeset 807
- Timestamp:
- Mar 6, 2016, 10:37:04 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UpdateTrace.php
r806 r807 1903 1903 $Manager->Execute('ALTER TABLE `StockMoveItemSerialRel` ADD FOREIGN KEY (`StockSerialNumber`) '. 1904 1904 'REFERENCES `StockSerialNumber`(`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT;'); 1905 } 1906 1907 function UpdateTo807($Manager) 1908 { 1909 $Manager->Execute('ALTER TABLE `Product` ADD `StockMinCount` INT NOT NULL AFTER `UnitOfMeasure`;'); 1905 1910 } 1906 1911 … … 1991 1996 800 => array('Revision' => 802, 'Function' => 'UpdateTo802'), 1992 1997 802 => array('Revision' => 803, 'Function' => 'UpdateTo803'), 1998 803 => array('Revision' => 807, 'Function' => 'UpdateTo807'), 1993 1999 )); 1994 2000 } -
trunk/Application/Version.php
r803 r807 1 1 <?php 2 2 3 $Revision = 80 3; // Subversion revision4 $DatabaseRevision = 80 3; // SQL structure revision5 $ReleaseTime = strtotime('2016-0 2-23');3 $Revision = 807; // Subversion revision 4 $DatabaseRevision = 807; // SQL structure revision 5 $ReleaseTime = strtotime('2016-03-06'); -
trunk/Modules/Stock/Stock.php
r803 r807 32 32 'Supplier' => array('Type' => 'TSubject', 'Caption' => 'Dodavatel', 'Default' => '', 'Null' => true), 33 33 'UnitOfMeasure' => array('Type' => 'TUnitOfMeasure', 'Caption' => 'Měrná jednotka', 'Default' => '', 'Null' => true), 34 'StockSerialNumbers' => array('Type' => 'TStockSerialNumberListProduct', 'Caption' => 'Položky na skladě', 'Default' => '', 'Suffix' => 'ks'), 35 'StockState' => array('Type' => 'Integer', 'Caption' => 'Síťová zařízení', 'Default' => '', 'ReadOnly' => true, 36 'SQL' => 'SELECT SUM(`Amount`) FROM `StockMoveItem` WHERE `StockMoveItem`.`Product`=#Id'), 34 'StockSerialNumbers' => array('Type' => 'TStockSerialNumberListProduct', 'Caption' => 'Položky na skladě', 'Default' => ''), 35 'StockState' => array('Type' => 'Integer', 'Caption' => 'Počet na skladě', 'Default' => '', 'ReadOnly' => true, 36 'SQL' => 'SELECT IFNULL(SUM(`Amount`), 0) FROM `StockMoveItem` WHERE `StockMoveItem`.`Product`=#Id'), 37 'StockMinCount' => array('Type' => 'Integer', 'Caption' => 'Skladové minimum', 'Default' => '0'), 37 38 'StockMoves' => array('Type' => 'TStockMoveItemListProduct', 'Caption' => 'Pohyby na skladě', 'Default' => ''), 38 39 'NetworkDevices' => array('Type' => 'TNetworkDeviceListProduct', 'Caption' => 'Síťová zařízení', 'Default' => ''), 39 ), 40 )); 40 'StockShortage' => array('Type' => 'TStockState', 'Caption' => 'Stav skladu', 'Default' => '', 'ReadOnly' => true, 41 'SQL' => 'SELECT (IFNULL(SUM(`Amount`), 0) >= `StockMinCount`) FROM `StockMoveItem` WHERE `StockMoveItem`.`Product`=#Id'), 42 ), 43 )); 44 41 45 $this->System->FormManager->RegisterClass('StockSerialNumber', array( 42 46 'Title' => 'Skladové položky', … … 234 238 'Filter' => '1', 235 239 )); 240 241 $this->System->FormManager->RegisterFormType('TStockState', array( 242 'Type' => 'Enumeration', 243 'States' => array('<span style="color:red;">Nedostatek</span>', 244 '<span style="color:green;">Dostatek</span>'), 245 )); 236 246 } 237 247
Note:
See TracChangeset
for help on using the changeset viewer.