Description
Describe the issue
There are many fields in Item Template table that can be set on order to define the defaults for newly created item. A field "Allow Invoice Disc." is a field that exist in a template table since a long time but more recently the field "Subscription Option" has been introduced. The field "Subscription Option" has a default value of "No Subscription". Even if the value in this field should not have an impact on the process when using item template this field gets validated anyway. When this field is validated, it sets the value in the field "Allow Invoice Disc." thus overwriting the default from Item Template. That leads to the wrong result that regardless of the field "Allow Invoice Disc." in Item Template the value of field "Allow Invoice Disc." on Item is always set to true.
Expected behavior
The Item Template can have flag "Allow Invoice Disc." set to false and newly created item should take over this setting from Item Template.
Steps to reproduce
- Create an item template with Allow Invoice Discount set to false
- Create new item based on this template
- Note that the Allow Invoice will remain true
Additional context
No response
I will provide a fix for a bug
- I will provide a fix for a bug