Remove subfleet_expenses and combine into main expenses table; select expense type on subfleet #130 #136
This commit is contained in:
@@ -61,6 +61,7 @@ class JournalRepository extends BaseRepository implements CacheableInterface
|
||||
'currency' => config('phpvms.currency'),
|
||||
'memo' => $memo,
|
||||
'post_date' => $post_date ?? Carbon::now(),
|
||||
'transaction_group' => $transaction_group,
|
||||
];
|
||||
|
||||
if($reference !== null) {
|
||||
@@ -68,11 +69,6 @@ class JournalRepository extends BaseRepository implements CacheableInterface
|
||||
$attrs['ref_class_id'] = $reference->id;
|
||||
}
|
||||
|
||||
if($transaction_group) {
|
||||
$transaction_group = str_replace(' ', '_', $transaction_group);
|
||||
$attrs['transaction_group'] = $transaction_group;
|
||||
}
|
||||
|
||||
try {
|
||||
$transaction = $this->create($attrs);
|
||||
} catch (ValidatorException $e) {
|
||||
|
||||
Reference in New Issue
Block a user