- Introduce `economic_invoice_booked` helper for normalizing booked invoice data. - Add `getFromId` method to fetch booked invoice details by ID. - Extend `economic` class with `getInvoiceBookedFromExternalId` for external ID-based retrieval. - Update imports and economic helper class registrations to include booked invoice functionality.
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
require_once WD . '/modules/economic/helpers/economic_customer.php';
|
|
require_once WD . '/modules/economic/helpers/economic_invoice_draft.php';
|
|
require_once WD . '/modules/economic/helpers/economic_invoice_booked.php';
|
|
require_once WD . '/modules/economic/helpers/economic_tasks.php';
|
|
|
|
|
|
use helpers\economic_customer;
|
|
use helpers\economic_invoice_draft;
|
|
use helpers\economic_invoice_booked;
|
|
use helpers\economic_tasks;
|
|
|
|
class economic_helpers
|
|
{
|
|
/**
|
|
* The Economic customer helper
|
|
* @var string $economic_customer
|
|
*/
|
|
public string $economic_customer = economic_customer::class;
|
|
/**
|
|
* The Economic invoice draft helper
|
|
* @var string $economic_invoice_draft
|
|
*/
|
|
public string $economic_invoice_draft = economic_invoice_draft::class;
|
|
/**
|
|
* The Economic booked invoice helper
|
|
* @var string $economic_invoice_booked
|
|
*/
|
|
public string $economic_invoice_booked = economic_invoice_booked::class;
|
|
/**
|
|
* The Economic tasks helper
|
|
* @var string $economic_tasks
|
|
*/
|
|
public string $economic_tasks = economic_tasks::class;
|
|
} |