Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
fe1c83b2
Commit
fe1c83b2
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix code not reachable
parent
348e004d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/modules/facture/mod_facture_mercure.php
+1
-2
1 addition, 2 deletions
htdocs/core/modules/facture/mod_facture_mercure.php
htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
+2
-7
2 additions, 7 deletions
...dules/supplier_invoice/mod_facture_fournisseur_cactus.php
with
3 additions
and
9 deletions
htdocs/core/modules/facture/mod_facture_mercure.php
+
1
−
2
View file @
fe1c83b2
...
...
@@ -29,8 +29,7 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/facture/modules_facture.php';
/**
* \class mod_facture_mercure
* \brief Classe du modele de numerotation de reference de facture Mercure
* Class of numbering module Mercure for invoices
*/
class
mod_facture_mercure
extends
ModeleNumRefFactures
{
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
+
2
−
7
View file @
fe1c83b2
...
...
@@ -29,8 +29,7 @@ require_once DOL_DOCUMENT_ROOT .'/core/modules/supplier_invoice/modules_facturef
/**
* \class mod_facture_fournisseur_cactus
* \brief Cactus Class of numbering models of suppliers invoices references
* Cactus Class of numbering models of suppliers invoices references
*/
class
mod_facture_fournisseur_cactus
extends
ModeleNumRefSuppliersInvoices
{
...
...
@@ -91,11 +90,7 @@ class mod_facture_fournisseur_cactus extends ModeleNumRefSuppliersInvoices
$row
=
$db
->
fetch_row
(
$resql
);
if
(
$row
)
{
$siyymm
=
substr
(
$row
[
0
],
0
,
6
);
$max
=
$row
[
0
];
}
}
if
(
!
$siyymm
||
preg_match
(
'/'
.
$this
->
prefixinvoice
.
'[0-9][0-9][0-9][0-9]/i'
,
$siyymm
))
{
return
true
;
}
else
if
(
$siyymm
&&
!
preg_match
(
'/'
.
$this
->
prefixinvoice
.
'[0-9][0-9][0-9][0-9]/i'
,
$siyymm
))
{
$langs
->
load
(
"errors"
);
$this
->
error
=
$langs
->
trans
(
'ErrorNumRefModel'
,
$max
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment