mirror of
https://github.com/Karaka-Management/oms-Finance.git
synced 2026-02-13 20:08:41 +00:00
use direct data access for response data
This commit is contained in:
parent
583118b86c
commit
ae6026f976
|
|
@ -71,7 +71,7 @@ final class ApiController extends Controller
|
||||||
public function apiTaxCodeCreate(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
public function apiTaxCodeCreate(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTaxCodeCreate($request))) {
|
if (!empty($val = $this->validateTaxCodeCreate($request))) {
|
||||||
$response->set('tax_code_create', new FormValidation($val));
|
$response->data['tax_code_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
@ -147,7 +147,7 @@ final class ApiController extends Controller
|
||||||
public function apiTaxCodeL11nCreate(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
public function apiTaxCodeL11nCreate(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateTaxCodeL11nCreate($request))) {
|
if (!empty($val = $this->validateTaxCodeL11nCreate($request))) {
|
||||||
$response->set('tax_code_l11n_create', new FormValidation($val));
|
$response->data['tax_code_l11n_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user