In my object Invoices I defined the following rule:
IF Invoices IS NEW Then
Invoices.InvoiceNumber=SystemSettings.LastInvoiceNumber+1
When I create an invoice the new invoicenumber is one lower than the one in SystemSettings instead of one higher.
When I change the formula to
Invoices.InvoiceNumber=SystemSettings.LastInvoiceNumber-1
The result is opposite.
It seems + does a subtraction and - an addition.
A bug?