Skip to content

Commit

Permalink
pishps314 UUID fix (#837)
Browse files Browse the repository at this point in the history
* PISHPS-314: Added refund credit notes

* PISHPS-314: cypress test; fixed bug for refunds with no line items

* PISHPS-314: removed usage of fromStringToHex with fromBytesToHex
  • Loading branch information
m-muxfeld-diw authored Sep 16, 2024
1 parent 84c837c commit 5513830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/Refund/RefundCreditNoteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public function addCreditNoteToOrder(string $orderId, string $refundId, array $l
$totalPrice *= -1;
$unitPrice *= -1;
$data['lineItems'][] = [
'id' => Uuid::fromStringToHex($lineItemId),
'identifier' => Uuid::fromStringToHex($lineItem->getIdentifier()),
'id' => Uuid::fromBytesToHex(md5($lineItemId, true)), #@todo remove once 6.4 reached end of life
'identifier' => Uuid::fromBytesToHex(md5($lineItem->getIdentifier(), true)),#@todo remove once 6.4 reached end of life
'quantity' => $quantity,
'label' => sprintf('%s%s%s', $this->prefix, $lineItem->getLabel(), $this->suffix),
'type' => LineItem::CREDIT_LINE_ITEM_TYPE,
Expand Down

0 comments on commit 5513830

Please sign in to comment.