Programmatically close an RMA?
-
07-03-2021 - |
Question
I've been poking around the RMA class file to try and find a way to close it, and it would seem that simply running $rma->close();
should be enough, but that fails without displaying an error.
Has anyone found another way to close an RMA through PHP?
Solution
A simple mistake, seeing as there was no example code I could follow and I was just going off what I read in the class file, I failed to realize that you needed to run ->save()
after closing the RMA.
The final line looks like this:
$rma->close()->save();
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange