|
|
@@ -120,8 +120,8 @@ class U8ThirdPartyService extends Service
|
|
|
$mainId = $templateRow['ID'];
|
|
|
|
|
|
// 2. 存货管控校验(批次/保质期)
|
|
|
- list($status, $msg) = $service->checkInventoryControl(array_column($data['detail'], 'materialCode'));
|
|
|
- if (!$status) return [false, $msg];
|
|
|
+// list($status, $msg) = $service->checkInventoryControl(array_column($data['detail'], 'materialCode'));
|
|
|
+// if (!$status) return [false, $msg];
|
|
|
|
|
|
$insertData = [];
|
|
|
$rowNo = 1;
|
|
|
@@ -243,8 +243,8 @@ class U8ThirdPartyService extends Service
|
|
|
$mainId = $templateRow['ID'];
|
|
|
|
|
|
// 2. 存货管控校验(批次/保质期)
|
|
|
- list($status, $msg) = $service->checkInventoryControl(array_column($data['detail'], 'materialCode'));
|
|
|
- if (!$status) return [false, $msg];
|
|
|
+// list($status, $msg) = $service->checkInventoryControl(array_column($data['detail'], 'materialCode'));
|
|
|
+// if (!$status) return [false, $msg];
|
|
|
|
|
|
$insertData = [];
|
|
|
$rowNo = 1;
|
|
|
@@ -314,13 +314,13 @@ class U8ThirdPartyService extends Service
|
|
|
$materialOut["Data"]["iBody"][] = [
|
|
|
"iRowNo" => $index + 1,
|
|
|
"cInvCode" => $item['cInvCode'],
|
|
|
- "cBatch" => $item['cBatch'], // 批号
|
|
|
+ "cBatch" => $item['cBatch'] ?? null, // 批号
|
|
|
"iQuantity" => $qty, // 实际出库数量
|
|
|
"iNQuantity" => $qty, // 实收数量
|
|
|
"iinvexchrate" => (float)($item['iinvexchrate'] ?? 1),
|
|
|
"iMaIDs" => $item['AutoID'],
|
|
|
- "dMadeDate" => $item['dMadeDate'], // 生产日期
|
|
|
- "dVDate" => $item['dVDate'], // 失效日期
|
|
|
+ "dMadeDate" => $item['dMadeDate'] ?? null, // 生产日期
|
|
|
+ "dVDate" => $item['dVDate'] ?? null, // 失效日期
|
|
|
'cFree1' => $item['cFree1'],
|
|
|
'cFree2' => $item['cFree2'],
|
|
|
];
|
|
|
@@ -435,8 +435,8 @@ class U8ThirdPartyService extends Service
|
|
|
$mainId = $templateRow['ID'];
|
|
|
|
|
|
// 2. 存货管控校验(批次/保质期)
|
|
|
- list($status, $msg) = $service->checkInventoryControl(array_column($data['detail'], 'materialCode'));
|
|
|
- if (!$status) return [false, $msg];
|
|
|
+// list($status, $msg) = $service->checkInventoryControl(array_column($data['detail'], 'materialCode'));
|
|
|
+// if (!$status) return [false, $msg];
|
|
|
|
|
|
$insertData = [];
|
|
|
$rowNo = 1;
|