Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.7.1
-
Component/s: None
-
Labels:None
Description
Currently, the quotation system piggy backs off of invoice templates as a special case within the code. This is causing issues for users have custom invoice templates as they have not been updated to handle this piggy backing behavior. Let's make a few changes to handle this case better.
- Add a public flag property to the InvoiceTemplate class for whether the template supports quotations and default it to false
- Set that property to true for the invoice templates we ship with
- On the quote add and edit page add a warning if the selected invoice template doesn't support quotes stating that the template needs to be updated and the default invoice template will be used until then
- When building a quote check if the selected invoice template supports quotes and if not use the default