$mess['create_employee'] = $createEmployeeArray;
}
- $mess['create_write_ons'] = $replacementInvoiceResult;
+ $replacementInvoiceArray = $this->getResortingDoc();
+ $replacementInvoice = $replacementInvoiceArray['replacementInvoice'];
+ $replacementInvoiceResult = $replacementInvoiceArray['replacementInvoiceResult'];
+ $replacementInvoiceIds = $replacementInvoiceArray['replacementInvoiceIds'];
+
+ if (!empty($replacementInvoiceResult)) {
++ $mess['create_resortings'] = $replacementInvoiceResult;
+ }
+
// $mess['delete_employee'] = [
// ['id' => '06202309-2808-0427-d4c9-100030128795'],
// ['id' => '06202309-2855-0215-4f5d-100043236389']