I have created the custom workflow for expense journal in project management and accounting module. I also setup and activated the module as you can see below in the screenshot.
But on the expense journal form the workflow button is not showing you can see in the below screenshot.
I recently created the custom workflow for item journal in the same module /Project management and accounting module/
It is working fine you can see in the below screenshot.
Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
I cannot directly confirm with the code because I don't have complete data to check or debug. But I can find some issue with last condition in your code. Can you just check if the given 3 conditions are met?
Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
[ExtensionOf(tableStr(LedgerJournalTable))]
final class LedgerJournalTable_SubmitToWorkflow_Extension
{
public boolean canSubmitToWorkflow(str _workflow)
{
// Defind Table variable.
LedgerJournalTable ledgerJournalTable;
boolean ret;
ret = next canSubmitToWorkflow(_workflow);
// This condition use select first line
//select firstonly1 * from ledgerJournalTable where ledgerJournalTable.JournalNum ==
// this.JournalNum;
// This conditon use active workflow when status is 'Draft' and there is no line
//in table then workflow not active.
//if(this.recID && this.ProjManagementExpenseWorkflowStatus == ProjManagementExpenseWorkflowStatus::Draft)// && InventJournalTable.JournalNameId == 'ProjItem')
//{
ret = true;
//}
return ret;
}
Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
Are you sure if the lines which are shown in the image met the same condition like which you have implemented at cansubmittoworkflow() method? If yes can you show us your code?
Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
Hi Munib,
Can you tell in detail how you customized the application to enable workflows on the expense journal? The Expense journal is a type of general journal. Did you enable the workflow to show up in the list of workflows on the journal name setup form for an expense-type journal?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.