Mise en ordre UF Frais
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Excel/backup/Ratio_Cuisine_Vers4.1.23.xlsm
Normal file
BIN
Excel/backup/Ratio_Cuisine_Vers4.1.23.xlsm
Normal file
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.
BIN
Excel/backup/Ratio_Restauration_Vers1.0.41.xlsm
Normal file
BIN
Excel/backup/Ratio_Restauration_Vers1.0.41.xlsm
Normal file
Binary file not shown.
BIN
Excel/backup/Ratio_Restauration_Vers1.0.42.xlsm
Normal file
BIN
Excel/backup/Ratio_Restauration_Vers1.0.42.xlsm
Normal file
Binary file not shown.
BIN
Excel/backup/Ratio_Restauration_Vers1.0.43.xlsm
Normal file
BIN
Excel/backup/Ratio_Restauration_Vers1.0.43.xlsm
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,2 +1,2 @@
|
|||||||
4.1.21
|
4.1.24
|
||||||
2025-12-05
|
2025-12-06
|
||||||
|
|||||||
Binary file not shown.
@@ -1,2 +1,2 @@
|
|||||||
1.0.38
|
1.0.44
|
||||||
2025-12-05
|
2025-12-07
|
||||||
|
|||||||
@@ -4,9 +4,14 @@ setlocal ENABLEDELAYEDEXPANSION
|
|||||||
REM --- Se place dans le dossier du .bat ---
|
REM --- Se place dans le dossier du .bat ---
|
||||||
cd /d "%~dp0"
|
cd /d "%~dp0"
|
||||||
|
|
||||||
REM === 1) MISE À JOUR DE VERSION ===
|
|
||||||
REM Chemin du fichier de version pour la CUISINE
|
REM Chemin du fichier de version pour la CUISINE
|
||||||
set VERSION_FILE=..\Excel\prod\Ratio_Cuisine_VERSION.txt
|
set "VERSION_FILE=..\Excel\prod\Ratio_Cuisine_VERSION.txt"
|
||||||
|
|
||||||
|
REM On lit l'ANCIENNE version avant de la mettre à jour (pour nommer la sauvegarde)
|
||||||
|
set "OLD_VERSION="
|
||||||
|
if exist "%VERSION_FILE%" (
|
||||||
|
set /p OLD_VERSION=<"%VERSION_FILE%"
|
||||||
|
)
|
||||||
|
|
||||||
echo Mise à jour de version...
|
echo Mise à jour de version...
|
||||||
python "maj_version.py" "%VERSION_FILE%"
|
python "maj_version.py" "%VERSION_FILE%"
|
||||||
@@ -43,11 +48,13 @@ if not exist "%BACKUP_DIR%" (
|
|||||||
mkdir "%BACKUP_DIR%"
|
mkdir "%BACKUP_DIR%"
|
||||||
)
|
)
|
||||||
|
|
||||||
REM === 3) GÉNÉRATION DE LA DATE AU FORMAT AAAAMMJJ (via PowerShell) ===
|
REM === 3) NOM DU FICHIER DE SAUVEGARDE AVEC ANCIENNE VERSION ===
|
||||||
for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd"') do set TODAY=%%a
|
if "%OLD_VERSION%"=="" (
|
||||||
|
REM Sécurité : si on n'a pas réussi à lire la version, on met un nom générique
|
||||||
REM Le fichier de sauvegarde va maintenant dans BACKUP_DIR
|
set "BACKUP=%BACKUP_DIR%\Ratio_Cuisine_sansVersion.xlsm"
|
||||||
set BACKUP=%BACKUP_DIR%\Ratio_Cuisine_%TODAY%.xlsm
|
) else (
|
||||||
|
set "BACKUP=%BACKUP_DIR%\Ratio_Cuisine_Vers%OLD_VERSION%.xlsm"
|
||||||
|
)
|
||||||
|
|
||||||
REM === 4) COPIE VERS PROD ===
|
REM === 4) COPIE VERS PROD ===
|
||||||
echo Copie vers la version de production...
|
echo Copie vers la version de production...
|
||||||
|
|||||||
@@ -6,17 +6,20 @@ cd /d "%~dp0"
|
|||||||
|
|
||||||
echo --- Mise en prod Ratio_Restauration ---
|
echo --- Mise en prod Ratio_Restauration ---
|
||||||
|
|
||||||
REM === 1) MISE À JOUR DE VERSION ===
|
REM Chemin du fichier de version pour la RESTAURATION
|
||||||
REM Fichier de version pour la restauration
|
set "VERSION_FILE=..\Excel\prod\Ratio_Restauration_VERSION.txt"
|
||||||
set VERSION_FILE=..\Excel\prod\Ratio_Restauration_VERSION.txt
|
|
||||||
|
REM On lit l'ANCIENNE version pour la sauvegarde
|
||||||
|
set "OLD_VERSION="
|
||||||
|
if exist "%VERSION_FILE%" (
|
||||||
|
set /p OLD_VERSION=<"%VERSION_FILE%"
|
||||||
|
)
|
||||||
|
|
||||||
echo Mise à jour de version...
|
echo Mise à jour de version...
|
||||||
python "maj_version.py" "%VERSION_FILE%"
|
python "maj_version.py" "%VERSION_FILE%"
|
||||||
REM Si tu utilises 'py' au lieu de 'python', commente la ligne ci-dessus et décommente celle-ci :
|
|
||||||
REM py "maj_version.py" "%VERSION_FILE%"
|
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo ERREUR lors de la mise à jour de version.
|
echo ERREUR lors de la mise à jour de version.
|
||||||
endlocal
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -46,10 +49,13 @@ if not exist "%DST_DIR%" (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
REM === 3) GÉNÉRATION DE LA DATE AU FORMAT AAAAMMJJ ===
|
REM === NOM DU FICHIER DE SAUVEGARDE AVEC ANCIENNE VERSION ===
|
||||||
for /f %%a in ('powershell -NoProfile -Command "Get-Date -Format yyyyMMdd"') do set TODAY=%%a
|
if "%OLD_VERSION%"=="" (
|
||||||
|
REM Sécurité si la lecture a échoué
|
||||||
set BACKUP=%BACKUP_DIR%\Ratio_Restauration_%TODAY%.xlsm
|
set "BACKUP=%BACKUP_DIR%\Ratio_Restauration_sansVersion.xlsm"
|
||||||
|
) else (
|
||||||
|
set "BACKUP=%BACKUP_DIR%\Ratio_Restauration_Vers%OLD_VERSION%.xlsm"
|
||||||
|
)
|
||||||
|
|
||||||
REM === 4) COPIE VERS PROD ===
|
REM === 4) COPIE VERS PROD ===
|
||||||
echo Copie vers la version de production...
|
echo Copie vers la version de production...
|
||||||
|
|||||||
Reference in New Issue
Block a user