cqp 3 hari lalu
induk
melakukan
1906e32e02
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      app/Service/TestService.php

+ 3 - 1
app/Service/TestService.php

@@ -705,7 +705,9 @@ class TestService extends Service
             "iRowNo"    => 1,
             "cInvCode"      => $data['material_code'],
             "iQuantity"     => $qty,
+            "iNQuantity"     => $qty,
             "iPOsID" => $data['detail_id'] ?? 0,
+            "cPOID" => $data['cMemo'] ?? null,
             "iOriTaxCost"   => (float)$taxUnitPrice, // 原币含税单价
             "iOriCost"      => (float)$iUnitPrice,    // 原币无税单价
             "iOriMoney"     => (float)$iMoney,       // 原币无税金额
@@ -760,7 +762,7 @@ class TestService extends Service
                     "iExchRate"     => $data['iExchRate'] ?? 1.0,
                     "iTaxRate"      => (float)$taxRate,
                     "cExch_Name"    => "人民币",
-                    "cSource"       => "库存",
+                    "cSource"       => "采购订单",
                     "cBusType"      => "普通采购",
                     "cMemo"         => $data['cMemo'] ?? "接口生成",
                     "dDate"         => date("Y-m-d"),