-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce budget on cost estimate validation #68
Enforce budget on cost estimate validation #68
Conversation
I discussed this with @yvaucher and @rdeheele. These tests are long flows taken from logistic_requisition before logistic_budget was split out, that check functionality of logistic_budget that is not there anymore (we removed the old constraints). We did not notice the problem because the only assertion was disabled to work around a bug in the core, recently fixed. For the new functionality I will not recover these tests, as they are not really relevant here, and add new ones, more isolated.
That way I can read and write only attributes of the real logistic source.
So that it is consistent with the same field on the logistic request. Make a test stricter to drive this change.
96c16ee
to
26dddaa
Compare
If some module enables sale exceptions (like logistic_budget), the integration tests of logistic_requisition will fail. Disable the check in the tests, because it is irrelevant to the module.
fcf8cef
to
3e124fc
Compare
A line of a logistic request can have a budget and a pre-approval by a budget | ||
holder and a finance officer. | ||
|
||
The creation of a cost estimate can be done without approval of with a budget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"of with" -> parse error.
nice test refactoring work. 👍 once the minor things in the README are fixed. |
readme fixed |
👍 |
@@ -0,0 +1,11 @@ | |||
Logisitic budget | |||
================ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Logisitic/Logistics/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Note: travis red build seems unrelated: pylint crashes with The last commit changes only the readme, the one before is green. |
👍 |
…validation Enforce budget on cost estimate validation
This work is intended to bring the enforcement of the budget to the cost estimate validation.
Because cost estimates are... estimates, it is too strict to enforce the budget on the creation (that was disabled already). Instead, we check when the estimate is validated into a logistic order.