Browse Source

測試對帳系統資料

gary
Ellin 1 year ago
parent
commit
53ba49b599
  1. 36
      wms/account-receivable-index.php
  2. 48
      wms/rib02-purReceive-submit.php

36
wms/account-receivable-index.php

@ -0,0 +1,36 @@
<?php
include "header.php";
$sql = "SELECT
a.manager,
a2.name,
w.salesid,
a.name,
w.contractno,
w.facilityno,
w.real_arrival_date,
w.tryrun_end_date,
w.delivery_date
from wipwholestatus AS w
left join account AS a
ON w.salesid = a.accountid
left join account AS a2
ON a2.accountid = a.manager
where w.status = '1'
ORDER BY `w`.`delivery_date` DESC;";
$wipwhole_array= mysqli_query($link, $sql);
// $T8_array = mysqli_fetch_all($T8_array, MYSQLI_ASSOC);
foreach ($wipwhole_array as $wip){
// print_r($wip);
// echo "<br>";
}
echo "<br>";
// $sql_depid = "SELECT department_id, name from department";
// $dept_query = mysqli_query($link, $sql_depid);
// $deptype = mysqli_fetch_all($dept_query, MYSQLI_ASSOC);
$sql_contract = "SELECT * FROM salOrderStagePay;";
$contract = $conn->query($sql_contract);
foreach($contract as $cont){
print_r($cont);
echo "<br>";
}

48
wms/rib02-purReceive-submit.php

@ -1,6 +1,6 @@
<?php <?php
include "T8_Authorization.php"; include "T8_Authorization.php";
echo "收貨申請單"; echo "收貨申請單////有問題,要問俊佑";
?> ?>
<script> <script>
@ -22,26 +22,30 @@ echo "收貨申請單";
"name": "purReceivingOrderMaster", "name": "purReceivingOrderMaster",
"rows": [ "rows": [
{ {
"BillNo": "Z001", "BillNo": "Z003",
"BillDate": 20210420, "BillDate": 20210420,
"ReceiveOrgId": "1000", "ReceiveOrgId": "1000",
"OrgId": "1000", "OrgId": "1000",
"DemandOrgId": "1000", "DemandOrgId": "1000",
"TypeId": "RC", "TypeId": "MA",
"BizPartnerId": "Z001", "FromSourceTag":"PO",
"PersonId": "Z001", "FromTransId":"Z003",
"CurrId": "NTD", // "BizPartnerId": "16547907",
"CurrOAmount": 1, // "PersonId": "M0122",
"CurrLAmount": 1, // "CurrId": "TWD",
"ReciveDate": 20210420, // "CurrOAmount": 1,
"DueToId": "Z001", // "CurrLAmount": 1,
"TaxId": "ST005", // "ReciveDate": 20210420,
"DebtorOrgId": "1000", // "DueToId": "Z001",
"DebtorCurrOAmount": 1, // "TaxId": "ST005",
"DebtorCurrLAmount": 1, // "DebtorOrgId": "1000",
"ReceiveCompId": "1000", // "DebtorCurrOAmount": 1,
"DebtorCompId": "1000", // "DebtorCurrLAmount": 1,
"DemandCompId": "1000" // "ReceiveCompId": "1000",
// "DebtorCompId": "1000",
// "DemandCompId": "1000",
"InStoreState":2,
"CurrentState":2
} }
] ]
}, },
@ -49,13 +53,15 @@ echo "收貨申請單";
"name": "purReceivingOrderDetail", "name": "purReceivingOrderDetail",
"rows": [ "rows": [
{ {
"TaxId": "ST005", // "TaxId": "ST005",
"BillNo": "Z001", "FromSourceTag":"PO",
"FromBillNo":"Z003",
"BillNo": "Z002",
"RowCode": "1", "RowCode": "1",
"ItemType": 0, "ItemType": 0,
"MaterialId": "Z001", "MaterialId": "MX01030018",
"ReceivingSQty": 1, "ReceivingSQty": 1,
"SUnitId": "SET", // "SUnitId": "SET",
"SPrice": "100" "SPrice": "100"
} }
] ]

Loading…
Cancel
Save