mirror of
https://github.com/Karaka-Management/oms-BusinessExpenses.git
synced 2026-02-17 16:58:42 +00:00
Use helper traits
This commit is contained in:
parent
21c0fe1d55
commit
d3f3b3fb7c
|
|
@ -53,8 +53,6 @@ class Expense
|
||||||
*/
|
*/
|
||||||
public array $elements = [];
|
public array $elements = [];
|
||||||
|
|
||||||
public array $media = [];
|
|
||||||
|
|
||||||
public FloatInt $net;
|
public FloatInt $net;
|
||||||
|
|
||||||
public FloatInt $gross;
|
public FloatInt $gross;
|
||||||
|
|
@ -69,8 +67,6 @@ class Expense
|
||||||
|
|
||||||
public string $country = ISO3166TwoEnum::_USA;
|
public string $country = ISO3166TwoEnum::_USA;
|
||||||
|
|
||||||
public array $notes = [];
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->type = new BaseStringL11nType();
|
$this->type = new BaseStringL11nType();
|
||||||
|
|
@ -83,4 +79,7 @@ class Expense
|
||||||
$this->gross = new FloatInt();
|
$this->gross = new FloatInt();
|
||||||
$this->taxP = new FloatInt();
|
$this->taxP = new FloatInt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use \Modules\Media\Models\MediaListTrait;
|
||||||
|
use \Modules\Editor\Models\EditorDocListTrait;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ final class ExpenseMapper extends DataMapperFactory
|
||||||
'self' => 'bizexpenses_expense_element_expense',
|
'self' => 'bizexpenses_expense_element_expense',
|
||||||
'external' => null,
|
'external' => null,
|
||||||
],
|
],
|
||||||
'media' => [
|
'files' => [
|
||||||
'mapper' => MediaMapper::class,
|
'mapper' => MediaMapper::class,
|
||||||
'table' => 'bizexpenses_expense_media',
|
'table' => 'bizexpenses_expense_media',
|
||||||
'external' => 'bizexpenses_expense_media_dst',
|
'external' => 'bizexpenses_expense_media_dst',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user