Hello,
I have a scenario where I have added a custom field EDT XXXValue in the CustTransOpen table which is associated to a number sequence reference.
It should generate a new number sequence reference (e.g. 00001) whenever there are marked for transactions (i.e. records of SpecTrans).
However, if all marked records are unmarked (i.e. no spec trans association to the CustTransOpen) then the field value should be set to empty.
If the user wish to remark records, the value 00001 should be reused (if this value is not used in any CustTransOpen).
I have tried retrieving the value 00001 in the logic of spec trans delete and check if there are any CustTransOpen.XXXValue==00001.
If there are no existing records, then I am calling the logic NumberSeq::releaseNumber(numbersequenceID, 00001).
It is not working though.
Anyone knows how this could be done