|
@@ -296,12 +296,10 @@ class Facturation
|
|
|
}
|
|
|
elseif ( $aId == 'RESET' )
|
|
|
{
|
|
|
-
|
|
|
$this->id = null;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
-
|
|
|
$this->id = $aId;
|
|
|
}
|
|
|
}
|
|
@@ -343,7 +341,6 @@ class Facturation
|
|
|
}
|
|
|
elseif ( $aQte == 'RESET' )
|
|
|
{
|
|
|
-
|
|
|
$this->qte = null;
|
|
|
}
|
|
|
else
|
|
@@ -408,13 +405,10 @@ class Facturation
|
|
|
{
|
|
|
|
|
|
if (is_null($aMontantRemise)) {
|
|
|
-
|
|
|
return $this->montant_remise;
|
|
|
} elseif ( $aMontantRemise == 'RESET' ) {
|
|
|
-
|
|
|
$this->montant_remise = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->montant_remise = $aMontantRemise;
|
|
|
}
|
|
|
}
|
|
@@ -429,13 +423,10 @@ class Facturation
|
|
|
{
|
|
|
|
|
|
if (is_null($aPrix)) {
|
|
|
-
|
|
|
return $this->prix;
|
|
|
} elseif ( $aPrix == 'RESET' ) {
|
|
|
-
|
|
|
$this->prix = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->prix = $aPrix;
|
|
|
}
|
|
|
}
|
|
@@ -449,13 +440,10 @@ class Facturation
|
|
|
public function tva($aTva = null)
|
|
|
{
|
|
|
if (is_null($aTva)) {
|
|
|
-
|
|
|
return $this->tva;
|
|
|
} elseif ( $aTva == 'RESET' ) {
|
|
|
-
|
|
|
$this->tva = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->tva = $aTva;
|
|
|
}
|
|
|
}
|
|
@@ -469,13 +457,10 @@ class Facturation
|
|
|
public function numInvoice($aNumFacture = null)
|
|
|
{
|
|
|
if (is_null($aNumFacture)) {
|
|
|
-
|
|
|
return $this->num_facture;
|
|
|
} elseif ( $aNumFacture == 'RESET' ) {
|
|
|
-
|
|
|
$this->num_facture = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->num_facture = $aNumFacture;
|
|
|
}
|
|
|
}
|
|
@@ -490,13 +475,10 @@ class Facturation
|
|
|
{
|
|
|
|
|
|
if (is_null($aModeReglement)) {
|
|
|
-
|
|
|
return $this->mode_reglement;
|
|
|
} elseif ( $aModeReglement == 'RESET' ) {
|
|
|
-
|
|
|
$this->mode_reglement = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->mode_reglement = $aModeReglement;
|
|
|
}
|
|
|
}
|
|
@@ -511,13 +493,10 @@ class Facturation
|
|
|
{
|
|
|
|
|
|
if (is_null($aMontantEncaisse)) {
|
|
|
-
|
|
|
return $this->montant_encaisse;
|
|
|
} elseif ( $aMontantEncaisse == 'RESET' ) {
|
|
|
-
|
|
|
$this->montant_encaisse = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->montant_encaisse = $aMontantEncaisse;
|
|
|
}
|
|
|
}
|
|
@@ -532,13 +511,10 @@ class Facturation
|
|
|
{
|
|
|
|
|
|
if (is_null($aMontantRendu)) {
|
|
|
-
|
|
|
return $this->montant_rendu;
|
|
|
} elseif ( $aMontantRendu == 'RESET' ) {
|
|
|
-
|
|
|
$this->montant_rendu = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->montant_rendu = $aMontantRendu;
|
|
|
}
|
|
|
}
|
|
@@ -552,13 +528,10 @@ class Facturation
|
|
|
public function paiementLe($aPaiementLe = null)
|
|
|
{
|
|
|
if (is_null($aPaiementLe)) {
|
|
|
-
|
|
|
return $this->paiement_le;
|
|
|
} elseif ( $aPaiementLe == 'RESET' ) {
|
|
|
-
|
|
|
$this->paiement_le = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->paiement_le = $aPaiementLe;
|
|
|
}
|
|
|
}
|
|
@@ -572,13 +545,10 @@ class Facturation
|
|
|
public function prixTotalHt($aTotalHt = null)
|
|
|
{
|
|
|
if (is_null($aTotalHt)) {
|
|
|
-
|
|
|
return $this->prix_total_ht;
|
|
|
} elseif ( $aTotalHt == 'RESET' ) {
|
|
|
-
|
|
|
$this->prix_total_ht = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->prix_total_ht = $aTotalHt;
|
|
|
}
|
|
|
}
|
|
@@ -592,13 +562,10 @@ class Facturation
|
|
|
public function montantTva($aMontantTva = null)
|
|
|
{
|
|
|
if (is_null($aMontantTva)) {
|
|
|
-
|
|
|
return $this->montant_tva;
|
|
|
} elseif ( $aMontantTva == 'RESET' ) {
|
|
|
-
|
|
|
$this->montant_tva = null;
|
|
|
} else {
|
|
|
-
|
|
|
$this->montant_tva = $aMontantTva;
|
|
|
}
|
|
|
}
|