Skip to content

Commit

Permalink
check invoice handling for store configs
Browse files Browse the repository at this point in the history
  • Loading branch information
vegimcarkaxhija committed Dec 4, 2024
1 parent 9ac1b20 commit 598fa2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Push.php
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,7 @@ protected function saveInvoice()
* @var \Magento\Sales\Model\Order\Payment $payment
*/
$payment = $this->order->getPayment();
$invoiceHandlingConfig = $this->configAccount->getInvoiceHandling();
$invoiceHandlingConfig = $this->configAccount->getInvoiceHandling($this->order->getStore());

if ($invoiceHandlingConfig == InvoiceHandlingOptions::SHIPMENT) {
$payment->setAdditionalInformation(InvoiceHandlingOptions::INVOICE_HANDLING, $invoiceHandlingConfig);
Expand Down

0 comments on commit 598fa2a

Please sign in to comment.