Skip to content

Dev 6704/tax not persisted magento objects#15

Merged
GusOhnesorge merged 5 commits intomasterfrom
dev-6704/tax-not-persisted-magento-objects
Jan 26, 2026
Merged

Dev 6704/tax not persisted magento objects#15
GusOhnesorge merged 5 commits intomasterfrom
dev-6704/tax-not-persisted-magento-objects

Conversation

@GusOhnesorge
Copy link
Contributor

@GusOhnesorge GusOhnesorge commented Jan 21, 2026

DEV-6704

  • Persists tax info to orders to be stored in magento
  • updates our custom mocks for magento objects to be used in tests
  • test persisting tax on mock objects

@GusOhnesorge GusOhnesorge requested a review from a team January 21, 2026 22:34
Model/Tax.php Outdated
// Calculate base tax amount (using same value as baseTaxDetail will be set to)
$baseTaxAmount = $taxAmount;
$baseTaxAmountPer = $baseTaxAmount / $quoteItem->getQty();

Copy link
Contributor

Choose a reason for hiding this comment

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

What if getQty returns zero?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add test cases for this as well?

@GusOhnesorge GusOhnesorge merged commit a25bac1 into master Jan 26, 2026
7 checks passed
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