[Event Request] page 6510 "Item Tracking Lines" - modify event OnAssignSerialNoBatchOnAfterInsert
Hi, in event OnAssignSerialNoBatchOnAfterInsert it would be useful to have QtyToCreate information passed by value.
As Is: OnAssignSerialNoBatchOnAfterInsert(Rec);
To be: OnAssignSerialNoBatchOnAfterInsert(Rec,QtyToCreate);
Thank you
Hi, sorry for this update. It would be very useful to have also the default quantity to handle. I mean the quantity that is proposed when dialog "Enter Quantity to Create" is opened.
Like: OnAssignSerialNoBatchOnAfterInsert(Rec,DefaultQtyToCreate,SelectedQtyToCreate);
Thank you. If it is necessary, I can open another issue if it is better for you.
Regards
First request is ok. As for second request: it is not possible to do this in the same event, because the proposed quantity is a local variable in the scope of AssignSerialNo procedure, and we cannot change the signature of AssignSerialNoBatch. I will add another event for that instead: OnAssignSerialNoOnAfterAssignQtyToCreateInt, you can get the proposed qty from that.
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.