-
Notifications
You must be signed in to change notification settings - Fork 71
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
Refunding shipments with taxes #242
Refunding shipments with taxes #242
Conversation
a3e2a6c
to
fdf0a3d
Compare
This PR was merged into the 1.9-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | after #12116 and associated with Sylius/RefundPlugin#242 | License | MIT Commits ------- 066364b [Behat] Reproduce error with dirty entity c849cde [OrderProcessor] Fix clearing tax adjustments 2060b09 [Behat] Add different scenario to cover issue with clearing tax adjustments
'Sylius\RefundPlugin\Migrations' => [ | ||
'Sylius\Bundle\CoreBundle\Migrations', | ||
'Sylius\Bundle\AdminApiBundle\Migrations', | ||
], |
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.
Maybe we should add functional test for this?
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.
We could, but not in this PR imo
$unitTaxAdjustment->setDetails([ | ||
'taxRateCode' => $taxRate->getCode(), | ||
'taxRateName' => $taxRate->getName(), | ||
'taxRateAmount' => $taxRate->getAmount(), | ||
]); |
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.
As previously it seems like an obvious candidate to have keys as consts + creation of this structure could be extracted to separate service
…ustment and making shipment adjustable
762b948
to
4336015
Compare
e76b710
to
ce19c38
Compare
…adee) This PR was merged into the 1.9-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | yes? | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | after #12116 | License | MIT According to Sylius/RefundPlugin#242 (comment) Commits ------- 60cc71d [Migrations] Use adding SQL instead of query execution
{ | ||
parent::__construct(); | ||
|
||
/** @var ArrayCollection<array-key, BaseAdjustmentInterface> $this->adjustments */ |
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.
Probably a minor thing, but BaseAdjustmentInterface
does not exist in the namespaces
Thanks, Grzegorz! 🥇 |
Partially fixes #110