$replacementInvoiceElem->send_at = date('Y-m-d H:i:s');
$replacementInvoiceElem->save();
if ($replacementInvoiceElem->getErrors()) {
- LogService::apiErrorLog(json_encode(["error_id" => 2.5, "error" => $replacementInvoiceElem->getErrors()], JSON_UNESCAPED_UNICODE));
+ LogService::apiErrorLog(json_encode(["error_id" => 4.5, "error" => $replacementInvoiceElem->getErrors()], JSON_UNESCAPED_UNICODE));
}
}
} catch (Exception $e3) {
private function getResortingDoc(): array
{
$replacementInvoice = [];
- $replacementInvoicesIds = [];
+ $replacementInvoiceIds = [];
$replacementInvoiceResult = [];
try {
->all();
if (!empty($replacementInvoice)) {
- $replacementInvoicesIds = array_column($replacementInvoice, 'id');
+ $replacementInvoiceIds = array_column($replacementInvoice, 'id');
$shiftTransferIds = array_column($replacementInvoice, 'shift_transfer_id');
$products = EqualizationRemains::find()
} catch (Exception $e3) {
file_put_contents(self::OUT_DIR . '/log_created_replacement_invoice_error.txt', PHP_EOL . date("d.m.Y H:i:s", time()) . $e3->getMessage() . ' file: ' . $e3->getFile() . ' line: ' . $e3->getLine(), FILE_APPEND);
}
- return compact('replacementInvoice', 'replacementInvoicesIds', 'replacementInvoiceResult');
+ return compact('replacementInvoice', 'replacementInvoiceIds', 'replacementInvoiceResult');
}