Doxygen
This commit is contained in:
parent
90b234ac40
commit
bb24986a6e
@ -279,29 +279,26 @@ class Propal extends CommonObject
|
||||
|
||||
/**
|
||||
* Add a proposal line into database (linked to product/service or not)
|
||||
* Les parametres sont deja cense etre juste et avec valeurs finales a l'appel
|
||||
* de cette methode. Aussi, pour le taux tva, il doit deja avoir ete defini
|
||||
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,'',produit)
|
||||
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue)
|
||||
*
|
||||
* @param propalid Id de la propale
|
||||
* @param desc Description de la ligne
|
||||
* @param pu_ht Prix unitaire
|
||||
* @param qty Quantite
|
||||
* @param txtva Taux de tva
|
||||
* @param txlocaltax1 Local tax 1 rate
|
||||
* @param txlocaltax2 Local tax 2 rate
|
||||
* @param fk_product Id du produit/service predefini
|
||||
* @param remise_percent Pourcentage de remise de la ligne
|
||||
* @param price_base_type HT or TTC
|
||||
* @param pu_ttc Prix unitaire TTC
|
||||
* @param info_bits Bits de type de lignes
|
||||
* @param type Type of line (product, service)
|
||||
* @param rang Position of line
|
||||
* @param special_code Special code
|
||||
* @param fk_parent_line Id of parent line
|
||||
* @return int >0 if OK, <0 if KO
|
||||
* \param propalid Id de la propale
|
||||
* \param desc Description de la ligne
|
||||
* \param pu_ht Prix unitaire
|
||||
* \param qty Quantite
|
||||
* \param txtva Taux de tva
|
||||
* \param txlocaltax1 Local tax 1 rate
|
||||
* \param txlocaltax2 Local tax 2 rate
|
||||
* \param fk_product Id du produit/service predefini
|
||||
* \param remise_percent Pourcentage de remise de la ligne
|
||||
* \param price_base_type HT or TTC
|
||||
* \param pu_ttc Prix unitaire TTC
|
||||
* \param info_bits Bits de type de lignes
|
||||
* \param type Type of line (product, service)
|
||||
* \param rang Position of line
|
||||
* \return int >0 if OK, <0 if KO
|
||||
* @see add_product
|
||||
* \remarks Les parametres sont deja cense etre juste et avec valeurs finales a l'appel
|
||||
* de cette methode. Aussi, pour le taux tva, il doit deja avoir ete defini
|
||||
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,'',produit)
|
||||
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue)
|
||||
*/
|
||||
function addline($propalid, $desc, $pu_ht, $qty, $txtva, $txlocaltax1=0, $txlocaltax2=0, $fk_product=0, $remise_percent=0, $price_base_type='HT', $pu_ttc=0, $info_bits=0, $type=0, $rang=-1, $special_code=0, $fk_parent_line=0)
|
||||
{
|
||||
@ -433,22 +430,20 @@ class Propal extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Update a proposal line
|
||||
*
|
||||
* @param rowid Id de la ligne
|
||||
* @param pu Prix unitaire (HT ou TTC selon price_base_type)
|
||||
* @param qty Quantity
|
||||
* @param remise_percent Remise effectuee sur le produit
|
||||
* @param txtva Taux de TVA
|
||||
* @param txlocaltax1 Local tax 1 rate
|
||||
* @param txlocaltax2 Local tax 2 rate
|
||||
* @param desc Description
|
||||
* @param price_base_type HT ou TTC
|
||||
* @param info_bits Miscellanous informations
|
||||
* @param special_code Set special code ('' = we don't change it)
|
||||
* @param fk_parent_line Id of line parent
|
||||
* @param skip_update_total Skip update total
|
||||
* @return int 0 if OK, <0 if KO
|
||||
* Update a proposal line
|
||||
* @param rowid Id de la ligne
|
||||
* @param pu Prix unitaire (HT ou TTC selon price_base_type)
|
||||
* @param qty Quantity
|
||||
* @param remise_percent Remise effectuee sur le produit
|
||||
* @param txtva Taux de TVA
|
||||
* @param txlocaltax1 Local tax 1 rate
|
||||
* @param txlocaltax2 Local tax 2 rate
|
||||
* @param desc Description
|
||||
* @param price_base_type HT ou TTC
|
||||
* @param info_bits Miscellanous informations
|
||||
* @param special_code Set special code ('' = we don't change it)
|
||||
* @param fk_parent_line Id of line parent
|
||||
* @return int 0 en cas de succes
|
||||
*/
|
||||
function updateline($rowid, $pu, $qty, $remise_percent=0, $txtva, $txlocaltax1=0, $txlocaltax2=0, $desc='', $price_base_type='HT', $info_bits=0, $special_code=0, $fk_parent_line=0, $skip_update_total=0)
|
||||
{
|
||||
@ -548,10 +543,9 @@ class Propal extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Supprime une ligne de detail
|
||||
*
|
||||
* @param int $lineid Id of line to delete
|
||||
* @return int >0 if OK, <0 if KO
|
||||
* \brief Supprime une ligne de detail
|
||||
* \param idligne Id de la ligne detail a supprimer
|
||||
* \return int >0 si ok, <0 si ko
|
||||
*/
|
||||
function deleteline($lineid)
|
||||
{
|
||||
@ -581,12 +575,10 @@ class Propal extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Create commercial proposal into database
|
||||
* this->ref can be set or empty. If empty, we will use "(PROVid)"
|
||||
*
|
||||
* @param User $user User that create
|
||||
* @param int $notrigger Disable trigger
|
||||
* @return int <0 if KO, >=0 if OK
|
||||
* Create commercial proposal into database
|
||||
* this->ref can be set or empty. If empty, we will use "(PROVid)"
|
||||
* @param user User that create
|
||||
* @return int <0 if KO, >=0 if OK
|
||||
*/
|
||||
function create($user='', $notrigger=0)
|
||||
{
|
||||
@ -828,12 +820,10 @@ class Propal extends CommonObject
|
||||
|
||||
/**
|
||||
* Load an object from its id and create a new one in database
|
||||
*
|
||||
* @param int $fromid Id of object to clone
|
||||
* @param int $invertdetail Reverse sign of amounts for lines
|
||||
* @param int $socid Id of thirdparty
|
||||
* @param HookManager $hookmanager Hook manager instance
|
||||
* @return int New id of clone
|
||||
* @param fromid Id of object to clone
|
||||
* @param invertdetail Reverse sign of amounts for lines
|
||||
* @param socid Id of thirdparty
|
||||
* @return int New id of clone
|
||||
*/
|
||||
function createFromClone($fromid,$invertdetail=0,$socid=0,$hookmanager=false)
|
||||
{
|
||||
@ -1296,11 +1286,10 @@ class Propal extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Set delivery
|
||||
*
|
||||
* @param User $user Objet utilisateur qui modifie
|
||||
* @param int $id Availability id
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* \brief Set delivery
|
||||
* \param user Objet utilisateur qui modifie
|
||||
* \param delivery delai de livraison
|
||||
* \return int <0 si ko, >0 si ok
|
||||
*/
|
||||
function set_availability($user, $id)
|
||||
{
|
||||
@ -1325,11 +1314,10 @@ class Propal extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Set source of demand
|
||||
*
|
||||
* @param User $user Objet utilisateur qui modifie
|
||||
* @param int $id Input reason id
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* \brief Set source of demand
|
||||
* \param user Objet utilisateur qui modifie
|
||||
* \param demand_reason source of demand
|
||||
* \return int <0 si ko, >0 si ok
|
||||
*/
|
||||
function set_demand_reason($user, $id)
|
||||
{
|
||||
@ -1354,11 +1342,10 @@ class Propal extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Positionne numero reference client
|
||||
*
|
||||
* @param user Utilisateur qui modifie
|
||||
* @param ref_client Reference client
|
||||
* @return int <0 si ko, >0 si ok
|
||||
* \brief Positionne numero reference client
|
||||
* \param user Utilisateur qui modifie
|
||||
* \param ref_client Reference client
|
||||
* \return int <0 si ko, >0 si ok
|
||||
*/
|
||||
function set_ref_client($user, $ref_client)
|
||||
{
|
||||
@ -1813,10 +1800,9 @@ class Propal extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Change les conditions de reglement de la facture
|
||||
*
|
||||
* @param cond_reglement_id Id de la nouvelle condition de reglement
|
||||
* @return int >0 if OK, <0 if KO
|
||||
* \brief Change les conditions de reglement de la facture
|
||||
* \param cond_reglement_id Id de la nouvelle condition de reglement
|
||||
* \return int >0 si ok, <0 si ko
|
||||
*/
|
||||
function cond_reglement($cond_reglement_id)
|
||||
{
|
||||
@ -1848,10 +1834,9 @@ class Propal extends CommonObject
|
||||
|
||||
|
||||
/**
|
||||
* Change le mode de reglement
|
||||
*
|
||||
* @param mode_reglement_id Id du nouveau mode
|
||||
* @return int >0 if OK, <0 if KO
|
||||
* \brief Change le mode de reglement
|
||||
* \param mode_reglement Id du nouveau mode
|
||||
* \return int >0 si ok, <0 si ko
|
||||
*/
|
||||
function mode_reglement($mode_reglement_id)
|
||||
{
|
||||
@ -1881,11 +1866,10 @@ class Propal extends CommonObject
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change le delai de livraison
|
||||
*
|
||||
* @param availability_id Id du nouveau delai de livraison
|
||||
* @return int >0 if OK, <0 if KO
|
||||
/**
|
||||
* \brief Change le delai de livraison
|
||||
* \param availability_id Id du nouveau delai de livraison
|
||||
* \return int >0 si ok, <0 si ko
|
||||
*/
|
||||
function availability($availability_id)
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user