SELECT AC.*
from AssetCards AC
{JOIN}
JOIN taxdepreciationgroups TDG ON AC.taxdepreciationgroup_id = TDG.id
WHERE
(TDG.AlgorithmType = 1)
and
(
(
(AC.AnnualTaxDeprIncrDoneCount > 0) and
((SELECT count(VC.ID) from AssetValueChanges VC WHERE (VC.AssetCard_ID = Ac.ID) and (VC.IsValorisation = 'A') and (VC.IsApplyInCard = 'A')) > 0)
)
or
(
(AC.AnnualTaxDeprIncrDoneCount = 0) and
((SELECT count(VC.ID) from AssetValueChanges VC WHERE (VC.AssetCard_ID = AC.ID) and (VC.IsValorisation = 'A') and (VC.IsApplyInCard = 'A')) > 1)
)
)
| Alias | CLSID objektu | Prefix | Popis |
|---|---|---|---|
| AC | S0ODIDCD1NEL314Z00C5PPZRR4 |
A.Name Collate PXW_CSY
A.InventoryNr
A.Code Collate PXW_CSY
A.ProductNr
Generated by ABRA Software a.s. 27.10.2021 16:36