Quote to Po Numbering

I need to change automatically the no series for a PO when we transfer a quote to order based on Amount condition
if amount < 10000 $ then no series PO…
else no series Tender…
what is the code that must be modify to obtain this result?

remark: i add to the Purchase and payables setup field Tender that contain the no series for tender

Hi,
The Order No. is set automatically while transferring quote to order using Insert to TRUE.
You need to customize table Purchase header and somewhere at InitInsert & InitRecord functions.

thanks