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
|
|
@ -72,9 +72,9 @@ final class Installer extends InstallerAbstract
|
|||
* Install fuel type
|
||||
*
|
||||
* @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
|
||||
*/
|
||||
|
|
@ -133,9 +133,9 @@ final class Installer extends InstallerAbstract
|
|||
* Install fuel type
|
||||
*
|
||||
* @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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -565,6 +565,7 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
if ($collection === null) {
|
||||
/** @var \Modules\Media\Models\Collection $collection */
|
||||
$collection = MediaMapper::getParentCollection($path)->limit(1)->execute();
|
||||
|
||||
if ($collection->id === 0) {
|
||||
|
|
|
|||
|
|
@ -67,6 +67,11 @@ class Expense
|
|||
|
||||
public string $country = ISO3166TwoEnum::_USA;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->type = new BaseStringL11nType();
|
||||
|
|
|
|||
|
|
@ -66,6 +66,11 @@ class ExpenseElement
|
|||
|
||||
public \DateTime $end;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->type = new BaseStringL11nType();
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ use Modules\Admin\Models\AccountMapper;
|
|||
use Modules\Media\Models\MediaMapper;
|
||||
use Modules\SupplierManagement\Models\SupplierMapper;
|
||||
use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
||||
use phpOMS\Localization\BaseStringL11n;
|
||||
|
||||
/**
|
||||
* mapper class.
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ use Modules\Editor\Models\EditorDocMapper;
|
|||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @template T of BaseStringL11n
|
||||
* @template T of Expense
|
||||
* @extends DataMapperFactory<T>
|
||||
*/
|
||||
final class ExpenseMapper extends DataMapperFactory
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user