Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
firebed committed Jun 21, 2024
1 parent 7f5d2ff commit 8a65ab6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,41 @@ This package provides an expressive, fluent interface to ΑΑΔΕ myDATA invoici

All documentation is available 👉 [on our documentation site](https://docs.invoicemaker.gr/getting-started)

## v5 Features

- Ability to "squash" invoice rows `$invoice->squashInvoiceRows()`.
> Ο Πάροχος ηλεκτρονικής τιμολόγησης και τα ERP διαβιβάζουν υποχρεωτικά μόνο τη σύνοψη
γραμμών και χαρακτηρισμών των παραστατικών και όχι αναλυτικά τις γραμμές. [Δείτε Σύνοψη Γραμμών Παραστατικού](/docs/squashing-invoice-rows) για περισσότερες λεπτομέρειες.
- Ability to validate invoices against xsd files before sending them to myDATA.
- `$invoice->validate()`.
- Ability to preview invoice xml before sending it to myDATA.
- `$invoice->toXml()`.
- Ability to populate model attributes within constructor by using **<u>mixed</u>** array values as parameter.
```php
use Firebed\AadeMyData\Models\InvoiceDetails;
use Firebed\AadeMyData\Enums\RecType;
use Firebed\AadeMyData\Enums\IncomeClassificationType;
use Firebed\AadeMyData\Enums\IncomeClassificationCategory;

new InvoiceDetails([
'lineNumber' => 1,
'netValue' => 5,
'recType' => RecType::TYPE_2,
'incomeClassification' => [
[
'classificationType' => IncomeClassificationType::E3_561_001,
'classificationCategory' => IncomeClassificationCategory::CATEGORY_1_1,
'amount' => '5'
]
]
])
```
- Model setters are now fluent (chainable).
- `$invoice->setIssuer(...)->setCounterpart(...)`.
- New methods: Invoice::setTaxesTotals, Invoice::setOtherTransportDetails.
- Implemented `add_` methods to add an amount to InvoiceDetails and Classifications attributes (e.g. `$row->addNetValue(5)`, `$row->addVatAmount(1.2)` etc).
- Implemented endpoints for electronic invoice providers (Πάροχοι Ηλεκτρονικής Τιμολόγησης).

## Requirements

| Version | PHP | myDATA | Support |
Expand Down
2 changes: 1 addition & 1 deletion docs/squashing-invoice-rows.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### Σύνοψη Γραμμών

Για τη σύνοψη των γραμμών του παραστατικού αρκεί να καλέσετε τη μέθοδο `squashInvoiceRows` της κλάσης `Invoice`.
Η διαδικασία σύνοψης θα αντικαταστήσει τις λεπτομέρειες των γραμμών με τις συνολικές τους τιμές.
Η διαδικασία σύνοψης θα αντικαταστήσει τις γραμμές με τις συνολικές τους τιμές.

```php
use Firebed\AadeMyData\Models\Invoice;
Expand Down

0 comments on commit 8a65ab6

Please sign in to comment.