Skip to content

Commit

Permalink
ENGCOM-5366: [Backport] Fix issue with incorrect payment translation …
Browse files Browse the repository at this point in the history
…in sales emails #23438
  • Loading branch information
sivaschenko authored Jul 9, 2019
2 parents 524a54d + 9ea2ab0 commit 25ae890
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public function send(
$creditmemo->setSendEmail($this->identityContainer->isEnabled());

if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
'creditmemo' => $creditmemo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public function __construct(
public function send(Creditmemo $creditmemo, $notify = true, $comment = '')
{
$order = $creditmemo->getOrder();
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
'creditmemo' => $creditmemo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function send(Creditmemo $creditmemo, $forceSyncMode = false)

if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
$order = $creditmemo->getOrder();
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public function __construct(
public function send(Invoice $invoice, $notify = true, $comment = '')
{
$order = $invoice->getOrder();
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
'invoice' => $invoice,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function send(Invoice $invoice, $forceSyncMode = false)

if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
$order = $invoice->getOrder();
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public function __construct(
*/
public function send(Order $order, $notify = true, $comment = '')
{
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
'comment' => $comment,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public function __construct(
public function send(Shipment $shipment, $notify = true, $comment = '')
{
$order = $shipment->getOrder();
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
'shipment' => $shipment,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function send(Shipment $shipment, $forceSyncMode = false)

if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
$order = $shipment->getOrder();
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public function send(
$invoice->setSendEmail($this->identityContainer->isEnabled());

if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
'invoice' => $invoice,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public function send(
$shipment->setSendEmail($this->identityContainer->isEnabled());

if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
$this->identityContainer->setStore($order->getStore());

$transport = [
'order' => $order,
'shipment' => $shipment,
Expand Down

0 comments on commit 25ae890

Please sign in to comment.