New: [ task #1005 ] Improves and best adaptations
This commit is contained in:
parent
8a0e0999f5
commit
d0bd188e74
@ -33,7 +33,7 @@ class mod_facture_mars extends ModeleNumRefFactures
|
|||||||
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
|
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
|
||||||
var $prefixinvoice='FA';
|
var $prefixinvoice='FA';
|
||||||
var $prefixreplacement='FR';
|
var $prefixreplacement='FR';
|
||||||
var $prefixproforma='FP';
|
var $prefixdeposit='AC';
|
||||||
var $prefixcreditnote='AV';
|
var $prefixcreditnote='AV';
|
||||||
var $error='';
|
var $error='';
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ class mod_facture_mars extends ModeleNumRefFactures
|
|||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
return $langs->trans('MarsNumRefModelDesc1',$this->prefixinvoice,$this->prefixreplacement,$this->prefixproforma,$this->prefixcreditnote);
|
return $langs->trans('MarsNumRefModelDesc1',$this->prefixinvoice,$this->prefixreplacement,$this->prefixdeposit,$this->prefixcreditnote);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -133,7 +133,8 @@ class mod_facture_mars extends ModeleNumRefFactures
|
|||||||
|
|
||||||
if ($facture->type == 1) $prefix=$this->prefixreplacement;
|
if ($facture->type == 1) $prefix=$this->prefixreplacement;
|
||||||
else if ($facture->type == 2) $prefix=$this->prefixcreditnote;
|
else if ($facture->type == 2) $prefix=$this->prefixcreditnote;
|
||||||
elseif ($facture->type == 4) $prefix=$this->prefixproforma;
|
else if ($facture->type == 3) $prefix=$this->prefixdeposit;
|
||||||
|
else $prefix=$this->prefixinvoice;
|
||||||
|
|
||||||
// D'abord on recupere la valeur max
|
// D'abord on recupere la valeur max
|
||||||
$posindice=8;
|
$posindice=8;
|
||||||
|
|||||||
@ -412,6 +412,6 @@ PDFCrabeDescription=Invoice PDF template Crabe. A complete invoice template (Tem
|
|||||||
PDFOursinDescription=Invoice PDF template Oursin. A complete invoice template (Template alternative)
|
PDFOursinDescription=Invoice PDF template Oursin. A complete invoice template (Template alternative)
|
||||||
# NumRef Modules
|
# NumRef Modules
|
||||||
TerreNumRefModelDesc1=Return numero with format %syymm-nnnn for standard invoices, %syymm-nnnn for credit notes and %syymm-nnnn for deposits where yy is year, mm is month and nnnn is a sequence with no break and no return to 0
|
TerreNumRefModelDesc1=Return numero with format %syymm-nnnn for standard invoices, %syymm-nnnn for credit notes and %syymm-nnnn for deposits where yy is year, mm is month and nnnn is a sequence with no break and no return to 0
|
||||||
MarsNumRefModelDesc1=Return numero with format %syymm-nnnn for standard invoices, %syymm-nnnn for replacement invoices, %syymm-nnnn for proforma invoices and %syymm-nnnn for credit notes where yy is year, mm is month and nnnn is a sequence with no break and no return to 0
|
MarsNumRefModelDesc1=Return numero with format %syymm-nnnn for standard invoices, %syymm-nnnn for replacement invoices, %syymm-nnnn for credit notes and %syymm-nnnn for credit notes where yy is year, mm is month and nnnn is a sequence with no break and no return to 0
|
||||||
|
|
||||||
TerreNumRefModelError=A bill starting with $syymm already exists and is not compatible with this model of sequence. Remove it or rename it to activate this module.
|
TerreNumRefModelError=A bill starting with $syymm already exists and is not compatible with this model of sequence. Remove it or rename it to activate this module.
|
||||||
|
|||||||
@ -411,7 +411,7 @@ PDFCrabeDescription=Modelo de factura completo (modelo recomendado por defecto)
|
|||||||
# oursin PDF Model
|
# oursin PDF Model
|
||||||
PDFOursinDescription=Modelo de factura completo (modelo alternativo)
|
PDFOursinDescription=Modelo de factura completo (modelo alternativo)
|
||||||
# NumRef Modules
|
# NumRef Modules
|
||||||
TerreNumRefModelDesc1=Devuelve el número bajo el formato %syymm-nnnn para las facturas y %syymm-nnnn para los abonos donde yy es el año, mm. el mes y nnnn un contador secuencial sin ruptura y sin permanencia a 0
|
TerreNumRefModelDesc1=Devuelve el número bajo el formato %syymm-nnnn para las facturas, %syymm-nnnn para los abonos y %syymm-nnnn para las facturas de anticipo donde yy es el año, mm. el mes y nnnn un contador secuencial sin ruptura y sin permanencia a 0
|
||||||
MarsNumRefModelDesc1=Devuelve el número bajo el formato %syymm-nnnn para las facturas, %syymm-nnnn para las facturas rectificativas, %syymm-nnnn para las facturas proforma y %syymm-nnnn para los abonos donde yy es el año, mm. el mes y nnnn un contador secuencial sin ruptura y sin permanencia a 0
|
MarsNumRefModelDesc1=Devuelve el número bajo el formato %syymm-nnnn para las facturas, %syymm-nnnn para las facturas rectificativas, %syymm-nnnn para las facturas de anticipo y %syymm-nnnn para los abonos donde yy es el año, mm. el mes y nnnn un contador secuencial sin ruptura y sin permanencia a 0
|
||||||
|
|
||||||
# TerreNumRefModelError=A bill starting with $syymm already exists and is not compatible with this model of sequence. Remove it or rename it to activate this module.
|
# TerreNumRefModelError=A bill starting with $syymm already exists and is not compatible with this model of sequence. Remove it or rename it to activate this module.
|
||||||
|
|||||||
@ -412,6 +412,6 @@ PDFCrabeDescription=Modèle de facture PDF complet (modèle recommandé par déf
|
|||||||
PDFOursinDescription=Modèle de facture PDF complet (modèle alternatif)
|
PDFOursinDescription=Modèle de facture PDF complet (modèle alternatif)
|
||||||
# NumRef Modules
|
# NumRef Modules
|
||||||
TerreNumRefModelDesc1=Renvoie le numéro sous la forme %syymm-nnnn pour les factures, %syymm-nnnn pour les avoirs et %syymm-nnnn pour les acomptes où yy est l'année, mm le mois et nnnn un compteur séquentiel sans rupture et sans remise à 0
|
TerreNumRefModelDesc1=Renvoie le numéro sous la forme %syymm-nnnn pour les factures, %syymm-nnnn pour les avoirs et %syymm-nnnn pour les acomptes où yy est l'année, mm le mois et nnnn un compteur séquentiel sans rupture et sans remise à 0
|
||||||
MarsNumRefModelDesc1=Renvoie le numéro sous la forme %syymm-nnnn pour les factures, %syymm-nnnn pour les factures de remplacement, %syymm-nnnn pour les factures proforma et %syymm-nnnn pour les avoirs où yy est l'année, mm le mois et nnnn un compteur séquentiel sans rupture et sans remise à 0
|
MarsNumRefModelDesc1=Renvoie le numéro sous la forme %syymm-nnnn pour les factures, %syymm-nnnn pour les factures de remplacement, %syymm-nnnn pour les acomptes et %syymm-nnnn pour les avoirs où yy est l'année, mm le mois et nnnn un compteur séquentiel sans rupture et sans remise à 0
|
||||||
|
|
||||||
TerreNumRefModelError=Une facture commençant par $syymm existe déjà et est incompatible avec cet modèle de numérotation. Supprimez-la ou renommez-la pour activer ce module.
|
TerreNumRefModelError=Une facture commençant par $syymm existe déjà et est incompatible avec cet modèle de numérotation. Supprimez-la ou renommez-la pour activer ce module.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user