Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] purchase: Extract code from _compute_amount to allow inheritance
Purpose ======= Currently the discount mechanism is not implemented in the purchase module. This limitation is could be avoided if the _compute_amount arguments could be overwritten. While waiting the feature to be implemented in master, we simply introduce a hook method to allow an easy inheritance of the argument values. Closes #11235 PS: Also move compute methods under the fields definition to follow the coding guidelines
- Loading branch information
Showing
1 changed file
with
51 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters