Hello,
I am currently trying to do the following
If the expiration date field of the batch number is empty then I want to auto fill the date field on my label form with a specific date.
The user does not want the field on the label form to ever be empty. Currently this field is auto populated from the expiration date of the batch number that is selected on the label form.
Below is my current code:
This is in the INIT of my label form.
select * from inventBatch
where inventBatch.ItemId == _sum.itemId
&& InventBatch.inventBatchId == _line.inventBatchId;
assemblyLabel.ExpirationDate = inventBatch.expDate;
// conditional on Expd to populate with default date of 1/1/1900
if(!inventBatch.expDate)
{
assemblyLabel.ExpirationDate = str2Date("01/01/1900",123);
}