Method EinvFactory():createManualInvoice() Professional

Creates an invoice with explicit VAT categories.

Syntax
:createManualInvoice( <oSeller>, <oBuyer>, <cNumber>, [<xIssueDate>] ) --> oInvoice
Parameters
<oSeller>
The seller (BG-4), specified either as an EinvoiceParty() object or as a DataObject with the corresponding members.
<oBuyer>
The buyer (BG-7), specified either as an EinvoiceParty() object or as a DataObject with the corresponding members.
<cNumber>
The invoice number (BT-1).
<xIssueDate>
The issue date of the invoice (BT-2). The date can be specified as a date value or as a character string in the format "YYYY-MM-DD" or "YYYYMMDD". This defaults to the current date.
Return

A new ManualEinvoice() object with the seller and the buyer assigned.

Description

Creates a new ManualEinvoice() object, regardless of the countries of the seller and the buyer. Both parties are converted via EinvoiceParty():from() and assigned to the new invoice via :setSeller() and :addRecipient().

This method can be used for a seller located outside the EU, for a special VAT scheme, for a buyer whose country is not known or whenever the scenario selected by EinvFactory():createInvoice() does not apply. Unlike EinvFactory():createInvoice(), this method does not require a country code for the buyer.

The VAT category of every invoice line added to the invoice must be specified explicitly. For the category "S", the VAT rate must be specified as well. Refer to ManualEinvoice():resolveVatCategory() for details.

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.