Add shared ERP sync core and Optima adapter

This commit is contained in:
janusz committed 2026-09-08 02:07:42 +00:00
1 parent a040a91d1f
commit 6c4e50f7a6
366 files changed
+4707 -478

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
@echo off
setlocal
cd /d "%~dp0"
if not exist "smartb2bsync-optima.exe" (
echo Brak smartb2bsync-optima.exe. Najpierw uruchom publish-optima.ps1.
exit /b 1
)
if not exist "..\config" mkdir "..\config"
if not exist "..\config\optima.json" (
if not exist "..\config\optima.json.sample" (
echo Brak ..\config\optima.json.sample.
exit /b 1
)
copy /Y "..\config\optima.json.sample" "..\config\optima.json" >nul
echo Utworzono lokalna konfiguracje ..\config\optima.json.
)
smartb2bsync-optima.exe install
if errorlevel 1 exit /b %errorlevel%
smartb2bsync-optima.exe start
exit /b %errorlevel%
Binary file not shown.
+14
View File
@@ -0,0 +1,14 @@
<service>
<id>smartb2bsync-optima</id>
<name>SmartB2B SYNC - Comarch ERP Optima</name>
<description>Synchronizuje Comarch ERP Optima z portalem SmartB2B.</description>
<executable>%BASE%\..\SmartB2B.Optima.Service.exe</executable>
<workingdirectory>%BASE%\..</workingdirectory>
<!-- <arguments>/verbose</arguments> -->
<stoptimeout>45sec</stoptimeout>
<log mode="roll-by-time">
<pattern>yyyyMMdd</pattern>
</log>
<onfailure action="restart" delay="10 sec" />
<delayedAutoStart />
</service>
+7
View File
@@ -0,0 +1,7 @@
@echo off
setlocal
cd /d "%~dp0"
smartb2bsync-optima.exe stop
smartb2bsync-optima.exe uninstall
exit /b %errorlevel%