Moved some variables from FactureLigne to CommonInvoiceLine
This commit is contained in:
parent
4c1d51bd39
commit
ad72425291
@ -3586,16 +3586,12 @@ class Facture extends CommonInvoice
|
|||||||
*/
|
*/
|
||||||
class FactureLigne extends CommonInvoiceLine
|
class FactureLigne extends CommonInvoiceLine
|
||||||
{
|
{
|
||||||
var $db;
|
|
||||||
var $error;
|
|
||||||
|
|
||||||
public $element='facturedet';
|
public $element='facturedet';
|
||||||
public $table_element='facturedet';
|
public $table_element='facturedet';
|
||||||
|
|
||||||
var $oldline;
|
var $oldline;
|
||||||
|
|
||||||
//! From llx_facturedet
|
//! From llx_facturedet
|
||||||
var $rowid;
|
|
||||||
//! Id facture
|
//! Id facture
|
||||||
var $fk_facture;
|
var $fk_facture;
|
||||||
//! Id parent line
|
//! Id parent line
|
||||||
@ -3603,17 +3599,9 @@ class FactureLigne extends CommonInvoiceLine
|
|||||||
var $label; // deprecated
|
var $label; // deprecated
|
||||||
//! Description ligne
|
//! Description ligne
|
||||||
var $desc;
|
var $desc;
|
||||||
var $fk_product; // Id of predefined product
|
|
||||||
var $product_type = 0; // Type 0 = product, 1 = Service
|
|
||||||
|
|
||||||
var $qty; // Quantity (example 2)
|
|
||||||
var $tva_tx; // Taux tva produit/service (example 19.6)
|
|
||||||
var $localtax1_tx; // Local tax 1
|
|
||||||
var $localtax2_tx; // Local tax 2
|
|
||||||
var $localtax1_type; // Local tax 1 type
|
var $localtax1_type; // Local tax 1 type
|
||||||
var $localtax2_type; // Local tax 2 type
|
var $localtax2_type; // Local tax 2 type
|
||||||
var $subprice; // P.U. HT (example 100)
|
|
||||||
var $remise_percent; // % de la remise ligne (example 20%)
|
|
||||||
var $fk_remise_except; // Link to line into llx_remise_except
|
var $fk_remise_except; // Link to line into llx_remise_except
|
||||||
var $rang = 0;
|
var $rang = 0;
|
||||||
|
|
||||||
@ -3622,10 +3610,6 @@ class FactureLigne extends CommonInvoiceLine
|
|||||||
var $marge_tx;
|
var $marge_tx;
|
||||||
var $marque_tx;
|
var $marque_tx;
|
||||||
|
|
||||||
var $info_bits = 0; // Liste d'options cumulables:
|
|
||||||
// Bit 0: 0 si TVA normal - 1 si TVA NPR
|
|
||||||
// Bit 1: 0 si ligne normal - 1 si bit discount (link to line into llx_remise_except)
|
|
||||||
|
|
||||||
var $special_code; // Liste d'options non cumulabels:
|
var $special_code; // Liste d'options non cumulabels:
|
||||||
// 1: frais de port
|
// 1: frais de port
|
||||||
// 2: ecotaxe
|
// 2: ecotaxe
|
||||||
@ -3634,15 +3618,6 @@ class FactureLigne extends CommonInvoiceLine
|
|||||||
var $origin;
|
var $origin;
|
||||||
var $origin_id;
|
var $origin_id;
|
||||||
|
|
||||||
//! Total HT de la ligne toute quantite et incluant la remise ligne
|
|
||||||
var $total_ht;
|
|
||||||
//! Total TVA de la ligne toute quantite et incluant la remise ligne
|
|
||||||
var $total_tva;
|
|
||||||
var $total_localtax1; //Total Local tax 1 de la ligne
|
|
||||||
var $total_localtax2; //Total Local tax 2 de la ligne
|
|
||||||
//! Total TTC de la ligne toute quantite et incluant la remise ligne
|
|
||||||
var $total_ttc;
|
|
||||||
|
|
||||||
var $fk_code_ventilation = 0;
|
var $fk_code_ventilation = 0;
|
||||||
|
|
||||||
var $date_start;
|
var $date_start;
|
||||||
@ -3671,16 +3646,6 @@ class FactureLigne extends CommonInvoiceLine
|
|||||||
*/
|
*/
|
||||||
public $fk_prev_id;
|
public $fk_prev_id;
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor
|
|
||||||
*
|
|
||||||
* @param DoliDB $db Database handler
|
|
||||||
*/
|
|
||||||
function __construct($db)
|
|
||||||
{
|
|
||||||
$this->db = $db;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load invoice line from database
|
* Load invoice line from database
|
||||||
*
|
*
|
||||||
|
|||||||
@ -400,5 +400,100 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobjectline.class.php';
|
|||||||
*/
|
*/
|
||||||
abstract class CommonInvoiceLine extends CommonObjectLine
|
abstract class CommonInvoiceLine extends CommonObjectLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Quantity
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
public $qty;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unit price before taxes
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $subprice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Type of the product. 0 for product 1 for service
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
public $product_type = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Id of corresponding product
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
public $fk_product;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* VAT %
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $tva_tx;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Local tax 1 %
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $localtax1_tx;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Local tax 2 %
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $localtax2_tx;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Percent of discount
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $remise_percent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Total amount before taxes
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $total_ht;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Total VAT amount
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $total_tva;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Total local tax 1 amount
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $total_localtax1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Total local tax 2 amount
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $total_localtax2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Total amount with taxes
|
||||||
|
* @var float
|
||||||
|
*/
|
||||||
|
public $total_ttc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Liste d'options cumulables:
|
||||||
|
* Bit 0: 0 si TVA normal - 1 si TVA NPR
|
||||||
|
* Bit 1: 0 si ligne normal - 1 si bit discount (link to line into llx_remise_except)
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
public $info_bits = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param DoliDB $db Database handler
|
||||||
|
*/
|
||||||
|
public function __construct(DoliDB $db)
|
||||||
|
{
|
||||||
|
$this->db = $db;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user