Added prod config, session timeout changed, added
authorVásáry Dániel <vasary@elgekko.net>
Wed, 29 Nov 2023 14:05:24 +0000 (15:05 +0100)
committerVásáry Dániel <vasary@elgekko.net>
Wed, 29 Nov 2023 14:05:24 +0000 (15:05 +0100)
TODO.txt
lis-app/pom.xml
lis-app/src/main/resources/application-prod.yaml [new file with mode: 0644]
lis-ui/src/main/java/hu/user/lis/ui/view/IndexViewModel.java
lis-ui/src/main/resources/metainfo/zk/zk.xml
lis-ui/src/main/resources/web/index.zul
lis-workflow/src/main/java/hu/user/lis/workflow/invoice/service/WorkflowManagerService.java

index bd33dbca8a5ac8da21c3fde1bf9a45b7c9f157bc..d2d4cc5b90ec8a654bf6f042abbe8d7bc5766e6f 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -5,9 +5,22 @@
 - távlati: táblák exportja
 
 
-* tervezett számla is kiegyenlíthető?
-* mi a a számla import és tervezett számla kezelésének metódusa?
-
+közlemény (számla sorszám)?
+jóváírás/terhelés honnan jön?
+összeg?
+
+- A számla parkolóból indított folyamat nem frissíti a menüpontot
+- Számla lista felületen: költség/bevétel -> bejövő/kimenő és fizetve -> kiegyenlítve
+- Tervezett számla: legyen valahogy jelölve a listában valamint a jóváhagyás felületen lehessen párosítani
+- Árrés kalkulációnál mutassa a tervezett árrést és a valóst
+- új projekt létrehozásánál indítson egy Camunda folyamatot (kód Marcell-től)
+- Korábbi munkalap XLS migrator fejlesztése
+- Tervezett számla nem kiegyenlíthető
+- Bank import folyamat kialakítása
+    közlemény (számla sorszám)?
+    jóváírás/terhelés honnan jön?
+    összeg?
+- vágólapról másolva összeget a formátumot módosítani kell
 
 Számla import
 -------------
index cc4d61e779781fb61f0181e27101938075521fd9..b0d0c6e0784cfbc0c605a908aeb2416b77903442 100644 (file)
@@ -3,7 +3,7 @@
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
     <artifactId>lis-app</artifactId>
-    <version>0.1.8-SNAPSHOT</version>
+    <version>0.1.9-SNAPSHOT</version>
     <name>SLY-CRM</name>
     <parent>
         <groupId>hu.user</groupId>
             <artifactId>assertj-core</artifactId>
             <version>3.24.2</version>
         </dependency>
+        <dependency>
+            <groupId>javax.xml.bind</groupId>
+            <artifactId>jaxb-api</artifactId>
+            <version>2.3.1</version>
+        </dependency>
         <dependency>
             <groupId>jakarta.xml.bind</groupId>
             <artifactId>jakarta.xml.bind-api</artifactId>
diff --git a/lis-app/src/main/resources/application-prod.yaml b/lis-app/src/main/resources/application-prod.yaml
new file mode 100644 (file)
index 0000000..79fca70
--- /dev/null
@@ -0,0 +1,72 @@
+server:
+  port: 80
+  servlet:
+    context-path: /
+zk:
+  homepage: index
+  zul-view-resolver-enabled: true
+spring:
+  jpa:
+    show-sql: false
+    properties:
+      hibernate:
+        format_sql: true
+  main:
+    banner-mode: off
+  output:
+    ansi:
+      enabled: always
+  datasource:
+    type: com.zaxxer.hikari.HikariDataSource
+    url: jdbc:db2://db2.in.useribm.hu:50000/slycrm
+    username: db2admin
+    password: Passw@rd01
+camunda.bpm:
+  generic-properties.properties:
+    telemetry-reporter-activate: false
+  job-executor-acquire-by-priority: true
+  job-execution:
+    core-pool-size: 10
+    #lock-time-in-millis: 600000
+  database:
+    type: db2
+    schema-update: false
+    table-prefix: CAMUNDA.
+    schema-name: CAMUNDA
+  webapp:
+    enabled: true
+    index-redirect-enabled: false
+  admin-user:
+    id: kermit
+    password: password
+    firstName: Kermit
+  filter:
+    create: All tasks
+  job-execution.enabled: true
+logging:
+  config: classpath:logback-prod.xml
+  level:
+    org.hibernate.engine.jdbc.spi.SqlExceptionHelper: ERROR
+    org.springframework.web.clientRestTemplate: ERROR
+    logging.level.org.apache.http: ERROR
+    logging.level.httpclient.wire: ERROR
+application:
+  ui:
+    user-name: user
+    password: password
+  workflow:
+    import-invoice:
+      input-path: /temp/invoice-import
+      project-id-pattern: \d{4}-\d{4}
+service:
+  nav:
+    trust:
+      store: classpath:keystore/lis-keystore.jks
+      store.password: password
+    api:
+      url: https://api-test.onlineszamla.nav.gov.hu/invoiceService/v3
+      user: vkvyibj5xgqpbp0
+      password: Salabakt3r
+      sign-key: fe-9d8b-971c878376204BQEWTHH2HI6
+      exchange-key: 3af24BQEWTHH4TSX
+      sender-tax-number: 13364937
index 245a89f1bfda1d17712f777238636edcb4015096..4ab406b9c314347be577fd1e38e4be8935014a4d 100644 (file)
@@ -197,7 +197,7 @@ public class IndexViewModel implements EventListener<Event> {
     }
 
     @Command
