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