);
foreach ($result["created_resortings"] as $arr) {
if (!empty($arr["id"])) {
- $replacementInvoice = ReplacementInvoice::findOne(['guid' => $arr["arr"]]);
+ $replacementInvoice = ReplacementInvoice::findOne(['guid' => $arr["id"]]);
}
if (!empty($replacementInvoice)) {
if ($replacementInvoice->getErrors()) {
LogService::apiErrorLog(
json_encode(
- ["error_id" => 4.55, "error" => $replacementInvoice->getErrors()],
+ ["error_id" => 4.555, "error" => $replacementInvoice->getErrors()],
JSON_UNESCAPED_UNICODE
)
);