mirror of
https://github.com/Karaka-Management/oms-Accounting.git
synced 2026-02-04 23:38:40 +00:00
autofixes
This commit is contained in:
parent
f16b953d1c
commit
b5ac710e3d
|
|
@ -45,10 +45,10 @@ final class CostCenterMapper extends DataMapperAbstract
|
|||
*/
|
||||
protected static array $hasMany = [
|
||||
'l11n' => [
|
||||
'mapper' => L11nCostCenterMapper::class,
|
||||
'table' => 'accounting_costcenter_l11n',
|
||||
'self' => 'accounting_costcenter_l11n_costcenter',
|
||||
'conditional' => true,
|
||||
'mapper' => L11nCostCenterMapper::class,
|
||||
'table' => 'accounting_costcenter_l11n',
|
||||
'self' => 'accounting_costcenter_l11n_costcenter',
|
||||
'conditional' => true,
|
||||
'external' => null,
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ final class CostObjectMapper extends DataMapperAbstract
|
|||
'l11n' => [
|
||||
'mapper' => L11nCostObjectMapper::class,
|
||||
'table' => 'accounting_costobject_l11n',
|
||||
'self' => 'accounting_costobject_l11n_costobject',
|
||||
'self' => 'accounting_costobject_l11n_costobject',
|
||||
'conditional' => true,
|
||||
'external' => null,
|
||||
],
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ final class L11nCostCenterMapper extends DataMapperAbstract
|
|||
*/
|
||||
protected static array $ownsOne = [
|
||||
'language' => [
|
||||
'mapper' => LanguageMapper::class,
|
||||
'mapper' => LanguageMapper::class,
|
||||
'external' => 'accounting_costcenter_l11n_language',
|
||||
'by' => 'code2',
|
||||
'column' => 'code2',
|
||||
'conditional' => true,
|
||||
'by' => 'code2',
|
||||
'column' => 'code2',
|
||||
'conditional' => true,
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ final class L11nCostObjectMapper extends DataMapperAbstract
|
|||
*/
|
||||
protected static array $ownsOne = [
|
||||
'language' => [
|
||||
'mapper' => LanguageMapper::class,
|
||||
'mapper' => LanguageMapper::class,
|
||||
'external' => 'accounting_costobject_l11n_language',
|
||||
'by' => 'code2',
|
||||
'column' => 'code2',
|
||||
'conditional' => true,
|
||||
'by' => 'code2',
|
||||
'column' => 'code2',
|
||||
'conditional' => true,
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ class CostCenterMapperTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testCR() : void
|
||||
{
|
||||
$costcenter = new CostCenter();
|
||||
$costcenter->code = '123';
|
||||
$costcenter->l11n->name = 'Test CostCenter';
|
||||
$costcenter = new CostCenter();
|
||||
$costcenter->code = '123';
|
||||
$costcenter->l11n->name = 'Test CostCenter';
|
||||
$costcenter->l11n->description = 'Test description';
|
||||
|
||||
$id = CostCenterMapper::create($costcenter);
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ class CostObjectMapperTest extends \PHPUnit\Framework\TestCase
|
|||
*/
|
||||
public function testCR() : void
|
||||
{
|
||||
$costobject = new CostObject();
|
||||
$costobject->code = '123';
|
||||
$costobject->l11n->name = 'Test CostObject';
|
||||
$costobject = new CostObject();
|
||||
$costobject->code = '123';
|
||||
$costobject->l11n->name = 'Test CostObject';
|
||||
$costobject->l11n->description = 'Test description';
|
||||
|
||||
$id = CostObjectMapper::create($costobject);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user