mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix: on vrifie si il exsite une anne prcdente sinon le delta sera appliqu de nouveau sur la nouvelle anne
This commit is contained in:
@@ -106,6 +106,10 @@ class mod_commande_diamant extends ModeleNumRefCommandes
|
||||
if ($row) $cyy = substr($row[0],0,3);
|
||||
}
|
||||
|
||||
//on v<>rifie si il y a une ann<6E>e pr<70>c<EFBFBD>dente
|
||||
//sinon le delta sera appliqu<71> de nouveau sur la nouvelle ann<6E>e
|
||||
$pryy = 'PR'.strftime("%y",mktime(0,0,0,date("m"),date("d"),date("Y")-1));
|
||||
|
||||
// Si au moins un champ respectant le mod<6F>le a <20>t<EFBFBD> trouv<75>e
|
||||
if (eregi('C[0-9][0-9]',$cyy))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user