mirror of
https://github.com/Karaka-Management/oms-ContractManagement.git
synced 2026-02-01 19:38:43 +00:00
update
This commit is contained in:
parent
9a0f8adf17
commit
cebd5f2755
|
|
@ -90,7 +90,7 @@ final class Installer extends InstallerAbstract
|
|||
|
||||
$module->apiContractTypeCreate($request, $response);
|
||||
|
||||
$responseData = $response->get('');
|
||||
$responseData = $response->getData('');
|
||||
if (!\is_array($responseData)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ final class ApiAttributeController extends Controller
|
|||
return;
|
||||
}
|
||||
|
||||
$attribute = $this->createAttributeFromRequest($request);
|
||||
$type = ContractAttributeTypeMapper::get()->where('id', (int) $request->getData('type'))->execute();
|
||||
$attribute = $this->createAttributeFromRequest($request, $type);
|
||||
$this->createModel($request->header->account, $attribute, ContractAttributeMapper::class, 'attribute', $request->getOrigin());
|
||||
$this->createStandardCreateResponse($request, $response, $attribute);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'اتفافية',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'انكماش',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Smlouva',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Smlouvy',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Kontrakt',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Kontrakter',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Σύμβαση',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Συμβάσεις',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Contrato',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Contrato',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Sopimus',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Sopimukset',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Contracter',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Contrats',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Szerződés',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Szerződések',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Contrarre',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Contratti',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => '契約',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => '契約',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => '계약',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => '계약서',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Kontrakt',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Kontrakter',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Kontrakt',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Kontrakty',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Contrato',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Contratos',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Договор',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Контракты',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Avtal',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Kontrakt',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'สัญญา',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'สัญญา',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Sözleşme',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Sözleşme',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => 'Договір',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => 'Контракти',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -13,17 +13,17 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
return ['ContractManagement' => [
|
||||
'Account' => '#VALUE!',
|
||||
'Account' => '',
|
||||
'AutoRenewal' => '',
|
||||
'Contract' => '合同',
|
||||
'ContractTypes' => '',
|
||||
'Contracts' => '合同',
|
||||
'Costs' => '',
|
||||
'Description' => '',
|
||||
'End' => '#VALUE!',
|
||||
'Files' => '#VALUE!',
|
||||
'End' => '',
|
||||
'Files' => '',
|
||||
'Name' => '',
|
||||
'Overview' => '#VALUE!',
|
||||
'Overview' => '',
|
||||
'Parties' => '',
|
||||
'Start' => '',
|
||||
'Termination' => '',
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ trait ApiControllerAttributeTrait
|
|||
$request->setData('language', ISO639x1Enum::_EN);
|
||||
|
||||
$this->attrModule->apiContractAttributeTypeCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -56,7 +56,7 @@ trait ApiControllerAttributeTrait
|
|||
$request->setData('language', ISO639x1Enum::_DE);
|
||||
|
||||
$this->attrModule->apiContractAttributeTypeL11nCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -76,7 +76,7 @@ trait ApiControllerAttributeTrait
|
|||
$request->setData('country', ISO3166TwoEnum::_DEU);
|
||||
|
||||
$this->attrModule->apiContractAttributeValueCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -95,7 +95,7 @@ trait ApiControllerAttributeTrait
|
|||
$request->setData('country', ISO3166TwoEnum::_DEU);
|
||||
|
||||
$this->attrModule->apiContractAttributeValueCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -114,7 +114,7 @@ trait ApiControllerAttributeTrait
|
|||
$request->setData('country', ISO3166TwoEnum::_DEU);
|
||||
|
||||
$this->attrModule->apiContractAttributeValueCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -133,7 +133,7 @@ trait ApiControllerAttributeTrait
|
|||
$request->setData('country', ISO3166TwoEnum::_DEU);
|
||||
|
||||
$this->attrModule->apiContractAttributeValueCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -151,7 +151,7 @@ trait ApiControllerAttributeTrait
|
|||
$request->setData('type', '1');
|
||||
|
||||
$this->attrModule->apiContractAttributeCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ trait ApiControllerContractTrait
|
|||
$request->setData('type', '1');
|
||||
|
||||
$this->module->apiContractCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -86,7 +86,7 @@ trait ApiControllerContractTrait
|
|||
]);
|
||||
|
||||
$this->module->apiContractDocumentCreate($request, $response);
|
||||
self::assertCount(1, $response->get('')['response']);
|
||||
self::assertCount(1, $response->getDataArray('')['response']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ trait ApiControllerContractTypeTrait
|
|||
$request->setData('language', ISO639x1Enum::_EN);
|
||||
|
||||
$this->typeModule->apiContractTypeCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -70,7 +70,7 @@ trait ApiControllerContractTypeTrait
|
|||
$request->setData('language', ISO639x1Enum::_DE);
|
||||
|
||||
$this->typeModule->apiContractTypeL11nCreate($request, $response);
|
||||
self::assertGreaterThan(0, $response->get('')['response']->id);
|
||||
self::assertGreaterThan(0, $response->getDataArray('')['response']->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user