Skip to content

Commit

Permalink
Release v3.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Oct 1, 2024
1 parent 623d7d2 commit c11373b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [v3.1.0] - 2024-10-01

### Added
- New setting for configuring the filename of the invoice document in the order confirmation email

## [v3.0.1] - 2024-09-28

### Fixed
Expand Down Expand Up @@ -88,6 +93,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- PDF file generated from order data with possibility to adjust some of the fields and regenerate the invoice file
- Invoice generated in Shop's main language (if translation available)

[v3.1.0]: https://github.com/Fresh-Advance/Invoice/compare/v3.0.1...v3.1.0
[v3.0.1]: https://github.com/Fresh-Advance/Invoice/compare/v3.0.0...v3.0.1
[v3.0.0]: https://github.com/Fresh-Advance/Invoice/compare/v2.2.0...v3.0.0
[v2.2.0]: https://github.com/Fresh-Advance/Invoice/compare/v2.1.0...v2.2.0
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Invoice signer person
* PDF Invoice file generated in shop Default language
* Currently we have DE, EN and LT translations available. Feel free to add yours.
* PDF Invoice can be automatically generated and attached to order confirmation email
* Invoice filename configurable through settings
* Total sum shown in words in the invoice.
* Only Twig shop installations supported
* Tested with:
Expand Down Expand Up @@ -70,6 +72,16 @@ If so, create the file `var/configuration/shops/1/template_extension_chain.yaml`
- oe_moduletemplate(please put your module id instead of the module template example)
```
### More information you might need for the template
The order variable in the template is the Order model object, so you can access all its fields and methods.
Some examples you might need for achieving the desired result:
* Customer number: {{ order.getOrderUser().getFieldData('oxcustnr') }}
* Payment method: {{ order.getPaymentType().oxpayments__oxdesc.value }}
* Order net sum: {{ order.getOrderNetSum() }}
## License
Please make sure you checked the License before using the module. License
Expand Down
8 changes: 7 additions & 1 deletion metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'en' => 'Invoice module for OXID eShop.',
],
'thumbnail' => 'logo.png',
'version' => '3.0.1',
'version' => '3.1.0',
'author' => 'Anton Fedurtsya',
'email' => '[email protected]',
'url' => 'https://github.com/Fresh-Advance',
Expand Down Expand Up @@ -114,6 +114,12 @@
'type' => 'bool',
'value' => false
],
[
'group' => 'fa_invoice_emails',
'name' => \FreshAdvance\Invoice\Settings\ModuleSettings::SETTING_INVOICE_ON_ORDER_EMAIL_FILENAME,
'type' => 'str',
'value' => 'invoice.pdf',
],
],
'events' => [
'onActivate' => '\FreshAdvance\Invoice\Transition\Core\Events::onActivate',
Expand Down

0 comments on commit c11373b

Please sign in to comment.