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