This might still be an issue, any news on this?
We want to create a new order, but the ordernumber field has the functionality of 'autonumber'.
By cloning this record the ordernumber is not automatically updated.
(we use the clone api for creating credit-orders in some occassions)
Hi Wim,
I have verified the case and it still seems to be an issue. A bug(id-59150) has been logged for this.
However as a workaround I would suggest you to clone the record using the data record page.
In case of cloning through the API(serverSide) you can refer the example below:
var auto=rbv_api.selectNumber("SELECT ordernumber FROM Orders order by createdAt desc"); var x = new Array(); x["ordernumber"]=auto+1; rbv_api.cloneRecord("Orders", {objectId}, x);
Thanks,
Anvi
|
Hi Wim,
The auto number field gets updated with the number assigned to the last record. The approach is however a bit different. Yes,for the upcoming orders,the ordernumber field will automatically pickup the next value.
Please let me know if you need any other help regarding this.
Thanks,
Anvi
|