public void
cancelDeliveryNote(SalesId _salesId)
{
CustPackingSlipJour custPackingSlipJour;
boolean isCancelEnabled;
boolean isCorrectionEnabled;
select firstonly custPackingSlipJour
order by PackingSlipId desc
// PackingSlipIdx
where
custPackingSlipJour.SalesId == _salesId;
[isCancelEnabled, isCorrectionEnabled]
=
CustPackingSlipJourFormHelper::areCancelCorrectButtonsEnabled(custPackingSlipJour);
if (isCancelEnabled == true)
{
Args args = new Args();
args.record(custPackingSlipJour);
new
MenuFunction(menuitemActionStr(SalesFormLetter_PackingSlipCancel),
MenuItemType::Action).run(args);
}
}
No comments:
Post a Comment