-    public void onCancelImportInvoiceProcess() {
+    public void onCancelProcesses() {
         workflowManagerService.cancelInvoiceImportProcess();
     }
 
index 3d7fd40a666dc3fabded1fbe91ba9ce5dd9f4391..1fa2120edd8f62f7917bbf2f63182a8876ca1bf0 100644 (file)
@@ -2,7 +2,7 @@
 <zk>
     <config-name/>
     <session-config>
-        <session-timeout>300</session-timeout>
+        <session-timeout>28800</session-timeout>
         <timeout-uri>/timeout</timeout-uri>
     </session-config>
     <client-config>
index 36827560d22046ec543029a2a7aa9f7e950f5a61..cfe0b89615ca9334ae7f5b69b8f4d4539f4ad79a 100644 (file)
                                     <menuseparator/>
                                     <menuitem iconSclass="z-icon-code-fork" label="Import elindítása"
                                               onClick="@command('onStartImportInvoiceProcess')"/>
-                                    <menuitem iconSclass="z-icon-times-circle-o" label="Import leállítása"
-                                              onClick="@command('onCancelImportInvoiceProcess')"/>
                                 </menupopup>
                             </menu>
                             <menuseparator/>
-                            <menuitem iconSclass="z-icon-cogs" label="Beállítások"
-                                      onClick="@command(vm.selectPage('~./settings.zul'))"/>
-                            <!--                            <menuitem iconSclass="z-icon-cogs" label="Camunda"-->
-                            <!--                                      onClick="@command(vm.selectPage('/camunda'))"/>-->
+                            <menu iconSclass="z-icon-cogs" label="Adminisztráció">
+                                <menupopup>
+                                    <menuitem iconSclass="z-icon-cog" label="Beállítások"
+                                              onClick="@command(vm.selectPage('~./settings.zul'))"/>
+                                    <menuseparator/>
+                                    <!--                                    <menuitem iconSclass="z-icon-share-alt" label="Camunda"-->
+                                    <!--                                              onClick="@command(vm.selectPage('/camunda'))"/>-->
+                                    <menuitem iconSclass="z-icon-times-circle-o" label="Folyamatok leállítása"
+                                              onClick="@command('onCancelProcesses')"/>
+                                </menupopup>
+                            </menu>
                         </menubar>
                         <hbox hflex="min" pack="right">
                             <textbox value="@bind(vm.searchPhrase)" onOK="@command('search')" disabled="true"/>
index fc0137a0575582d4717624ebbe0efeb4e37bee01..36a4303d8f31c9282f30a11b6533e84fdc5a2e4f 100644 (file)
@@ -68,7 +68,7 @@ public class WorkflowManagerService {
     }
 
     public void cancelInvoiceImportProcess() {
-        List<ProcessInstance> processInstances = runtimeService.createProcessInstanceQuery().processDefinitionKey("importIncomingInvoices").list();
+        List<ProcessInstance> processInstances = runtimeService.createProcessInstanceQuery().active().list();
         processInstances.forEach(p -> {
             log.info("Killing {} {}", p.getProcessInstanceId(), p.getProcessDefinitionId());
             try {