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

[WIP]add rate tax in bank_statement_calculate_service of calculation_form #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilya-github
Copy link
Collaborator

No description provided.

def sum_tax
RATE_FIXED_TAX
tax.calculation_forms.first.rate
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not second or last, or tenth?

def sum_tax
(gross_revenue * RATE_USN).round(2)
rate_usn = (tax.calculation_forms.first.rate.to_f / 100).round(2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Зачем тут round?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

округление до двух знаков после запятой.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ilya-github Зачем тут округление до двух знаков после запятой?

@ilya-github ilya-github changed the title add rate tax in bank_statement_calculate_service of calculation_form [WIP]add rate tax in bank_statement_calculate_service of calculation_form Aug 28, 2018
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.

2 participants