Skip to content
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

[8.0][account_budget_variance] Adding new module account_budget_variance #2

Merged
merged 2 commits into from
Jan 12, 2017

Conversation

mikevhe18
Copy link
Contributor

@mikevhe18 mikevhe18 commented Jan 10, 2017

Issue #1

@coveralls
Copy link

coveralls commented Jan 10, 2017

Coverage Status

Changes Unknown when pulling dd10a93 on mikevhe18:account_budget_variance into ** on open-synergy:8.0**.

@codecov-io
Copy link

codecov-io commented Jan 10, 2017

Current coverage is 100% (diff: 100%)

No coverage report found for 8.0 at ccc8e16.

Powered by Codecov. Last update ccc8e16...bc3f01f

"author": "OpenSynergy Indonesia",
"license": "AGPL-3",
"installable": True,
"application": True,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

False


@api.multi
@api.depends('variance_amount', 'planned_amount')
def _compute_variance_percent(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mike ini kenapa ga disatuin aja di satu fungsi dengan _compute_variance_amount?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0da713a on mikevhe18:account_budget_variance into ** on open-synergy:8.0**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0da713a on mikevhe18:account_budget_variance into ** on open-synergy:8.0**.

rec.practical_amount - rec.planned_amount
if rec.variance_amount:
rec.variance_percent =\
(rec.variance_amount / rec.planned_amount)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikevhe18 ike ini ati-ati error division by zero. Klo planned_amountnya == 0 error dia.

Revision

Avoiding division by zero

Avoiding division by zero
@coveralls
Copy link

coveralls commented Jan 11, 2017

Coverage Status

Changes Unknown when pulling bc3f01f on mikevhe18:account_budget_variance into ** on open-synergy:8.0**.

@andhit-r andhit-r merged commit f6a61c2 into open-synergy:8.0 Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants