Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
8s 728ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
2s 023ms
And
Transfer transport to carrier by JSON file "super-admin-skz" "true" confirmation
563ms
When
Click invoice button
3s 347ms
And
Set default invoice currency value
178ms
Then
Check that default currency value in invoice form is "EUR"
138ms
When
Change invoice default currency value in database for "USD" transport type alias "SMALLS_IMPORT" and principal alias "swisskrono"
050ms
java.lang.IllegalStateException: Transaction already active
at org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:75)
at Utils.JpaUtils.Apollo.SelectService.ApolloUpdateDbService.updateInvoiceDefaultCurrency(ApolloUpdateDbService.java:55)
at CucumberTests.Transport.InvoiceTest.changeDefaultCurrencyValueInDatabaseForInTransportType(InvoiceTest.java:48)
at ✽.Change invoice default currency value in database for "USD" transport type alias "SMALLS_IMPORT" and principal alias "swisskrono"(file:Features/Atom/Transport/TransportTable/Invoice.feature:11)
And
Clear all cache
000ms
And
Login as "swisskrono-admin"
000ms
And
Go to "TRANSPORT_TABLE"
000ms
And
Show all transport types
000ms
And
Click invoice button
000ms
Then
Check that default currency value in invoice form is "USD"
000ms