Method EinvoicePaymentMeans():setCode() Professional
Sets the payment means code (BT-81).
:setCode( [<cValue>] ) --> self
This method returns self.
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.
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.