Method EinvoicePaymentMeans():setCode() Professional

Sets the payment means code (BT-81).

Syntax
:setCode( [<cValue>] ) --> self
Parameters
<cValue>
A payment means code as defined in UNTDID 4461. This defaults to EINV_PAYMEANS_SEPA_CREDIT_TRANSFER ("58", SEPA credit transfer).
Return

This method returns self.

Description

Assigns the payment means code (BT-81) as defined in UNTDID 4461. The code determines which further fields are required by AbstractEinvoice():validate(). A credit transfer requires the payee account identifier, and a SEPA direct debit requires the mandate reference and the debited account.

The following constants are defined in einvoice-codes.ch:

EINV_PAYMEANS_CASH - "10", payment in cash.

EINV_PAYMEANS_CREDIT_TRANSFER - "30", credit transfer.

EINV_PAYMEANS_CARD - "48", payment by bank card.

EINV_PAYMEANS_SEPA_CREDIT_TRANSFER - "58", SEPA credit transfer.

EINV_PAYMEANS_SEPA_DIRECT_DEBIT - "59", SEPA direct debit.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.