@@ -275,7 +275,7 @@ $receipt = new \DigitSoft\Checkbox\Models\Receipts\SellReceipt(
275
275
)
276
276
]
277
277
),
278
- 'admin@gmail.com', // кому надсилати чек на пошту
278
+ new \DigitSoft\Checkbox\Models\Receipts\Delivery([ 'admin@gmail.com']) , // кому надсилати чек на пошту
279
279
new \DigitSoft\Checkbox\Models\Receipts\Payments\Payments([
280
280
new \DigitSoft\Checkbox\Models\Receipts\Payments\CardPaymentPayload( // безготівкова оплата
281
281
40 * 100 // 40 грн
@@ -336,7 +336,7 @@ $receipt = new \DigitSoft\Checkbox\Models\Receipts\SellReceipt(
336
336
)
337
337
]
338
338
),
339
- 'admin@example .com', // кому надсилати чек на пошту
339
+ new \DigitSoft\Checkbox\Models\Receipts\Delivery([ 'admin@gmail .com']) , // кому надсилати чек на пошту
340
340
new \DigitSoft\Checkbox\Models\Receipts\Payments\Payments([ // оплати
341
341
new \DigitSoft\Checkbox\Models\Receipts\Payments\CardPaymentPayload( // безготівкова оплата
342
342
400, // сума оплати 400 = 4 грн
@@ -372,7 +372,7 @@ $saleReceiptResult = $api->receipts()->createSell($receipt): \DigitSoft\Checkbox
372
372
``` php
373
373
$allTaxes = $api->taxes()->all();
374
374
$tax = $allTaxes->getTaxByLabel('Акцизний збір');
375
- $goodTaxes = $allTaxes->getTaxesByLabel('ПДВ ');
375
+ $goodTaxes = $allTaxes->getTaxesByCode('1 '); // ПДВ 20%
376
376
$taxCodes = [];
377
377
378
378
foreach ($goodTaxes->results as $goodTax) {
@@ -444,7 +444,7 @@ $receipt = new \DigitSoft\Checkbox\Models\Receipts\SellReceipt(
444
444
)
445
445
]
446
446
),
447
- 'admin@gmail.com',
447
+ new \DigitSoft\Checkbox\Models\Receipts\Delivery([ 'admin@gmail.com']) ,
448
448
new \DigitSoft\Checkbox\Models\Receipts\Payments\Payments([
449
449
new \DigitSoft\Checkbox\Models\Receipts\Payments\CardPaymentPayload(
450
450
4700
@@ -547,6 +547,7 @@ use DigitSoft\Checkbox\Models\Receipts\Goods\GoodModel;
547
547
use DigitSoft\Checkbox\Models\Receipts\Goods\GoodItemModel;
548
548
use DigitSoft\Checkbox\Models\Receipts\SellReceipt;
549
549
use DigitSoft\Checkbox\Models\Receipts\ServiceReceipt;
550
+ use DigitSoft\Checkbox\Models\Receipts\Delivery;
550
551
551
552
use DigitSoft\Checkbox\Models\Receipts\Payments\Payments;
552
553
use DigitSoft\Checkbox\Models\Receipts\Payments\CardPaymentPayload;
0 commit comments