mirror of
https://github.com/Karaka-Management/oms-BusinessExpenses.git
synced 2026-02-18 09:18:41 +00:00
Quick backup before crash
This commit is contained in:
parent
d3f3b3fb7c
commit
f1f886aef8
|
|
@ -71,10 +71,10 @@ final class Installer extends InstallerAbstract
|
||||||
/**
|
/**
|
||||||
* Install fuel type
|
* Install fuel type
|
||||||
*
|
*
|
||||||
* @param ApplicationAbstract $app Application
|
* @param ApplicationAbstract $app Application
|
||||||
* @param array<array{name:string, l11n?:array<string, string>, is_required?:bool, is_custom_allowed?:bool, validation_pattern?:string, value_type?:string, values?:array<string, mixed>}> $attributes Attribute definition
|
* @param array $types Type definition
|
||||||
*
|
*
|
||||||
* @return array<string, array>
|
* @return array
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -132,10 +132,10 @@ final class Installer extends InstallerAbstract
|
||||||
/**
|
/**
|
||||||
* Install fuel type
|
* Install fuel type
|
||||||
*
|
*
|
||||||
* @param ApplicationAbstract $app Application
|
* @param ApplicationAbstract $app Application
|
||||||
* @param array<array{name:string, l11n?:array<string, string>, is_required?:bool, is_custom_allowed?:bool, validation_pattern?:string, value_type?:string, values?:array<string, mixed>}> $attributes Attribute definition
|
* @param array $types Type definition
|
||||||
*
|
*
|
||||||
* @return array<string, array>
|
* @return array
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -565,6 +565,7 @@ final class ApiController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($collection === null) {
|
if ($collection === null) {
|
||||||
|
/** @var \Modules\Media\Models\Collection $collection */
|
||||||
$collection = MediaMapper::getParentCollection($path)->limit(1)->execute();
|
$collection = MediaMapper::getParentCollection($path)->limit(1)->execute();
|
||||||
|
|
||||||
if ($collection->id === 0) {
|
if ($collection->id === 0) {
|
||||||
|
|
@ -702,7 +703,7 @@ final class ApiController extends Controller
|
||||||
{
|
{
|
||||||
if (!empty($val = $this->validateNoteCreate($request))) {
|
if (!empty($val = $this->validateNoteCreate($request))) {
|
||||||
$response->data['expense_note_create'] = new FormValidation($val);
|
$response->data['expense_note_create'] = new FormValidation($val);
|
||||||
$response->header->status = RequestStatusCode::R_400;
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,11 @@ class Expense
|
||||||
|
|
||||||
public string $country = ISO3166TwoEnum::_USA;
|
public string $country = ISO3166TwoEnum::_USA;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->type = new BaseStringL11nType();
|
$this->type = new BaseStringL11nType();
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,11 @@ class ExpenseElement
|
||||||
|
|
||||||
public \DateTime $end;
|
public \DateTime $end;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->type = new BaseStringL11nType();
|
$this->type = new BaseStringL11nType();
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ use Modules\Admin\Models\AccountMapper;
|
||||||
use Modules\Media\Models\MediaMapper;
|
use Modules\Media\Models\MediaMapper;
|
||||||
use Modules\SupplierManagement\Models\SupplierMapper;
|
use Modules\SupplierManagement\Models\SupplierMapper;
|
||||||
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
||||||
|
use phpOMS\Localization\BaseStringL11n;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mapper class.
|
* mapper class.
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ use Modules\Editor\Models\EditorDocMapper;
|
||||||
* @link https://jingga.app
|
* @link https://jingga.app
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*
|
*
|
||||||
* @template T of BaseStringL11n
|
* @template T of Expense
|
||||||
* @extends DataMapperFactory<T>
|
* @extends DataMapperFactory<T>
|
||||||
*/
|
*/
|
||||||
final class ExpenseMapper extends DataMapperFactory
|
final class ExpenseMapper extends DataMapperFactory
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user