-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Expense): add default value for expense fields
- Added `default=Decimal("0.00")` to the expense-related fields in `invoice_total.py` to ensure proper default values are set. - This change prevents issues when the expense fields are left unset, avoiding errors in calculations or summaries. test(total): add tests for expense service logic - Implemented `TestExpenseService` in `test_service.py` to cover and validate the logic associated with handling expenses. - Ensures that the new default behavior for expense fields works as expected, adding more robust test coverage for this functionality.
- Loading branch information
Showing
3 changed files
with
99 additions
and
93 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