// This is one way
static void Nextnumseq(Args _args)
{
NumberSeq num;
kanhaNum _kanhaNum; //Table Buffer
;
ttsbegin;
num = NumberSeq::newGetNum(HrmParameters::numRefJournalNum()); // Parameters Table
_kanhaNum.NextNumseq = num.num(); // Next NumberSeq generated
_kanhaNum.insert();
num.used(); // Mark the Number as Used
ttscommit;
}
//The other Way is
static void testnumseq(Args _args)
{
kanhaNum _kanhaNum;
ExtendedTypeId id = TypeID2ExtendedTypeId(TypeId(kanhaNumber));//EDT NAME
NumberSeq num = NumberSeq::newGetNum(NumberSequenceReference::find(id));
;
//_kanhaNum.NextNumseq = num.num();//NEXT NUM SEQ
num.used(); // mark the number as used
info(num.num()); // NEXT NUM SEQ
}
static void Nextnumseq(Args _args)
{
NumberSeq num;
kanhaNum _kanhaNum; //Table Buffer
;
ttsbegin;
num = NumberSeq::newGetNum(HrmParameters::numRefJournalNum()); // Parameters Table
_kanhaNum.NextNumseq = num.num(); // Next NumberSeq generated
_kanhaNum.insert();
num.used(); // Mark the Number as Used
ttscommit;
}
//The other Way is
static void testnumseq(Args _args)
{
kanhaNum _kanhaNum;
ExtendedTypeId id = TypeID2ExtendedTypeId(TypeId(kanhaNumber));//EDT NAME
NumberSeq num = NumberSeq::newGetNum(NumberSequenceReference::find(id));
;
//_kanhaNum.NextNumseq = num.num();//NEXT NUM SEQ
num.used(); // mark the number as used
info(num.num()); // NEXT NUM SEQ
}
No comments:
Post a Comment