Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
6523 Näkymät

I have many branch in a company. At time of sale order creation sequence number should be generated according to the branch ie, instead SO as preffix it should be branch code first followed by number 

Avatar
Hylkää
Paras vastaus

hello

you can achieve it using calling the different sequence based on the branch.

you can see one example into customer invoice and vendor bills. based on the invoice type the sequence is generate. so as same way you can do it into your code.

for code you can see sale.order object's create method. i hope this will helps you.

Avatar
Hylkää
Tekijä

Thanks, Mitul Shingala

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
toukok. 24
8052
0
toukok. 21
2897
1
helmik. 19
2638
0
jouluk. 18
2886
0
heinäk. 18
3227