File tree 6 files changed +17
-3
lines changed
java/ru/mystamps/web/feature
robotframework/series/sales/import
wiremock/__files/series/sales/import/logic
6 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,14 @@ class SeriesSaleImportForm extends React.Component {
69
69
document . getElementById ( 'currency' ) . value = data . currency ;
70
70
}
71
71
72
+ if ( data . altPrice ) {
73
+ document . getElementById ( 'alt-price' ) . value = data . altPrice ;
74
+ }
75
+
76
+ if ( data . altCurrency ) {
77
+ document . getElementById ( 'alt-currency' ) . value = data . altCurrency ;
78
+ }
79
+
72
80
if ( data . sellerId ) {
73
81
document . getElementById ( 'seller' ) . value = data . sellerId ;
74
82
}
Original file line number Diff line number Diff line change @@ -28,4 +28,6 @@ public class SeriesSaleExtractedInfo {
28
28
private final Integer sellerId ;
29
29
private final BigDecimal price ;
30
30
private final String currency ;
31
+ private final BigDecimal altPrice ;
32
+ private final String altCurrency ;
31
33
}
Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ public SeriesSaleExtractedInfo downloadAndParse(String url) {
87
87
return new SeriesSaleExtractedInfo (
88
88
seriesInfo .getSellerId (),
89
89
seriesInfo .getPrice (),
90
- seriesInfo .getCurrency ()
90
+ seriesInfo .getCurrency (),
91
+ seriesInfo .getAltPrice (),
92
+ seriesInfo .getAltCurrency ()
91
93
);
92
94
}
93
95
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public final class ResourceUrl {
32
32
public static final String STATIC_RESOURCES_URL = "https://stamps.filezz.ru" ;
33
33
34
34
// MUST be updated when any of our resources were modified
35
- public static final String RESOURCES_VERSION = "v0.4.2.4 " ;
35
+ public static final String RESOURCES_VERSION = "v0.4.2.5 " ;
36
36
37
37
// CheckStyle: ignore LineLength for next 10 lines
38
38
private static final String CATALOG_UTILS_JS = "/public/js/" + RESOURCES_VERSION + "/CatalogUtils.min.js" ;
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Import a series sale with an existing seller
18
18
List Selection Should Be id:seller Eicca Toppinen
19
19
Textfield Value Should Be id:price 350
20
20
List Selection Should Be id:currency RUB
21
+ Textfield Value Should Be id:alt-price 6.3
22
+ List Selection Should Be id:alt-currency EUR
21
23
22
24
Import a series sale without information
23
25
Input Text id:series-sale-url ${MOCK_SERVER } /series/sales/import/logic/empty.html
Original file line number Diff line number Diff line change 6
6
</ head >
7
7
< body >
8
8
Seller: < a id ="test-seller " href ="http://example.com/eicca-toppinen "> Eicca Toppinen</ a > < br />
9
- Price: < span id ="test-price "> 350</ span > < br />
9
+ Price: < span id ="test-price "> 350</ span > ( < span id =" alt-price " > 6.3 </ span > < span id =" alt-currency " > EUR </ span > ) < br />
10
10
</ body >
11
11
</ html >
You can’t perform that action at this time.
0 commit comments