You are allowed only one naming_series template and here you seem to have two.
Assuming you wish to generate a distinct series for your two STE types, 11 and 22, then define the naming_series say CODE-STE-.#####.-.YY.
Then in Stock Entry doctype add a Custom Field that contains a Select field named ‘code’ the lists Options 11 & 22. (So when a Stock Entry instance is created, you select either those option that is ‘pulled’ or substituted into the naming_series.)
Finally in the controller stock_entry.py define this
There are two naming series
11-STE-.#####.-.YY for Company A
22-STE-.#####.-.YY for Company B
Company A is having above 150 entry with 11-STE and using ##### in correct order.
I do not have any entry for 22-STE-.#####.-.YY yet.
But when doing stock entry for Company B with 22-STE-.#####.-.YY; it is using ##### as 22-STE-00055-17. I can’t understand why? It should be 22-STE-00001-17.
Naming series setup is as per instruction from user manual(Standard way).
inspect your db for more clues where the problem may be
MariaDB [d56cb677eaab3383]> select name,current from tabSeries where name like'%STE%';
MariaDB [d56cb677eaab3383]> select name,naming_series from `tabStock Entry`;
both command gives
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘%s for update’ at line 1
@mdwala You can not use .YY. in first place of naming series.
Also if you use slash “/” then URL will break when you share URL of document. Generally in Email we have URL for document. There are some URL encode mechanism we can do or we can avoid special charter from name
e.g for Invoice SBK/SINV/00001, url will be erp.domain.com//desk#Form/Sales%20Invoice/SBK/SINV/00001
I have created a series list in Sales Order, the list are BJAP.YY.MM.### and VJAP.YY.MM.###, the naming series does not auto increment.
for example:
BJAP.YY.MM.2106001 will be my first order
VJAP.YY.MM.2106001 again the second order will be of same sequence
BJAP.YY.MM.2106002 for next order
Please help me to find how to increment the each order as below:
BJAP.YY.MM.2106001
VJAP.YY.MM.2106002
BJAP.YY.MM.2106003
VJAP.YY.MM.2106004
I have created a series list in Sales Order, the list are BJAP.YY.MM.### and VJAP.YY.MM.###, the naming series does not auto increment.
for example:
BJAP.YY.MM.2106001 will be my first order
VJAP.YY.MM.2106001 again the second order will be of same sequence
BJAP.YY.MM.2106002 for next order
Please help me to find how to increment the each order as below:
BJAP.YY.MM.2106001
VJAP.YY.MM.2106002
BJAP.YY.MM.2106003
VJAP.YY.MM.2106004