Ignore:
Timestamp:
Dec 8, 2013, 12:56:53 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Zobrazení souhrných informací o skladu.
File:
1 edited

Legend:

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

    r591 r603  
    6262        'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '', 'Null' => true),
    6363        'Items' => array('Type' => 'TStockItemListStock', 'Caption' => 'Položky', 'Default' => ''),
     64        'ItemsCount' => array('Type' => 'Integer', 'Caption' => 'Položek', 'Default' => '',
     65          'ReadOnly' => true, 'SQL' => '(SELECT COUNT(*) FROM `StockItem` WHERE '.
     66          '(`StockItem`.`Stock`=#Id) AND (`StockItem`.`TimeElimination` IS NULL))'),
     67        'TotalPrice' => array('Type' => 'Integer', 'Caption' => 'Celková cena', 'Default' => '',
     68          'ReadOnly' => true, 'SQL' => '(SELECT SUM(`SellPrice`) FROM `StockItem` WHERE '.
     69          '(`StockItem`.`Stock`=#Id) AND (`StockItem`.`TimeElimination` IS NULL))', 'Suffix' => 'Kč'),
    6470      ),
    6571    ));
Note: See TracChangeset for help on using the changeset viewer.