Hi,
Unit Price Validation in PO confirm OR PO confirmation without zero price
Refer below my code BY Chain of command COC
[ExtensionOf(classStr(PurchFormLetter_PurchOrder))]
public final class TEST_PurchFormLetter_PurchOrder_Extension
{
public boolean validate(Object _calledFrom)
{
boolean retExt = next validate(_calledFrom);
if (retExt)
{
PurchLine purchLineExt;
while select purchLineExt
where purchLineExt.PurchId == this.purchTable().PurchId
{
if (purchLineExt.PurchPrice == 0 && purchLineExt.LineAmount == 0 )
{
retExt = checkFailed( "@TEST:Thelineamountcannotbezero" + " for Item " + purchLineExt.ItemId );
}
}
}
return retExt;
}
}
Uflacoc0pistru Marcus Bradfield https://wakelet.com/wake/yjI2WfJGA-4TVAp_O0kcP
ReplyDeletearunitbio