Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
7s 649ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
2s 142ms
And
Transfer transport to carrier by JSON file "super-admin-skz" "true" confirmation
620ms
When
Click invoice button
3s 289ms
And
Set default invoice currency value
138ms
Then
Check that default currency value in invoice form is "EUR"
126ms
When
Change invoice default currency value in database for "USD" transport type alias "SMALLS_IMPORT" and principal alias "swisskrono"
036ms
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