Création des édits

This commit is contained in:
2025-12-03 10:39:28 +01:00
parent 05db391f1b
commit 1cb7e7dd66
16 changed files with 24 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,2 +1,2 @@
4.1.15
2025-11-28
4.1.20
2025-12-03

Binary file not shown.

View File

@@ -1,2 +1,2 @@
1.0.35
2025-12-01
1.0.37
2025-12-03

View File

@@ -10,8 +10,6 @@ set VERSION_FILE=..\Excel\prod\Ratio_Cuisine_VERSION.txt
echo Mise à jour de version...
python "maj_version.py" "%VERSION_FILE%"
REM Si tu utilises plutôt 'py', commente la ligne au-dessus et décommente celle-ci :
REM py "maj_version.py" "%VERSION_FILE%"
if errorlevel 1 (
echo ERREUR lors de la mise à jour de version.
pause
@@ -22,6 +20,9 @@ REM === 2) CHEMINS DES FICHIERS EXCEL ===
set SRC=..\Excel\dev\Ratio_Cuisine_dev.xlsm
set DST_DIR=..\Excel\prod
REM Dossier commun de sauvegardes (Cuisine + Restauration)
set BACKUP_DIR=..\Excel\backup
REM Vérifications
if not exist "%SRC%" (
echo ERREUR : fichier source introuvable :
@@ -37,10 +38,16 @@ if not exist "%DST_DIR%" (
exit /b 1
)
REM === 3) GÉNÉRATION DE LA DATE AU FORMAT AAAAMMJJ (robuste, via PowerShell) ===
REM Création auto du dossier de sauvegarde s'il n'existe pas
if not exist "%BACKUP_DIR%" (
mkdir "%BACKUP_DIR%"
)
REM === 3) GÉNÉRATION DE LA DATE AU FORMAT AAAAMMJJ (via PowerShell) ===
for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd"') do set TODAY=%%a
set BACKUP=%DST_DIR%\Ratio_Cuisine_%TODAY%.xlsm
REM Le fichier de sauvegarde va maintenant dans BACKUP_DIR
set BACKUP=%BACKUP_DIR%\Ratio_Cuisine_%TODAY%.xlsm
REM === 4) COPIE VERS PROD ===
echo Copie vers la version de production...

View File

@@ -24,6 +24,13 @@ REM === 2) CHEMINS DES FICHIERS EXCEL ===
set SRC=..\Excel\dev\Ratio_Restauration_dev.xlsm
set DST_DIR=..\Excel\prod
REM Dossier commun de sauvegardes (Cuisine + Restauration)
set BACKUP_DIR=..\Excel\backup
if not exist "%BACKUP_DIR%" (
mkdir "%BACKUP_DIR%"
)
REM Vérifications
if not exist "%SRC%" (
echo ERREUR : fichier source introuvable :
@@ -42,7 +49,7 @@ if not exist "%DST_DIR%" (
REM === 3) GÉNÉRATION DE LA DATE AU FORMAT AAAAMMJJ ===
for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd"') do set TODAY=%%a
set BACKUP=%DST_DIR%\Ratio_Restauration_%TODAY%.xlsm
set BACKUP=%BACKUP_DIR%\Ratio_Restauration_%TODAY%.xlsm
REM === 4) COPIE VERS PROD ===
echo Copie vers la version de production...
@@ -55,3 +62,4 @@ copy /Y "%SRC%" "%BACKUP%"
echo --- Mise en prod terminee ---
endlocal
exit /b 0