KVSKBAPaymentQRCodeSourceDoc
Summary: Provides the payment-relevant data (document no., amount, currency, remittance info, bill-to/debtor address) needed to build a payment QR code (e.g. SEPA "GiroCode"/EPC069-12 or Swiss QR-Bill) for a posted document (e.g. posted sales invoice, posted service invoice). To support an additional source document table in the future, implement this interface in a new codeunit and register it as the Implementation of a new value on the KVSKBAPaymentQRCodeSourceDoc enum - no changes to KVSKBAPaymentQRCodeMgmt are required.
Procedures
SetDocument(Variant) :
Summary: Sets the source document (e.g. a posted Sales Invoice Header or Service Invoice Header record) that the other methods on this interface will read payment data from.
procedure SetDocument(DocumentVariant: Variant):
Parameters:
DocumentVariant: The posted document record to read payment data from.
GetDocumentNo() : Code[20]
Summary: Returns the document's number.
procedure GetDocumentNo(): Code[20]
Returns: The document number (Code[20]).
GetAmountIncludingVAT() : Decimal
Summary: Returns the document's amount including VAT, in the document's currency.
procedure GetAmountIncludingVAT(): Decimal
Returns: The amount including VAT (Decimal).
GetCurrencyCode() : Code[10]
Summary: Returns the document's currency code, or blank for the local currency (LCY).
procedure GetCurrencyCode(): Code[10]
Returns: The currency code (Code[10]), or blank for LCY.
GetRemittanceInfo() : Text[140]
Summary: Returns the payment reference to use as remittance information, or, if the document has no payment reference, a fallback text based on the document number.
procedure GetRemittanceInfo(): Text[140]
Returns: The payment reference (Text[140]), or a fallback text based on the document number.
GetBillToName() : Text[70]
Summary: Returns the bill-to name, e.g. needed as the debtor name for a Swiss QR-Bill.
procedure GetBillToName(): Text[70]
Returns: The bill-to name (Text[70]).
GetBillToAddress() : Text[70]
Summary: Returns the bill-to street address (without postal code/city), e.g. needed for a Swiss QR-Bill.
procedure GetBillToAddress(): Text[70]
Returns: The bill-to street address (Text[70]).
GetBillToPostCode() : Code[20]
Summary: Returns the bill-to postal code, e.g. needed for a Swiss QR-Bill.
procedure GetBillToPostCode(): Code[20]
Returns: The bill-to postal code (Code[20]).
GetBillToCity() : Text[35]
Summary: Returns the bill-to city, e.g. needed for a Swiss QR-Bill.
procedure GetBillToCity(): Text[35]
Returns: The bill-to city (Text[35]).
GetBillToCountryRegionCode() : Code[10]
Summary: Returns the bill-to country/region code, or blank for the company's own country/region, e.g. needed for a Swiss QR-Bill.
procedure GetBillToCountryRegionCode(): Code[10]
Returns: The bill-to country/region code (Code[10]), or blank for the company's own country/region.