Works on hooks module
This commit is contained in:
parent
8e240d9494
commit
409758c1ec
@ -732,7 +732,11 @@ if ($_POST['action'] == 'add' && $user->rights->facture->creer)
|
|||||||
$lines[$i]->fk_remise_except,
|
$lines[$i]->fk_remise_except,
|
||||||
'HT',
|
'HT',
|
||||||
0,
|
0,
|
||||||
$product_type
|
$product_type,
|
||||||
|
$lines[$i]->rang,
|
||||||
|
$lines[$i]->special_code,
|
||||||
|
$object->origin,
|
||||||
|
$lines[$i]->rowid
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
|
|||||||
@ -1668,7 +1668,7 @@ class Facture extends CommonObject
|
|||||||
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,produit)
|
* 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)
|
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue)
|
||||||
*/
|
*/
|
||||||
function addline($facid, $desc, $pu_ht, $qty, $txtva, $txlocaltax1=0, $txlocaltax2=0, $fk_product=0, $remise_percent=0, $date_start='', $date_end='', $ventil=0, $info_bits=0, $fk_remise_except='', $price_base_type='HT', $pu_ttc=0, $type=0, $rang=-1, $special_code=0)
|
function addline($facid, $desc, $pu_ht, $qty, $txtva, $txlocaltax1=0, $txlocaltax2=0, $fk_product=0, $remise_percent=0, $date_start='', $date_end='', $ventil=0, $info_bits=0, $fk_remise_except='', $price_base_type='HT', $pu_ttc=0, $type=0, $rang=-1, $special_code=0, $origin='', $origin_id=0)
|
||||||
{
|
{
|
||||||
dol_syslog("Facture::Addline facid=$facid,desc=$desc,pu_ht=$pu_ht,qty=$qty,txtva=$txtva, txlocaltax1=$txlocaltax1, txlocaltax2=$txlocaltax2, fk_product=$fk_product,remise_percent=$remise_percent,date_start=$date_start,date_end=$date_end,ventil=$ventil,info_bits=$info_bits,fk_remise_except=$fk_remise_except,price_base_type=$price_base_type,pu_ttc=$pu_ttc,type=$type", LOG_DEBUG);
|
dol_syslog("Facture::Addline facid=$facid,desc=$desc,pu_ht=$pu_ht,qty=$qty,txtva=$txtva, txlocaltax1=$txlocaltax1, txlocaltax2=$txlocaltax2, fk_product=$fk_product,remise_percent=$remise_percent,date_start=$date_start,date_end=$date_end,ventil=$ventil,info_bits=$info_bits,fk_remise_except=$fk_remise_except,price_base_type=$price_base_type,pu_ttc=$pu_ttc,type=$type", LOG_DEBUG);
|
||||||
include_once(DOL_DOCUMENT_ROOT.'/lib/price.lib.php');
|
include_once(DOL_DOCUMENT_ROOT.'/lib/price.lib.php');
|
||||||
@ -1766,6 +1766,8 @@ class Facture extends CommonObject
|
|||||||
$this->line->total_localtax2=($this->type==2?-1:1)*$total_localtax2;
|
$this->line->total_localtax2=($this->type==2?-1:1)*$total_localtax2;
|
||||||
$this->line->total_ttc=($this->type==2?-1:1)*$total_ttc;
|
$this->line->total_ttc=($this->type==2?-1:1)*$total_ttc;
|
||||||
$this->line->special_code=$special_code;
|
$this->line->special_code=$special_code;
|
||||||
|
$this->line->origin=$origin;
|
||||||
|
$this->line->origin_id=$origin_id;
|
||||||
|
|
||||||
// \TODO Ne plus utiliser
|
// \TODO Ne plus utiliser
|
||||||
$this->line->price=($this->type==2?-1:1)*$price;
|
$this->line->price=($this->type==2?-1:1)*$price;
|
||||||
@ -3062,6 +3064,9 @@ class FactureLigne
|
|||||||
// 2: ecotaxe
|
// 2: ecotaxe
|
||||||
// 3: ??
|
// 3: ??
|
||||||
|
|
||||||
|
var $origin;
|
||||||
|
var $origin_id;
|
||||||
|
|
||||||
//! Total HT de la ligne toute quantite et incluant la remise ligne
|
//! Total HT de la ligne toute quantite et incluant la remise ligne
|
||||||
var $total_ht;
|
var $total_ht;
|
||||||
//! Total TVA de la ligne toute quantite et incluant la remise ligne
|
//! Total TVA de la ligne toute quantite et incluant la remise ligne
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user