ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
$testPackageSame = db("punch_lists")
|
||||
->where("test_package", get("test_package"))
|
||||
->where("punch_list_no", get("value"))
|
||||
->count();
|
||||
|
||||
$result = 0;
|
||||
|
||||
if($testPackageSame>0) {
|
||||
$result = 1;
|
||||
} else {
|
||||
|
||||
$sameValue = db("punch_lists")
|
||||
->where("punch_list_no", get("value"))
|
||||
->count();
|
||||
|
||||
if($sameValue>0) {
|
||||
$result = 0;
|
||||
} else {
|
||||
$result = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo $result;
|
||||
?>
|
||||
Reference in New Issue
Block a user