SAP Business One SDK Support

SDK Help : Custom line numbers for sales orders ?

We need to integrate our system with B1. We create sales orders with our system and then we export them to B1 using DI API.

Our system enumerates order lines starting from 10 and incrementing by 10 (so: 10, 20, 30,...).
I see B1 enumerates order lines starting from 0 and incrementing by 1 (so: 0, 1, 2,...).

Can we change this behaviour in B1, so we can make it work like our system? I saw that LineNum property in Document_Lines object is read-only...
It would be a good improvement even if we could make it start from 1, instead than 0.

Many thanks!


Correct Answer by Simone Pastorin 
I also realized that, while LineNum and VisOrder starts from 0, the line number the user sees starts from 1, both in order lines grid and in order prints.
This counter the user sees doesn't care about what LineNum or VisOrder are (0,1,2 or 1,2,3 or 34,51,58 etc.), it always shows 1,2,3.
So we must rely on it, not to confuse the user, we are obliged to adapt our system to this numbering.
Anyway I appreciate Sakthi's answer, it could be useful for other issues!

No comments: