Skip to content

Commit

Permalink
New: [ task #1005 ] Improves and best adaptations
Browse files Browse the repository at this point in the history
  • Loading branch information
simnandez committed Aug 2, 2013
1 parent 8a0e099 commit d0bd188
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions htdocs/core/modules/facture/mod_facture_mars.php
Expand Up @@ -33,7 +33,7 @@ class mod_facture_mars extends ModeleNumRefFactures
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
var $prefixinvoice='FA';
var $prefixreplacement='FR';
var $prefixproforma='FP';
var $prefixdeposit='AC';
var $prefixcreditnote='AV';
var $error='';

Expand All @@ -46,7 +46,7 @@ function info()
{
global $langs;
$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);
}

/**
Expand Down Expand Up @@ -132,8 +132,9 @@ function getNextValue($objsoc,$facture,$mode='next')
$prefix=$this->prefixinvoice;

if ($facture->type == 1) $prefix=$this->prefixreplacement;
elseif ($facture->type == 2) $prefix=$this->prefixcreditnote;
elseif ($facture->type == 4) $prefix=$this->prefixproforma;
else if ($facture->type == 2) $prefix=$this->prefixcreditnote;
else if ($facture->type == 3) $prefix=$this->prefixdeposit;
else $prefix=$this->prefixinvoice;

// D'abord on recupere la valeur max
$posindice=8;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/langs/en_US/bills.lang
Expand Up @@ -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)
# 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
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.
4 changes: 2 additions & 2 deletions htdocs/langs/es_ES/bills.lang
Expand Up @@ -411,7 +411,7 @@ PDFCrabeDescription=Modelo de factura completo (modelo recomendado por defecto)
# oursin PDF Model
PDFOursinDescription=Modelo de factura completo (modelo alternativo)
# 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
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
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 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.
2 changes: 1 addition & 1 deletion htdocs/langs/fr_FR/bills.lang
Expand Up @@ -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)
# 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
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.

0 comments on commit d0bd188

Please sign in to comment.