@@ -178,13 +178,13 @@ discard block |
||
| 178 | 178 | if (count($tax_class_id) > 0) {//If the product is allowed for tax (Check in tax_product relation table) |
| 179 | 179 | if ($tax_enable == 1) {//If GST is Enabled |
| 180 | 180 | |
| 181 | - $details = $this->getDetailsWhenUserStateIsIndian( |
|
| 182 | - $user_state, |
|
| 183 | - $origin_state, |
|
| 184 | - $productid, |
|
| 185 | - $geoip_state, |
|
| 186 | - $geoip_country |
|
| 187 | - ); |
|
| 181 | + $details = $this->getDetailsWhenUserStateIsIndian( |
|
| 182 | + $user_state, |
|
| 183 | + $origin_state, |
|
| 184 | + $productid, |
|
| 185 | + $geoip_state, |
|
| 186 | + $geoip_country |
|
| 187 | + ); |
|
| 188 | 188 | |
| 189 | 189 | $c_gst = $details['cgst']; |
| 190 | 190 | $s_gst = $details['sgst']; |
@@ -203,21 +203,21 @@ discard block |
||
| 203 | 203 | if ($taxes[0]) { |
| 204 | 204 | $tax_attribute[$key] = ['name' => $tax->name, 'c_gst'=>$c_gst, |
| 205 | 205 | |
| 206 | - 's_gst' => $s_gst, 'i_gst'=>$i_gst, 'ut_gst'=>$ut_gst, |
|
| 206 | + 's_gst' => $s_gst, 'i_gst'=>$i_gst, 'ut_gst'=>$ut_gst, |
|
| 207 | 207 | 'state' => $state_code, 'origin_state'=>$origin_state, |
| 208 | - 'tax_enable' => $tax_enable, 'rate'=>$value, 'status'=>$status, ]; |
|
| 208 | + 'tax_enable' => $tax_enable, 'rate'=>$value, 'status'=>$status, ]; |
|
| 209 | 209 | |
| 210 | 210 | $taxCondition[0] = new \Darryldecode\Cart\CartCondition([ |
| 211 | 211 | 'name' => 'no compound', 'type' => 'tax', |
| 212 | 212 | 'target' => 'item', 'value' => $value, |
| 213 | - ]); |
|
| 213 | + ]); |
|
| 214 | 214 | } else { |
| 215 | 215 | $tax_attribute[0] = ['name' => 'null', 'rate' => 0, 'tax_enable' =>0]; |
| 216 | 216 | $taxCondition[0] = new \Darryldecode\Cart\CartCondition([ |
| 217 | - 'name' => 'null', 'type' => 'tax', |
|
| 218 | - 'target' => 'item', 'value' => '0%', |
|
| 219 | - 'rate' => 0, 'tax_enable' =>0, |
|
| 220 | - ]); |
|
| 217 | + 'name' => 'null', 'type' => 'tax', |
|
| 218 | + 'target' => 'item', 'value' => '0%', |
|
| 219 | + 'rate' => 0, 'tax_enable' =>0, |
|
| 220 | + ]); |
|
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | } elseif ($tax_enable == 0) {//If Tax enable is 0 and other tax is available |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | $subregion = \App\Model\Common\State::where('state_subdivision_code', $code)->first(); |
| 377 | 377 | if ($subregion) { |
| 378 | 378 | $result = ['id' => $subregion->state_subdivision_code, |
| 379 | - 'name' => $subregion->state_subdivision_name, ]; |
|
| 379 | + 'name' => $subregion->state_subdivision_name, ]; |
|
| 380 | 380 | } |
| 381 | 381 | |
| 382 | 382 | return $result; |