diff --git a/wms/bons/api/get.php b/wms/bons/api/get.php new file mode 100644 index 00000000..90490197 --- /dev/null +++ b/wms/bons/api/get.php @@ -0,0 +1,69 @@ +prepare($sql); + $stmt->execute(); + $data = $stmt->fetch(PDO::FETCH_ASSOC); + $data['amount'] = intval($data['amount']); + $checkBillNo = $data['CBno']; + + + $sql = "SELECT + c.BillDate AS CheckBillDate + FROM arWriteOffBill AS a + LEFT JOIN arWriteOffBillRec AS b ON a.BillNo=b.BillNo + LEFT JOIN + (SELECT temp1.*,arWriteOffBillDetail.* FROM arWriteOffBillDetail + LEFT JOIN + (SELECT + arCheckBill.BillNo AS checkBillNo, arCheckBill.BillDate,arCheckBillInvInfo.InvoiceNo + FROM arCheckBill + LEFT JOIN arCheckBillInvInfo + ON arCheckBill.InvoiceBillNo=arCheckBillInvInfo.InvoiceBillNo) AS temp1 + ON temp1.checkBillNo = arWriteOffBillDetail.FromBillNo) AS c + ON a.BillNo=c.BillNo + WHERE c.checkBillNo = '$checkBillNo' + "; + + $stmt = $connT8->prepare($sql); + $stmt->execute(); + $check = $stmt->fetch(PDO::FETCH_ASSOC); + + + $sql = "SELECT SQuantity FROM salIncomeApplyMaster WHERE BillNo = '$contract_no'"; + $stmt = $connT8->prepare($sql); + $stmt->execute(); + $result = $stmt->fetch(PDO::FETCH_ASSOC); + $count = COUNT($result); + $data['maintain_month'] = intval($conunt * $result['Squantity']) + + + + + if (!empty($check['CheckBillDate'])) { + header('Content-Type: application/json'); + echo json_encode($data); + } else { + echo false; + exit; + } +} diff --git a/wms/bons/bons_index.php b/wms/bons/bons_index.php new file mode 100644 index 00000000..56f7af52 --- /dev/null +++ b/wms/bons/bons_index.php @@ -0,0 +1,118 @@ + + + + + + + + + + + +
+
+ +
+ + + + + + + + + +
+

獎金計算

+
+ + + + +
+
+
\ No newline at end of file diff --git a/wms/contract-repair/contract-repair-input.php b/wms/contract-repair/contract-repair-input.php index 67c069e4..d85fa1bd 100644 --- a/wms/contract-repair/contract-repair-input.php +++ b/wms/contract-repair/contract-repair-input.php @@ -48,7 +48,6 @@ $contract_stauts = ["合約簽回", "採購", "工程發包", "工程中", "修 報價單編號 -