generated from MITLibraries/python-cli-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why these changes are being introduced: PO lines were pulled from Alma where the fund_distribution node in the object contained a fund with empty strings for values like 'amount.sum'. This threw an error when attemping to convert to a Decimal. Default behavior is to return '$0.00' when a price cannot be determined from the PO line, which will extend to this scenario. How this addresses that need: * get_total_price_from_fund_distribution is updated to handle a fund entry with empty strings, and treat them as '$0.00' Side effects of this change: * Emails will successfully generate with '$0.00' reported when the fund distribution information is empty strings Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/IN-1127
- Loading branch information
Showing
3 changed files
with
30 additions
and
9 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
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
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