= 1000) { $GSTPercentage = 112; } else { //Future Billing Amount Conditions } $GSTAmount = round($billRow['price'] / $GSTPercentage * 100); $totalTax = $billRow['price'] - $GSTAmount; $totalGST = $totalGST + $totalTax ; $totalAmount=$totalAmount+$billRow['price']; $totalCost=$totalCost+$billRow['cost']; } // return $totalGST; return array($totalGST,$totalCost,$totalAmount); } ?>
Cash Card UPI Other All Paid Incomplete Bills

Start Date Date Before Action';} ?> setTimezone(new DateTimeZone('Asia/Kolkata')); return $date->format('Y-m-d H:i:s'); } if(isset($_GET['payment'])){ // echo date('Y-m-d', strtotime(' +1 day')); $between="AND `time` between '".date('Y-m-d')."' AND '".date('Y-m-d', strtotime(' +1 day'))."'"; //echo $_POST['start'],$_POST['end']; if(isset($_POST['start'])){ $between="AND `time` between '".$_POST['start']."' AND '".$_POST['end']."'"; //echo $between; } if($_GET['payment'] == 'paid') { $link = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB); $GSTAmount =0; $totalTax =0; $totalGSTlistedBills=0; $query = "SELECT * FROM `" . SHOP_ID . "_bill` WHERE `payment_mode` != '0' " . $between . " ORDER BY `id` DESC"; $result = mysqli_query($link, $query); while ($row = mysqli_fetch_assoc($result)) { ?>
SL Date Phone Amount GST PAID Name
Print   ';} ?>
Continue
Print   ';} ?>
Total Bill: ', $total ; if(isset($_SESSION['email']) && $_SESSION['email']=='mousumi@fashionavenueonline.com' || $_SESSION['email']=='user@fashionavenue.com'){ echo ', Cost: ', $total_cost , ', Profit: ', $total-$total_cost,' Total GST: ', $totalGSTlistedBills ; } echo ''; ?> query($sql) === TRUE) { echo 'Bill ID'.$_POST['delete_bill'].' Removed.'; echo ''; } else { echo "Error deleting record: " . $conn->error; } $conn->close(); // sleep(1); } ?>