| Název | Popis | Datový typ |
|---|---|---|
| APDocumentType | Char(2) | |
| APDocument_ID | Char(10) | |
| ADocumentType | Char(2) | |
| ADocument_ID | Char(10) |
| Název | Popis | Datový typ |
|---|---|---|
| RAmount | Numeric(15, 3) | |
| RLocalAmount | Numeric(15, 3) |
BEGIN
/* Zjistime Amount */
SELECT
COALESCE(SUM(Amount),0), COALESCE(SUM(LocalAmount),0)
FROM
Payments
WHERE
Document_ID = :ADocument_ID AND DocumentType = :ADocumentType AND
PDocument_ID = :APDocument_ID AND PDocumentType = :APDocumentType
INTO
:RAmount, :RLocalAmount;
SUSPEND;
END;Generated by ABRA Software a.s. 27.10.2021 16:34:16