CaMykS  1.0-20231201
Functions
finance.php.inc File Reference

Functions

 finance_getHTFromTTC ($TTCPrice, $VATRate)
 Finance specific methods. More...
 
 finance_getTTCFromHT ($HTPrice, $VATRate)
 

Function Documentation

◆ finance_getHTFromTTC()

finance_getHTFromTTC (   $TTCPrice,
  $VATRate 
)

Finance specific methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.0.1
Date
Creation: Sep 2020
Modification: Sep 2020
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Warning
This library is not loaded with CaMykS initialisation. Compute HT price from TTC price and VAT rate.
Parameters
float$TTCPrice
float$VATRate
Returns
float

◆ finance_getTTCFromHT()

finance_getTTCFromHT (   $HTPrice,
  $VATRate 
)

Compute TTC price from HT price and VAT rate.

Parameters
float$HTPrice
float$VATRate
Returns
float