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

Popular posts from this blog

In CustCreditLimit class need to check the salesqty to be not more than as given in custom table

Creditinvoice report

Simple string functions to fill in built-in function gaps