It looks like you're new here. Sign in or register to get started.
void clicked() { BOMId fromId; super(); if (BOMVersion) fromId = BOMVersion.BOMId; if (BOMVersion || ! BOMVersion.ItemId) BOMVersion_ds.create(); BOMVersion.BOMId = BOMTable::promptCreateBOM(BOMVersion.ItemId,fromId); if (BOMVersion.BOMId) { if (BOMParameters::find().MandatoryQtyAndDate) { BOMVersion.FromDate = systemdateget(); BOMVersion.ToDate = systemdateget(); } BOMVersion.Name = BOMTable::find(BOMVersion.BOMId).Name; BOMVersion_ds.write(); BOMVersion_ds.refresh(); } else { BOMVersion_ds.delete(); } element.setBOMVersionApprove(); }
Comments