first commit
This commit is contained in:
31
class/payments/class.PosInvoice.php
Normal file
31
class/payments/class.PosInvoice.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user