@@ 1420-1429 (lines=10) @@ | ||
1417 | * @param string $format Format d'affichage du résultat (long ou court) |
|
1418 | * @return mixed Soit une chaine soit un flottant |
|
1419 | */ |
|
1420 | public static function getTTC($ht, $vat, $edit = false, $format = 's') |
|
1421 | { |
|
1422 | $oledrion_Currency = Oledrion_Currency::getInstance(); |
|
1423 | $ttc = $ht * (1 + ($vat / 100)); |
|
1424 | if (!$edit) { |
|
1425 | return $oledrion_Currency->amountForDisplay($ttc, $format); |
|
1426 | } else { |
|
1427 | return $ttc; |
|
1428 | } |
|
1429 | } |
|
1430 | ||
1431 | /** |
|
1432 | * Renvoie le montant de la tva à partir du montant HT |
@@ 1563-1572 (lines=10) @@ | ||
1560 | * @param string $format Format d'affichage du résultat (long ou court) |
|
1561 | * @return mixed Soit une chaine soit un flottant |
|
1562 | */ |
|
1563 | public static function getTTC($ht, $vat, $edit = false, $format = 's') |
|
1564 | { |
|
1565 | $oledrion_Currency = Oledrion_Currency::getInstance(); |
|
1566 | $ttc = $ht * (1 + ($vat / 100)); |
|
1567 | if (!$edit) { |
|
1568 | return $oledrion_Currency->amountForDisplay($ttc, $format); |
|
1569 | } else { |
|
1570 | return $ttc; |
|
1571 | } |
|
1572 | } |
|
1573 | ||
1574 | /** |
|
1575 | * Renvoie le montant de la tva à partir du montant HT |