Add capability to sync collected invoices to E-Conomic
Introduced a new endpoint for syncing collected order invoices with E-Conomic via a POST route. Added methods for creating, managing, and closing invoice drafts in E-Conomic. The implementation includes validations, external ID handling, and seamless integration of payment terms and layout configurations.
This commit is contained in:
@@ -20,6 +20,7 @@ use endpoints\economic_layouts_endpoint;
|
||||
use endpoints\economic_orders_endpoint;
|
||||
use endpoints\economic_products_endpoint;
|
||||
use helpers\economic_customer;
|
||||
use helpers\economic_invoice_draft;
|
||||
use interfaces\economic_i;
|
||||
|
||||
class economic implements economic_i
|
||||
@@ -87,4 +88,14 @@ class economic implements economic_i
|
||||
{
|
||||
return new $this->helpers->economic_customer($customer_number);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a invoiceDraft (Helper) from the Economic system
|
||||
* @param int $draft_invoice_number The Economic draft invoice number
|
||||
* @return economic_invoice_draft
|
||||
*/
|
||||
public function getInvoiceDraft(int $draft_invoice_number): economic_invoice_draft
|
||||
{
|
||||
return new $this->helpers->economic_invoice_draft($draft_invoice_number);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user