Skip to content

Update Decline.php - #147

Open
Dimitrios Saltaouras (dimitriss93) wants to merge 2 commits into
forter:masterfrom
dimitriss93:master
Open

Dimitrios Saltaouras (dimitriss93) wants to merge 2 commits into
forter:masterfrom
dimitriss93:master

Conversation

@dimitriss93

Copy link
Copy Markdown

Fix invoice initialisation issue.
The invoice was initialised by direct Model of Magento\Sales\Model\Order\Invoice. This results to the object keeping some data between different loops. To properly resolve the issue the InvoiceFactory should be used in order to create a fresh invoice model in each loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant