From 216603a65d5b122bb22c42dca62b4b6c2193c469 Mon Sep 17 00:00:00 2001 From: Suvodip Date: Tue, 11 Jun 2024 20:54:31 +0530 Subject: [PATCH] dowload button --- 119/view-bills.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/119/view-bills.php b/119/view-bills.php index 9764b36..198c86f 100644 --- a/119/view-bills.php +++ b/119/view-bills.php @@ -45,7 +45,7 @@ return array($totalGST,$totalCost,$totalAmount);
- Start Date Date Before Download + Start Date Date Before @@ -81,6 +81,7 @@ if(isset($_GET['payment'])){ $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)) { @@ -198,16 +199,19 @@ if(isset($_GET['payment'])){ ?>
+
+ 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 ''; ?> - + echo '

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 '

'; ?> + 1)): ?>   Download +