We are generating purchlines by code for an upload csv file.

It creates the purchlines well.

However, in the import file are comming serials numbers.

If an item is repeated, and the dimensions are the same

as exception the serial number, we add the new quantity

to purchline.

But, before to post packing and invoice by code,

we need to do the registration.

If the serial number is just one, no problem,

but, how we do when are x quantity for a serial number

and y quantity for the same item and dimension?.

We are in Ax 2009.