InventJournalMopvementForm::
InventJournalTransTable- ValidateWrite method
Description::[Here actually record getting based on JournalNameId field-Inventmovent value so goto setup see the field like JournalType but we need to get JournalId based so we use find method then put if inthat create buffer and JournalNameId field and type in tat again put If condition defaultDimension as 0, then write validation]
/ <MRKP-Janardhan-19122015>
inventJournalTableLoc = InventJournalTable::find(InventJournalTrans.JournalId);
if(InventJournalName::find(inventJournalTableLoc.JournalNameId).JournalType == InventJournalType::Movement)
{
if(InventJournalTrans.DefaultDimension == 0)
{
// isValid = checkFailed(strFmt("@MRK495"));
// info("Please fill the default dimension");
throw error("Please fill the default dimensions");
}
}
InventJournalTransTable- ValidateWrite method
Description::[Here actually record getting based on JournalNameId field-Inventmovent value so goto setup see the field like JournalType but we need to get JournalId based so we use find method then put if inthat create buffer and JournalNameId field and type in tat again put If condition defaultDimension as 0, then write validation]
/ <MRKP-Janardhan-19122015>
inventJournalTableLoc = InventJournalTable::find(InventJournalTrans.JournalId);
if(InventJournalName::find(inventJournalTableLoc.JournalNameId).JournalType == InventJournalType::Movement)
{
if(InventJournalTrans.DefaultDimension == 0)
{
// isValid = checkFailed(strFmt("@MRK495"));
// info("Please fill the default dimension");
throw error("Please fill the default dimensions");
}
}
No comments:
Post a Comment