remove tax functionality
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 0 B After Width: | Height: | Size: 60 KiB |
@@ -2,8 +2,8 @@
|
||||
define("PWD", getcwd());
|
||||
session_start();
|
||||
define("MYSQL_HOST", "localhost");
|
||||
define("MYSQL_USER", "fashionavenue__");
|
||||
define("MYSQL_DB", "fashionavenue__");
|
||||
define("MYSQL_PASS", "ShuQND8[bJDGEfjU");
|
||||
define("MYSQL_USER", "suvo_billing");
|
||||
define("MYSQL_DB", "suvo_billing");
|
||||
define("MYSQL_PASS", "Simple2pass");
|
||||
define("SHOP_ID", "119");
|
||||
?>
|
||||
|
||||
@@ -81,7 +81,7 @@ if (isset ($_POST['phone'])) {
|
||||
<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;" />
|
||||
</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 style="text-align: center;"> +91 9907218172 </span>
|
||||
@@ -119,7 +119,7 @@ if (isset ($_POST['phone'])) {
|
||||
<td>SL</td>
|
||||
<td>Product</td>
|
||||
<!-- <td>HSN</td> -->
|
||||
<td>GST</td>
|
||||
<!-- <td>GST</td> -->
|
||||
<td>Price</td>
|
||||
<td>Total</td>
|
||||
</tr>
|
||||
@@ -139,18 +139,18 @@ if (isset ($_POST['phone'])) {
|
||||
$total = $total + $row['price'];
|
||||
|
||||
|
||||
if ($row['price'] <= 1000) {
|
||||
$GSTPercentage = 105;
|
||||
}
|
||||
if ($row['price'] >= 1000) {
|
||||
$GSTPercentage = 112;
|
||||
} else {
|
||||
//Future Billing Amount Conditions
|
||||
}
|
||||
// if ($row['price'] <= 1000) {
|
||||
// $GSTPercentage = 105;
|
||||
// }
|
||||
// if ($row['price'] >= 1000) {
|
||||
// $GSTPercentage = 112;
|
||||
// } else {
|
||||
// //Future Billing Amount Conditions
|
||||
// }
|
||||
|
||||
$GSTAmount = round($row['price'] / $GSTPercentage * 100);
|
||||
$totalTax = $totalTax + $row['price'] - $GSTAmount;
|
||||
$totalPrice = $totalPrice + $GSTAmount;
|
||||
// $GSTAmount = round($row['price'] / $GSTPercentage * 100);
|
||||
// $totalTax = $totalTax + $row['price'] - $GSTAmount;
|
||||
// $totalPrice = $totalPrice + $GSTAmount;
|
||||
// echo $GSTAmount;
|
||||
|
||||
// $withGST = round($row['price'] + $GSTAmount);
|
||||
@@ -169,11 +169,11 @@ if (isset ($_POST['phone'])) {
|
||||
?>
|
||||
</span></td>
|
||||
<td>
|
||||
<?php echo $row['price'] - $GSTAmount; ?>
|
||||
<?php echo $row['price'] ?>
|
||||
</td>
|
||||
<td>
|
||||
<!-- <td>
|
||||
<?php echo $GSTAmount; ?>
|
||||
</td>
|
||||
</td> -->
|
||||
<td>
|
||||
<?php echo $row['price']; ?>
|
||||
</td>
|
||||
@@ -189,20 +189,16 @@ if (isset ($_POST['phone'])) {
|
||||
|
||||
// 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;">
|
||||
<p>Total Tax:</p>
|
||||
<p style="padding-left: 100px;">
|
||||
<?php echo $totalTax; ?><br>
|
||||
<span style="font-size: 12px; padding-right: 0px;">SGST:
|
||||
<?php echo $indTax; ?>,
|
||||
</span>
|
||||
<span style="font-size: 12px; padding-right: 0px;">CGST:
|
||||
<?php echo $indTax; ?>
|
||||
</span>
|
||||
<span style="font-size: 12px; padding-right: 0px;">SGST: <?php echo $indTax; ?>,</span>
|
||||
<span style="font-size: 12px; padding-right: 0px;">CGST: <?php echo $indTax; ?></span>
|
||||
</p>
|
||||
<p></p>
|
||||
</div>
|
||||
</div> -->
|
||||
<div
|
||||
|
||||
style="display: flex; flex-direction: row; justify-content: space-between; border-top: 2px solid #1d1d1d; border-bottom: 2px solid #1d1d1d;">
|
||||
|
||||
Reference in New Issue
Block a user