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

MOL-969: Store refund manager metadata in DB #625

Merged

Conversation

BlackScorp
Copy link
Collaborator

No description provided.

`order_line_item_version_id` binary(16) NULL,
`mollie_line_id` VARCHAR(255),
`type` VARCHAR(255),
`reference` VARCHAR(255),
Copy link
Collaborator

Choose a reason for hiding this comment

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

label


final class OrderLineItemExtension extends EntityExtension
{
const ORDER_LINE_ITEM_PROPERTY_NAME = 'refundLineItem';
Copy link
Collaborator

Choose a reason for hiding this comment

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

mollieRefundItem wäre evtl sicherer?

*/
public function extendFields(FieldCollection $collection): void
{
$collection->add(new OneToOneAssociationField(self::ORDER_LINE_ITEM_PROPERTY_NAME, 'id', 'order_line_item_id', RefundItemDefinition::class));
Copy link
Collaborator

Choose a reason for hiding this comment

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

attention partial refunds
1 line item can be in multiple mollie line items

@@ -379,20 +389,21 @@ private function convertToRefundItems(RefundRequest $request, OrderEntity $order

foreach ($request->getItems() as $requestItem) {
$mollieLineID = '';
$shopwareReferenceID = '';

$shopwareReferenceID = RoundingDifferenceFixer::DEFAULT_TITLE;
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe todo, dont use edge case as default. but keep for now

@boxblinkracer boxblinkracer merged commit 4e3f5fb into mollie:master Sep 27, 2023
16 of 17 checks passed
@BlackScorp BlackScorp deleted the users/vm/MOL-969-refund-manager branch October 9, 2024 11:11
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