BO - Order details - Check multi invoice behaviour

Details

Steps

Step Description Expected result
Go to BO > Orders > Add new order A new order should be created
Click on latest Order created > Update status to “Payment accepted” to generate an Invoice Status is updated

An invoice is available
Click on Add a product The addProductTableRow is displayed
Click on “Add product”, search the same product and click on “Add” A red alert “This product is already in the invoice #INxxxx, please edit the quantity instead.” is displayed and the product cannot be added again
In the invoice column, select “Create a new invoice” A block “addProductNewInvoiceInfo” is well displayed

Check that the carrier name is well displayed & Free shipping option is not selected
Edit the price of the product and click on Add A modal is opened 
h4. “Create a new invoice
Are you sure you want to create a new invoice?”
Click on Create An alert “The product was successfully added."

Check that the price of two products is updated

Check that the new invoice is well added
In the Documents tab, download the invoice check that:

The product name is correct

Product reference is ok

The total is ok
Edit the price, click on “Save” and confirm the modification A modal is displayed
h4. “Edit the price
×
Are you sure you want to edit this product price? It will be applied to all invoices of this order.”
Click on “Edit” Check that the price is updated is the two products
Click “View invoice” to download all invoices The list of invoices is dowloaded

check that the price of each product is OK and total is ok
Scroll down to Carrier > Click on Carrier tab > Click on Edit and select a carrier not free A green alert “Successful update.” is displayed
Click on Add a product The addProductTableRow is displayed
Click on “Add product”, search another product In the Invoice column, check there are two existing invoices
In the invoice column, select “Create a new invoice” A block “addProductNewInvoiceInfo” is well displayed

Check that the carrier name is well displayed & Free shipping option is not selected
Select Free shipping and click on Add A modal is opened 
h4. “Create a new invoice

Are you sure you want to create a new invoice?”
Click on Create An alert “The product was successfully added."

- Check that the new invoice is well added

- Check that a new column is added in the discount block with this name “[Generated] CartRule for Free Shipping”
Download the third invoice check that:

The product name is correct

Product reference is ok

The shipping cost is free

The total is ok