mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-29 06:18:10 +02:00
Update
Add plan details to gateway
This commit is contained in:
parent
6b8501313d
commit
fded62b39d
5 changed files with 82 additions and 201 deletions
|
@ -820,4 +820,11 @@ class Package
|
|||
$ui->assign('whatsapp', urlencode("```$invoice```"));
|
||||
$ui->assign('in', $in);
|
||||
}
|
||||
public static function tax($price, $tax_rate = 1)
|
||||
{
|
||||
// Convert tax rate to decimal
|
||||
$tax_rate_decimal = $tax_rate / 100;
|
||||
$tax = $price * $tax_rate_decimal;
|
||||
return $tax;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue