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

Loading…
Cancel
Save