mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-17 16:58:41 +00:00
bug fixes and subscription improvements
This commit is contained in:
parent
63cf7e8c3b
commit
2eacbaadc0
|
|
@ -674,7 +674,7 @@ final class ApiBillController extends Controller
|
||||||
->where('id', $billTypeId)
|
->where('id', $billTypeId)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$templateId = $billType->defaultTemplate->getId();
|
$templateId = $billType->defaultTemplate?->getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var \Modules\Media\Models\Collection $template */
|
/** @var \Modules\Media\Models\Collection $template */
|
||||||
|
|
@ -806,7 +806,7 @@ final class ApiBillController extends Controller
|
||||||
->where('id', $billTypeId)
|
->where('id', $billTypeId)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$templateId = $billType->defaultTemplate->getId();
|
$templateId = $billType->defaultTemplate?->getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var \Modules\Media\Models\Collection $template */
|
/** @var \Modules\Media\Models\Collection $template */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user