purchase order numbers [message #316671] |
Sun, 27 April 2008 08:58 |
*munnabhai*
Messages: 157 Registered: March 2008 Location: Riyadh
|
Senior Member |
|
|
Hi Guyz,
i have some critical query, i dont no how to do this task.
example if i have below sequence numbers
80001
80002
80003
suppose if i issue a purchase order 80001 to company AAA the next purchase order will be 80002
my company requirement is
if again purchase order issued to the same company AAA the sequence number will be continues the changes in the sequence will be 8000X_02 the changes in this sequence is ( _02 )like this if there is any previous purchase order issued to company BBB and wanna to issue new purchase order the sequence will be changed to 8000X_02 if issued again to the same company the sequence number will be continue 8000X_03
if new purchase order issued to the CCC the sequence will be like this 8000X
shall i create sequence everytime on a new vendor ?
how can I create the sequence like this?
Your answer will be highly appreciated.
Regards
|
|
|
|
|
|
|
|
Re: purchase order numbers [message #317376 is a reply to message #317204] |
Wed, 30 April 2008 20:31 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
My 'omit'. I did not specifiy either the trigger or the location in which to do the 'max+1' stuff in my initial reply.
My bad. I should have said ':new', not ':blk'.
David
|
|
|