vineri, 29 aprilie 2016

PurchLine validation

If you need to add constraints on PurchLine s, have a look at :


As an example, there is one default behavior for return items:

Check PurchLineType_ReturnItem
    -> validateWrite()


    if (purchLine.PurchQty > 0
    &&  purchLine.SkipUpdate == InterCompanySkipUpdate::No)
        ok = checkFailed("@SYS53512");

the label saying : "Quantity of returned items orders must be negative."



Niciun comentariu:

Trimiteți un comentariu