-
Notifications
You must be signed in to change notification settings - Fork 53
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
MOL-969: Store refund manager metadata in DB #625
Conversation
…ckScorp/Shopware6 into users/vm/MOL-969-refund-manager
`order_line_item_version_id` binary(16) NULL, | ||
`mollie_line_id` VARCHAR(255), | ||
`type` VARCHAR(255), | ||
`reference` VARCHAR(255), |
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.
label
|
||
final class OrderLineItemExtension extends EntityExtension | ||
{ | ||
const ORDER_LINE_ITEM_PROPERTY_NAME = 'refundLineItem'; |
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.
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)); |
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.
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; |
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 todo, dont use edge case as default. but keep for now
No description provided.