The situation is simpler to understand with a hypothetical scenario.
Imagine that I bought 3 pieces:
Order A
Order B
Order C.
The supplier, as it did not have everything ready, divided the delivery of the pieces into 3 Tax Notes:
Invoice 1 - issued on 08/10/2018
Invoice 2 - issued on 08/12/2018
Nota Fiscal 3 - issued on 08/14/2018
The result is then seen in the table below:
WhatIwanttodonow(automatically,Iimaginethatthroughacombinationofnformulas)istosorttheorderoftheInvoicesaccordingtotheirdateofissueforeachpiece.Forexample,whatIwantis:
This is because Invoice 1 was the first to be issued, Invoice 2 in the second, and Invoice 3 in the third.
The problem is that the table is not organized, with an ordering of the parts and order of the Invoices.
Any ideas?
Thank you