Based on output menuitem by using "DocumentStatus" in SalesEditLines form
While selecting PackingSlip in SO Process, Need to do mandatory fields(DriverId,TruckId) of ParmSalesTable,
Based on output menuitem, which we cannot do, so another way by using "DocumentStatus".
IN SalesEditLines Form -> Init( )
if(documentStatus == DocumentStatus::PackingSlip)
{
SalesParmTable_INC_DriverId1.mandatory(true);
SalesParmTable_INC_TruckId1.mandatory(true);
}
else
{
SalesParmTable_INC_DriverId1.mandatory(false);
SalesParmTable_INC_TruckId1.mandatory(false);
}
Comments
Post a Comment