Openbravo document, such as sales order or sales invoice, come with auto generated document number, as per defined in document sequence. If you create such document through Openbravo web based user interface, it’s fine. But, what if you push a document through Openbravo public API? can we get this functionality as well?
In service oriented architecture (SOA) which is Openbravo not run as single application in the ecosystem, document may pushed from another application through Openbravo Public API. to do this, simply put <> on documentno property inside json/xml message that you push to Openbravo. This will tell Openbravo to run function that responsible for generating/calculating document number.