Skip to content

Releases: remp2020/crm-invoices-module

0.38.0

11 Feb 23:10
Compare
Choose a tag to compare
  • 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

25 Oct 12:04
Compare
Choose a tag to compare
  • BREAKING: Bump minimal PHP version to 7.4. remp/crm#2068

0.34.0

06 Oct 11:18
Compare
Choose a tag to compare
  • Fixed redirect issue in case of invalid access to proforma gateway form. remp/crm#2027

0.33.0

23 Aug 12:22
Compare
Choose a tag to compare
  • BREAKING: Moved constant InvoiceGenerator::CAN_GENERATE_DAYS_LIMIT to InvoicesRepository::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 to InvoiceDetailsWidget. With this change we can reuse invoice details form in multiple places. InvoiceDetailsWidget attaches to new invoices.frontend.invoice_details widget placeholder created in Invoices: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() and InvoicesRepository->paymentInInvoiceablePeriod() methods.
    • Affected are InvoicesPresenter->actionDownloadInvoice(), InvoicesAdminPresenter->actionDownloadInvoice() and InvoiceButton 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
  • Removed redundant check if invoicing was disabled in InvoiceGenerator->renderInvoiceMailAttachment(). Conditions if payment is invoiceable are checked later in generate(). 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.

0.31.0

21 May 10:03
Compare
Choose a tag to compare
  • 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

24 Mar 08:59
Compare
Choose a tag to compare
  • Removed global setting of UserDateHelper format. It affected all instances loaded by constructor. Doesn't affect userDate latte macro. remp/crm#1781

0.29.0

02 Mar 13:40
Compare
Choose a tag to compare
  • 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 and InvoiceZipGenerator (export of invoices) to tmpfile(). 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

25 Jan 08:14
Compare
Choose a tag to compare
  • Added ability to specify which Hermes trigger (resulting in application emitting NotificationEvent, e.g. by a scenario) has to be present in NotificationContext to attach a PDF invoice to the notification.
    List of Hermes message types can be specified in PreNotificationEventHandler#enableForNotificationHermesTypes method. remp/crm#1654

0.27.0

07 Jan 12:03
Compare
Choose a tag to compare
  • Changed type of database row invoice_items.text to text (varchar was insufficient and stripped data could break the invoice rendering). remp/crm#1645

0.17.0

27 Jul 21:49
Compare
Choose a tag to compare
  • Fixed issue with not displaying PaymentSuccessInvoiceWidget after payment to users who hadn't previously added invoice address. remp/crm#1374