increment incoming inventory count
This commit is contained in:
parent
a1751b8918
commit
7ef110eaf7
@ -846,8 +846,8 @@ object IncomingInventoryCtrl {
|
|||||||
|
|
||||||
fun getNextNum(ctx: Context) {
|
fun getNextNum(ctx: Context) {
|
||||||
val prefix = "MRN/"
|
val prefix = "MRN/"
|
||||||
val cnt = database.find(IncomingInventory::class.java)
|
val cnt = (database.find(IncomingInventory::class.java)
|
||||||
.findCount()
|
.findCount() + 1)
|
||||||
.toString()
|
.toString()
|
||||||
.padStart(6, '0')
|
.padStart(6, '0')
|
||||||
val seq = SequenceNumber(prefix + cnt)
|
val seq = SequenceNumber(prefix + cnt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user