ohctech_p8/get_prev_issue_qty.php
2024-10-16 19:18:52 +05:30

17 lines
682 B
PHP

<?php
include('includes/config/config.php');
include('includes/functions.php');
include('log_entry.php');
error_reporting(E_ERROR | E_PARSE);
$item_batch=$_POST["item_batch"];
$item_id = $_POST['item_id'];
$appointment_id = $_POST['appointment_id'];
$data = null;
$sql_treatment_qty = "select * from treatment where appointment_id='" . $appointment_id . "' and is_display!='N' and item_id='" . $item_id . "' and item_batch_no='".$item_batch."' ";
error_log("qyery ".$sql_treatment_qty);
$res_treatment_qty = mysqli_query($conn, $sql_treatment_qty);
$row_treatment_qty = mysqli_fetch_assoc($res_treatment_qty);
$data = $row_treatment_qty['issued_qty'];
echo json_encode($data);
?>