forked from mage-os/mirror-commerce-data-export
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEE-624: Fix credit memo comments are not being extracted (#358)
* MDEE-624: change creditmemo adjustment to use base currency
- Loading branch information
Showing
6 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
SalesOrdersDataExporter/Model/Provider/CreditMemoComment.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Magento\SalesOrdersDataExporter\Model\Provider; | ||
|
||
class CreditMemoComment | ||
{ | ||
/** | ||
* Getting credit memo comments. | ||
* | ||
* @param array $values | ||
* @return array | ||
*/ | ||
public function get(array $values): array | ||
{ | ||
$output = []; | ||
foreach ($values as $group) { | ||
foreach ($group as $creditMemo) { | ||
$output[] = [ | ||
'entityId' => $creditMemo['entityId'], | ||
'creditMemoComments' => $creditMemo['comment'], | ||
]; | ||
} | ||
} | ||
return $output; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters