Třídová akce

Popis:
Pro skladovou kartu vrátí z ceníků počet cen s odstupňovanými cenami.
Kód:
35
Tělo:
select Count(A.ID) from
(
  select SP2.ID from StorePrices2 SP2 
  join StorePrices SP on SP.ID = SP2.Parent_ID
  where SP.StoreCard_ID = :AStoreCard_ID and SP2.TieredPrice = 'A'
UNION ALL
  select SP2.ID from ActionStorePrices2 SP2 
  join ActionStorePrices SP on SP.ID = SP2.Parent_ID
  where SP.StoreCard_ID = :AStoreCard_ID and SP2.TieredPrice = 'A'
) A 

Generated by ABRA Software a.s. 27.10.2021 16:34:11