Skip to content

Commit

Permalink
WEBUI_Fact_Acct_Repost_ViewRows - DocumentToRepost seems to be ignored
Browse files Browse the repository at this point in the history
hope to fix it by threating FACT_ACCT_TRANSACTIONS_VIEW item like fact_acct
#6965
  • Loading branch information
metas-ts committed Jul 6, 2020
1 parent 6175b03 commit 47d9f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -44,7 +44,7 @@
@Component
public class FactAcctFilterDescriptorsProviderFactory implements DocumentFilterDescriptorsProviderFactory
{
private static final String FACT_ACCT_TRANSACTIONS_VIEW = "Fact_Acct_Transactions_View";
public static final String FACT_ACCT_TRANSACTIONS_VIEW = "Fact_Acct_Transactions_View";
private static final String FACT_ACCT_TABLE = I_Fact_Acct.Table_Name;
private final transient IMsgBL msgBL = Services.get(IMsgBL.class);

Expand Down
Expand Up @@ -2,6 +2,7 @@

import java.util.Set;

import de.metas.ui.web.accounting.filters.FactAcctFilterDescriptorsProviderFactory;
import org.adempiere.ad.table.api.IADTableDAO;
import org.adempiere.service.ClientId;
import org.compiere.model.I_Fact_Acct;
Expand Down Expand Up @@ -89,6 +90,7 @@ private Set<DocumentToRepost> getDocumentsToRepost()
private DocumentToRepost extractDocumentToRepost(final IViewRow row)
{
if (I_Fact_Acct.Table_Name.equals(getTableName())
|| FactAcctFilterDescriptorsProviderFactory.FACT_ACCT_TRANSACTIONS_VIEW.equals(getTableName())
|| TABLENAME_RV_UnPosted.equals(getTableName()))
{
return extractDocumentToRepostFromTableAndRecordIdRow(row);
Expand Down

1 comment on commit 47d9f2b

@teosarca
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.