escapeboy / nra-audit-generator
NRA Orders Audit XML File Generator
1.1.1
2022-10-11 15:02 UTC
Requires
- php: ^7.4
- ext-xmlwriter: ^7.4
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2024-11-11 19:40:42 UTC
README
Install
composer require escapeboy/nra-audit-generator
Usage
$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);
Payment types
\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
Return methods
\Audit\ReturnMethods\IBAN::class; //1 \Audit\ReturnMethods\Card::class; //2 \Audit\ReturnMethods\Cash::class; //3 \Audit\ReturnMethods\Other::class; //4
Plugins for popular platforms using this library
If you created a plugin with this library - ping me or create a pull request to be added here.
Other related plugins
- 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