remove tax functionality

This commit is contained in:
2026-02-13 06:58:18 +00:00
parent 26f1e8b917
commit 7634d2a810
3 changed files with 23 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 60 KiB

View File

@@ -2,8 +2,8 @@
define("PWD", getcwd()); define("PWD", getcwd());
session_start(); session_start();
define("MYSQL_HOST", "localhost"); define("MYSQL_HOST", "localhost");
define("MYSQL_USER", "fashionavenue__"); define("MYSQL_USER", "suvo_billing");
define("MYSQL_DB", "fashionavenue__"); define("MYSQL_DB", "suvo_billing");
define("MYSQL_PASS", "ShuQND8[bJDGEfjU"); define("MYSQL_PASS", "Simple2pass");
define("SHOP_ID", "119"); define("SHOP_ID", "119");
?> ?>

View File

@@ -81,7 +81,7 @@ if (isset ($_POST['phone'])) {
<p style="font-weight:bold; font-size: 25px; text-align: center;">MGM Enterprises</p> <p style="font-weight:bold; font-size: 25px; text-align: center;">MGM Enterprises</p>
<img src="/assets/ave_logo.png" alt="" style="width: 80px; height: 50px;" /> <img src="/assets/ave_logo.png" alt="" style="width: 80px; height: 50px;" />
</div> </div>
<span style="font-weight:bold; font-size: 15px; text-align: center;">GST: 19AJSPB8539J1ZJ</span> <!-- <span style="font-weight:bold; font-size: 15px; text-align: center;">GST: 19AJSPB8539J1ZJ</span> -->
<span>16/120/57, Golbazar, Ashoknagar, Habra, 743222</span> <span>16/120/57, Golbazar, Ashoknagar, Habra, 743222</span>
<span style="text-align: center;"> +91 9907218172 </span> <span style="text-align: center;"> +91 9907218172 </span>
@@ -119,7 +119,7 @@ if (isset ($_POST['phone'])) {
<td>SL</td> <td>SL</td>
<td>Product</td> <td>Product</td>
<!-- <td>HSN</td> --> <!-- <td>HSN</td> -->
<td>GST</td> <!-- <td>GST</td> -->
<td>Price</td> <td>Price</td>
<td>Total</td> <td>Total</td>
</tr> </tr>
@@ -139,18 +139,18 @@ if (isset ($_POST['phone'])) {
$total = $total + $row['price']; $total = $total + $row['price'];
if ($row['price'] <= 1000) { // if ($row['price'] <= 1000) {
$GSTPercentage = 105; // $GSTPercentage = 105;
} // }
if ($row['price'] >= 1000) { // if ($row['price'] >= 1000) {
$GSTPercentage = 112; // $GSTPercentage = 112;
} else { // } else {
//Future Billing Amount Conditions // //Future Billing Amount Conditions
} // }
$GSTAmount = round($row['price'] / $GSTPercentage * 100); // $GSTAmount = round($row['price'] / $GSTPercentage * 100);
$totalTax = $totalTax + $row['price'] - $GSTAmount; // $totalTax = $totalTax + $row['price'] - $GSTAmount;
$totalPrice = $totalPrice + $GSTAmount; // $totalPrice = $totalPrice + $GSTAmount;
// echo $GSTAmount; // echo $GSTAmount;
// $withGST = round($row['price'] + $GSTAmount); // $withGST = round($row['price'] + $GSTAmount);
@@ -169,11 +169,11 @@ if (isset ($_POST['phone'])) {
?> ?>
</span></td> </span></td>
<td> <td>
<?php echo $row['price'] - $GSTAmount; ?> <?php echo $row['price'] ?>
</td> </td>
<td> <!-- <td>
<?php echo $GSTAmount; ?> <?php echo $GSTAmount; ?>
</td> </td> -->
<td> <td>
<?php echo $row['price']; ?> <?php echo $row['price']; ?>
</td> </td>
@@ -189,20 +189,16 @@ if (isset ($_POST['phone'])) {
// echo '<a href="print_bill.php?'.$_GET['bill'].'"> Print </a>'; // echo '<a href="print_bill.php?'.$_GET['bill'].'"> Print </a>';
?> ?>
<div <!-- <div
style="display: flex; flex-direction: row; justify-content: space-between; border-top: 2px solid #1d1d1d; border-bottom: 2px solid #1d1d1d;"> style="display: flex; flex-direction: row; justify-content: space-between; border-top: 2px solid #1d1d1d; border-bottom: 2px solid #1d1d1d;">
<p>Total Tax:</p> <p>Total Tax:</p>
<p style="padding-left: 100px;"> <p style="padding-left: 100px;">
<?php echo $totalTax; ?><br> <?php echo $totalTax; ?><br>
<span style="font-size: 12px; padding-right: 0px;">SGST:&nbsp; <span style="font-size: 12px; padding-right: 0px;">SGST:&nbsp;<?php echo $indTax; ?>,</span>
<?php echo $indTax; ?>, <span style="font-size: 12px; padding-right: 0px;">CGST:&nbsp;<?php echo $indTax; ?></span>
</span>
<span style="font-size: 12px; padding-right: 0px;">CGST:&nbsp;
<?php echo $indTax; ?>
</span>
</p> </p>
<p></p> <p></p>
</div> </div> -->
<div <div
style="display: flex; flex-direction: row; justify-content: space-between; border-top: 2px solid #1d1d1d; border-bottom: 2px solid #1d1d1d;"> style="display: flex; flex-direction: row; justify-content: space-between; border-top: 2px solid #1d1d1d; border-bottom: 2px solid #1d1d1d;">