first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
use KupShop\POSBundle\Util\PosOrderUtil;
class PosInvoice extends Payment
{
public static $name = '[Pokladna] Platba fakturou';
protected ?string $defaultIcon = '../../common/static/payments/prodejna_hotove.svg';
public $class = 'PosInvoice';
public $method;
protected $pay_method = Payment::METHOD_INVOICE;
public function createPayment($session, $price = null, $data = [])
{
$this->order->changeStatus(
PosOrderUtil::getHandledOrderStatus(),
'Vytvořeno v pokladně '.date(\Settings::getDateFormat().' '.\Settings::getTimeFormat(), time()),
false,
);
return true;
}
public static function isEnabled($className)
{
return findModule(Modules::NEW_POS);
}
}