composer require dz3n/nra-audit-generator
$shop = new \Audit\Shop($eik, $shopUniqueNumber, $domain, $shopCreatedAt, $isMarketplace, $yearOfOdit, $monthOfOdit);
$order = new \Audit\Order($orderUniqueNumber, $orderDate, $documentNumber, $documentDate, $totalDiscount, $paymentType, $items, $virtualPosNumber, $transactionNumber, $paymentProcessrIdentifier);
$item = new \Audit\Item($name, $quantity, $price, $vatRate = 20);
$order->addItem($item);
$shop->addOrder($order);
$returnedOrder = new \Audit\ReturnedOrder($orderNumber, $orderAmount, $orderDate, $returnMethod);
$shop->addReturnedOrder($returnedOrder);
$xml = (string) \Audit\XmlConverter::convert($shop);
\Audit\PaymentTypes\WithoutPostPayment::class; //1
\Audit\PaymentTypes\VirtualPOSTerminal::class; //2
\Audit\PaymentTypes\WithPostPayment::class; //3
\Audit\PaymentTypes\PaymentService::class; //4
\Audit\PaymentTypes\Other::class; //5
\Audit\PaymentTypes\ReflectedWithReceipt::class; //6
\Audit\ReturnMethods\IBAN::class; //1
\Audit\ReturnMethods\Card::class; //2
\Audit\ReturnMethods\Cash::class; //3
\Audit\ReturnMethods\Other::class; //4
If you created a plugin with this library - ping me or create a pull request to be added here.
- WooCommerce Наредба Н-18 облекчен режим плъгин (PAID)
- Bulgarisation for WooCommerce (FREE)
- Модул за Наредба Н-18 за WooCommerce
- OpenCart 3 модул
Hey! You can send me money on Revolut by following this link: https://pay.revolut.com/katsarov