Pro zadaný zdroj zjistí reálně fakturovanou částku a počet hodin z tabulky Bus*Invoicing2
Kód:
4
Tělo:
SELECT
SUM(R.Quantity), SUM(R.Amount), SUM(H.QuantityCorrection), SUM(H.AmountCorrection)
FROM
BusOrderInvoicing2 R, BusOrderInvoicing H
WHERE
(R.Parent_ID = H.ID) and (H.Source_ID = :OBJID)
Generated by ABRA Software a.s. 27.10.2021 16:34:08