Create Invoice
Creates a new invoice or receipt in Elorus. Invoices are automatically saved as drafts by default and use the 'initial' calculation mode (amounts specified before taxes). Required: issue_date, currency_id (currency code like 'INR', 'EUR', 'USD'), client_id (from contacts), kind ('invoice' or 'receipt'), series_id (document type ID), and at least one line item. Use ELORUS_GET_CONTACTS to obtain valid client_id values, and check existing invoices for valid currency codes and series_id (documenttype) values in your organization.