Reference / Invoice number is not auto generated while adding sale/purchase and other?
Please leave reference field empty/blank, system will generate reference automatically after submit. This is to avoid the same reference number issue when add records same time.