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

[MODINVOICE-554]. Invoices app: Incorrect formula for calculating adjustments, that are included and pro-rated by amount #1563

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

BKadirkhodjaev
Copy link
Contributor

@BKadirkhodjaev BKadirkhodjaev commented Oct 14, 2024

Purpose

Approach

  • Add supplementary Karate tests covering new custom method for VAT adjustment calculation
  • Tested against current invoice, finance and cross-modules tests for any breaking changes

Related issues

…ustments, that are included and pro-rated by amount
@BKadirkhodjaev BKadirkhodjaev requested a review from a team October 14, 2024 12:23
@BKadirkhodjaev BKadirkhodjaev marked this pull request as ready for review October 14, 2024 12:28
"""
* table invoices
| id | invoiceId | currency | adjustments |
| invoiceId1 | invoiceId1 | 'EUR' | invoiceAdjustments |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Two invoices used, first invoice is used to verify the logic for a simple single-line case, while the second invoice for cases with multiple invoice lines being added and/or removed. Both cases should not affect other invoice line adjustments.

@BKadirkhodjaev BKadirkhodjaev merged commit 5fceb46 into master Oct 14, 2024
3 checks passed
BKadirkhodjaev added a commit that referenced this pull request Oct 21, 2024
…ting adjustments, that are included and pro-rated by amount (#1563)"

This reverts commit 5fceb46.
BKadirkhodjaev added a commit that referenced this pull request Oct 22, 2024
* Revert "[MODINVOICE-554-2]. Change invoice total and adjustments total calculation (#1565)"

This reverts commit 32b593c.

* Revert "[MODINVOICE-554]. Invoices app: Incorrect formula for calculating adjustments, that are included and pro-rated by amount (#1563)"

This reverts commit 5fceb46.

* [MODINVOICE-554-revert]. Fix failed tests
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.

3 participants