Releases: remp2020/crm-invoices-module
Releases · remp2020/crm-invoices-module
0.38.0
- Added
ProformaInvoice::GATEWAY_CODE
constant to reference the gateway in other modules. remp/crm#2189 - Fixed directory names to follow PSR-4 standard. Namespaces weren't changed (no breaking change). remp/crm#2228
- Fixed generating the invoice number even when invoice cannot be generated due the missing address for invoice. remp/crm#2259
- Added hungarian translations. remp/crm#2255
- Fixed possibility to download receipts (not invoices) in CRM admin. remp/helpdesk#1073
0.35.0
0.34.0
0.33.0
- BREAKING: Moved constant
InvoiceGenerator::CAN_GENERATE_DAYS_LIMIT
toInvoicesRepository::PAYMENT_INVOICEABLE_PERIOD_DAYS
. remp/crm#1267 - BREAKING: Command
SendInvoiceCommand
fails if invoice wasn't generated. There is no point of sending empty email from "send invoice" command. remp/crm#1267 - Moved
Invoices:invoiceDetails
page implementation toInvoiceDetailsWidget
. With this change we can reuse invoice details form in multiple places.InvoiceDetailsWidget
attaches to newinvoices.frontend.invoice_details
widget placeholder created inInvoices:invoiceDetails
page, so page stays the same. remp/crm#1818 - Changed checking if invoice can be generated or is within invoiceable period from custom conditions to unified
InvoicesRepository->isPaymentInvoiceable()
andInvoicesRepository->paymentInInvoiceablePeriod()
methods.- Affected are
InvoicesPresenter->actionDownloadInvoice()
,InvoicesAdminPresenter->actionDownloadInvoice()
andInvoiceButton
component. - No breaking change in functionality. Unified condition checking if payment is in invoiceable period is more precise (see commit message for detailed explanation). remp/crm#1267
- Affected are
- Removed redundant check if invoicing was disabled in
InvoiceGenerator->renderInvoiceMailAttachment()
. Conditions if payment is invoiceable are checked later ingenerate()
. Invoice is now attached to email also if it was generated but user disabled invoicing (after generation and) before email was sent. remp/crm#1267- Added handling for exceptions from
InvoiceGenerator->renderInvoiceMailAttachment()
where it was missing.
- Added handling for exceptions from
0.31.0
- Added
PaymentNotInvoiceableException
to avoid generating errors when sending mails with linked payments that are invoiceable (common in Scenarios). remp/crm#1829 - Added
HasInvoiceCriteria
scenario builder criteria which checks if payment has already generated invoice. remp/crm#1227
0.30.0
0.29.0
- BREAKING: Bump minimal PHP version to 7.3.
- Fixed a bug that prevented to export invoices (accounting). It was caused by invoices which were generated but belonged to account which meanwhile disabled invoicing. This flag should be followed only when generating new invoice. Export has to contain all already generated invoices. remp/crm#1719
- Refactored namespaces and folders to be PSR-4 compatible.
- Changed use of named temporary files and directory used by
InvoiceGenerator
andInvoiceZipGenerator
(export of invoices) totmpfile()
. remp/crm#1720 - Added
InvoicesAdmin:edit
view to edit invoice details and items. remp/crm#552 - Changed
InvoiceButton
for admin if there is invoice for payment to download. Changed to dropdown with options to download or edit invoice. remp/crm#552
0.28.0
- Added ability to specify which Hermes trigger (resulting in application emitting
NotificationEvent
, e.g. by a scenario) has to be present inNotificationContext
to attach a PDF invoice to the notification.
List of Hermes message types can be specified inPreNotificationEventHandler#enableForNotificationHermesTypes
method. remp/crm#1654