Change the order of item code in invoice

SOLVED

Hi all,

I want to change the order of the item code appears on the SO invoice.

I have tried something like this 

line.PrintSequenceNumber = printSeqNo; //where printSeqNo is already set

and on the report I set to order by PrintSequenceNumber.

but after posting the SO, the PrintSequenceNumber has different value. How do I make the initial value of PrintSequenceNumber (that I set) permanent after posting?

thank you

Parents
  • +1
    verified answer

    The PrintSequenceNumbers are set as part of the Post routine, so you have 2 choices:

    1. Resequence the SOPOrderReturn.Lines collection before Post, so it's in the order you want. You can move each line with Lines.Move.

    or 2. Change the PrintSequenceNumbers after the order has been posted; eg, in the form's EndSave event

Reply
  • +1
    verified answer

    The PrintSequenceNumbers are set as part of the Post routine, so you have 2 choices:

    1. Resequence the SOPOrderReturn.Lines collection before Post, so it's in the order you want. You can move each line with Lines.Move.

    or 2. Change the PrintSequenceNumbers after the order has been posted; eg, in the form's EndSave event

Children