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