mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-17 08:48:40 +00:00
more code fixes
This commit is contained in:
parent
e70898dbd5
commit
38c170f64d
|
|
@ -13,13 +13,17 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Modules\Billing\Models\NullBill;
|
use Modules\Billing\Models\NullBill;
|
||||||
|
use Modules\Media\Models\NullCollection;
|
||||||
use phpOMS\Localization\ISO3166NameEnum;
|
use phpOMS\Localization\ISO3166NameEnum;
|
||||||
use phpOMS\Localization\Money;
|
use phpOMS\Localization\Money;
|
||||||
use phpOMS\Stdlib\Base\FloatInt;
|
use phpOMS\Stdlib\Base\FloatInt;
|
||||||
|
|
||||||
/** @var \phpOMS\Views\View $this */
|
/** @var \phpOMS\Views\View $this */
|
||||||
|
|
||||||
require_once $this->data['defaultTemplates']->findFile('.pdf.php')->getAbsolutePath();
|
/** @var \Modules\Media\Models\Collection $collection */
|
||||||
|
$collection = $this->data['defaultTemplates'] ?? new NullCollection();
|
||||||
|
|
||||||
|
require_once $collection->findFile('.pdf.php')->getAbsolutePath();
|
||||||
|
|
||||||
/** @var \Modules\Billing\Models\Bill $bill */
|
/** @var \Modules\Billing\Models\Bill $bill */
|
||||||
$bill = $this->data['bill'] ?? new NullBill();
|
$bill = $this->data['bill'] ?? new NullBill();
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ final class ApiAttributeController extends Controller
|
||||||
->with('type')
|
->with('type')
|
||||||
->where('type/id', $type->id)
|
->where('type/id', $type->id)
|
||||||
->where('ref', (int) $request->getData('ref'))
|
->where('ref', (int) $request->getData('ref'))
|
||||||
->execute();
|
->executeCount();
|
||||||
|
|
||||||
if ($attr > 0) {
|
if ($attr > 0) {
|
||||||
$response->header->status = RequestStatusCode::R_409;
|
$response->header->status = RequestStatusCode::R_409;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user