Given
Login as "swisskrono-admin" and set token of apiUsername "super-admin-skz"
2s 134ms
And
Create transport "CREATE_SMALLS_IMPORT" by JSON file as "super-admin-skz"
1s 279ms
And
Transfer transport to carrier by JSON file "super-admin-skz" "true" confirmation
102ms
When
Click invoice button
2s 413ms
And
Set default invoice currency value
055ms
Then
Check that default currency value in invoice form is "EUR"
047ms
When
Change invoice default currency value in database for "USD" transport type alias "SMALLS_IMPORT" and principal alias "swisskrono"
004ms
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