mirror of
https://github.com/Karaka-Management/oms-InvestmentManagement.git
synced 2026-02-16 12:18:41 +00:00
update
This commit is contained in:
parent
2ec88051ec
commit
f9aaadf3f6
|
|
@ -98,7 +98,7 @@ final class ApiController extends Controller
|
||||||
$investment = new Investment();
|
$investment = new Investment();
|
||||||
$investment->name = $request->getDataString('name') ?? '';
|
$investment->name = $request->getDataString('name') ?? '';
|
||||||
$investment->description = $request->getDataString('description') ?? '';
|
$investment->description = $request->getDataString('description') ?? '';
|
||||||
$investment->status = (int) ($request->getDataInt('status') ?? InvestmentStatus::DRAFT);
|
$investment->status = $request->getDataInt('status') ?? InvestmentStatus::DRAFT;
|
||||||
//$investment->type = new NullBaseStringL11nType((int) ($request->getDataInt('type') ?? 0));
|
//$investment->type = new NullBaseStringL11nType((int) ($request->getDataInt('type') ?? 0));
|
||||||
$investment->description = $request->getDataString('description') ?? '';
|
$investment->description = $request->getDataString('description') ?? '';
|
||||||
$investment->unit = $request->getDataInt('unit') ?? $this->app->unitId;
|
$investment->unit = $request->getDataInt('unit') ?? $this->app->unitId;
|
||||||
|
|
@ -258,7 +258,7 @@ final class ApiController extends Controller
|
||||||
virtualPath: $path,
|
virtualPath: $path,
|
||||||
pathSettings: PathSettings::FILE_PATH,
|
pathSettings: PathSettings::FILE_PATH,
|
||||||
hasAccountRelation: false,
|
hasAccountRelation: false,
|
||||||
readContent: (bool) ($request->getData('parse_content') ?? false)
|
readContent: $request->getDataBool('parse_content') ?? false
|
||||||
);
|
);
|
||||||
|
|
||||||
$collection = null;
|
$collection = null;
|
||||||
|
|
@ -706,7 +706,7 @@ final class ApiController extends Controller
|
||||||
virtualPath: $path,
|
virtualPath: $path,
|
||||||
pathSettings: PathSettings::FILE_PATH,
|
pathSettings: PathSettings::FILE_PATH,
|
||||||
hasAccountRelation: false,
|
hasAccountRelation: false,
|
||||||
readContent: (bool) ($request->getData('parse_content') ?? false)
|
readContent: $request->getDataBool('parse_content') ?? false
|
||||||
);
|
);
|
||||||
|
|
||||||
$collection = null;
|
$collection = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user