You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
1022 B

<?php
include "./header.php";
$submit = $_GET['submit'];
$state = $_GET['state'];
$BillNo = $_POST['BillNo'];
$BillDate = (int)$_POST['BillDate'];
$CurrId = $_POST['CurrId'];
$DeptId = $_POST['DeptId'];
$PersonId = $_POST['PersonId'];
$comSupplierId = $_POST['comSupplierId'];
$TaxId = $_POST['TaxId'];
if ($submit == "add") {
$SQL1 = "INSERT INTO rib_business (`BillNo`,`BillDate`,`BizPartnerId`,`CurrId`,`TaxId`,
`PersonId`,`DeptId`,`CreditAgeDate`,`RecBizPartnerId`,`CurrentState`,`CreatorId`) VALUES (
'$BillNo',$BillDate,'$comSupplierId','$CurrId','$TaxId','$PersonId','$DeptId',$BillDate,'$comSupplierId',
0,'$user_id')";
mysqli_query($link, $SQL1);
if (mysqli_affected_rows($link)) {
echo '<script>alert("新增 成功")</script>';
} else {
echo '<script>alert("新增 失敗")</script>';
}
?>
<script>
window.location.href = "rib02-business-create.php?BillNo=<?php echo $BillNo ?>&RowCode=1&TaxId=<?= $TaxId?>&<?= $token_link ?>";
</script>
<?php
}