Search
 
SCRIPT & CODE EXAMPLE
 

PHP

CGST/SGST calculate in laravel 8

$preTaxAmount = '1000';
$taxPerc = 3.00; // (CGST = 1.50 + SGST = 1.50)
$gstAmount = number_format($preTaxAmount * ($taxPerc) / 100, 2, '.', '');
$postTaxAmount = number_format($preTaxAmount + $gstAmount, 2, '.', '');
Comment

PREVIOUS NEXT
Code Example
Php :: display rows brought back by query php 
Php :: override Telescope in laravel 
Php :: laravel gmail 
Php :: post thumbnail 
Php :: how to check php string length 
Php :: how create new command in laravel 
Php :: only alphanumeric characters are allowed regex in php 
Php :: import session laravel 
Php :: trim elements of array php 
Php :: moodle webservice create user phone2 
Php :: Wordpress SVG Manually - function.php 
Php :: créer projet laravel 
Php :: InvalidArgumentException Unknown format "sentence" 
Php :: php mysqli number row 
Php :: magento debug white page 
Php :: php remove query param from url 
Php :: laravel nova create user 
Php :: showing database table in php 
Php :: memory limit wordpress 
Php :: route group controller laravel 
Php :: php return loading message 
Php :: create variable in laravel blade 
Php :: php foreach associative array 
Php :: laravel migration add column after 
Php :: php remove notice session already been started 
Php :: turn text file to string php 
Php :: artisan refresh 
Php :: fix excel file wrong language php 
Php :: woocommerce action order complete 
Php :: laravel make model and controller 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =