support for items
This commit is contained in:
BIN
app/Modules/Invoice/.DS_Store
vendored
BIN
app/Modules/Invoice/.DS_Store
vendored
Binary file not shown.
@@ -255,6 +255,6 @@ class GenerateInvoiceExcell
|
||||
*/
|
||||
public function satynAlyjyBankyMaglumatlary(): string
|
||||
{
|
||||
return 'Satyn alyjynyň ' . $this->data->buyer_bank_data;
|
||||
return 'Satyn alyjynyň '.$this->data->buyer_bank_data;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,5 +24,8 @@ class InvoiceExcellData
|
||||
public string $buyer_bank,
|
||||
public string $buyer_bank_address,
|
||||
public string $buyer_bank_data,
|
||||
|
||||
/** @var array<int, InvoiceItem> */
|
||||
public array $items,
|
||||
) {}
|
||||
}
|
||||
|
||||
20
app/Modules/Invoice/Data/InvoiceItem.php
Normal file
20
app/Modules/Invoice/Data/InvoiceItem.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Modules\Invoice\Data;
|
||||
|
||||
class InvoiceItem
|
||||
{
|
||||
public function __construct(
|
||||
public string $name,
|
||||
public int|string $unit,
|
||||
public int $quantity,
|
||||
public int|float $unit_price,
|
||||
public null|int|float $vat,
|
||||
public null|int|float $excludingVat,
|
||||
public null|int|float $vat_percentage,
|
||||
public null|int|float $vat_tmt,
|
||||
public int|float|string $total,
|
||||
) {
|
||||
// ...
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user