Load CareLabel on cart
Background
We have a component item code as 413979 A finish good item code as cc: 100978, name: "NH500 t-shirt men", code: "NH500 t-shirt men", item code 2760431 A finish good supplier as SCM GARMENT Component provider : Avery dennison India
standard adding finish good item to the cart
Given 2760431 fg item code is configured with 414861 carelabel code for CNUF 71921
When 2760431 is input in the cart for SCM GARMENT (71921)
Then A new cart line with 414861 carelabel code and artworks links, 2760431 fg item code is recorded.
standard adding 2 different finish good items to the cart, with the same carelabel code.
Given the following configuration in the decathlon carelabel referential :
| fg item code | carelabel code | cnuf |
|---|---|---|
| 2760431 | 414861 | 71921 |
| 2760430 | 414861 | 71921 |
When 2760430 is input in the cart for SCM GARMENT (71921)
And 2760431 is input in the cart for SCM GARMENT (71921)
Then lines of the cart are
| fg item code | carelabel code | recto link | verso link |
|---|---|---|---|
| 2760431 | 414861 | url1 | url1 |
| 2760430 | 414861 | url2 | url2 |
standard adding several time the same fg item to the cart
Given 2760431 fg item code is configured with 414861 carelabel code for CNUF 71921
And The FGS SCM GARMENT (71921) have already a cart with one line :
| fg item code | Quantity | carelabel code | recto link | verso link |
|---|---|---|---|---|
| 2760431 | 10 000 | 414861 | url1 | url1 |
When The FGS SCM GARMENT (71921) is adding 2760431 fg item code with quantity of 5000
Then lines of the cart are
| fg item code | Quantity | carelabel code | recto link | verso link |
|---|---|---|---|---|
| 2760431 | 15 000 | 414861 | url1 | url1 |