/[dolibarr]/dolibarr/htdocs/lib/functions.inc.php
ViewVC logotype

Diff of /dolibarr/htdocs/lib/functions.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.150 by eldy, Mon Oct 17 16:52:46 2005 UTC revision 1.151 by eldy, Tue Oct 18 19:56:29 2005 UTC
# Line 1524  function print_duree_select($prefix) Line 1524  function print_duree_select($prefix)
1524    
1525    
1526  /**  /**
1527                  \brief  Fonction qui retourne un montant monétaire formaté                  \brief      Fonction qui retourne un montant monétaire formaté
1528                  \param  amount          montant a formater                  \remarks    Fonction utilisée dans les pdf et les pages html
1529                  \param  html            formatage html ou pas (0 par defaut)                  \param      amount              montant a formater
1530                  \remarks fonction utilisée dans les pdf et les pages html                  \param      html                formatage html ou pas (0 par defaut)
1531    
1532  */  */
1533  function price($amount, $html=0)  function price($amount, $html=0)
# Line 1547  function price($amount, $html=0) Line 1547  function price($amount, $html=0)
1547  }  }
1548    
1549  /**  /**
1550                    \brief      Fonction qui retourne un numérique depuis un montant formaté
1551                    \remarks    Fonction à appeler sur montants saisi avant un insert
1552                    \param      amount              montant a formater
1553    */
1554    function price2num($amount)
1555    {
1556        $amount=ereg_replace(',','.',$amount);
1557        $amount=ereg_replace(' ','',$amount);
1558        return $amount;
1559    }
1560    
1561    
1562    /**
1563                  \brief  Fonction qui convertit des euros en francs                  \brief  Fonction qui convertit des euros en francs
1564                  \param  euros           somme en euro à convertir                  \param  euros           somme en euro à convertir
1565                  \return price       prix converti et formaté                      \return price       prix converti et formaté    

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26