Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDEMPIERE-5820 Some documents are not archived correctly #1961

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions org.adempiere.base/src/org/compiere/model/PrintInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ public PrintInfo (String Name, int AD_Table_ID, int Record_ID, String Record_UU)
*/
public boolean isReport()
{
return m_AD_Process_ID != 0 // Menu Report
|| m_C_BPartner_ID == 0;
return m_Record_ID <= 0 && Util.isEmpty(m_Record_UU);
} // isReport

/**
Expand Down
2 changes: 0 additions & 2 deletions org.adempiere.ui/src/org/compiere/apps/form/Archive.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ public void cmd_query(boolean reports, KeyNamePair process, KeyNamePair table, I
{
if (C_BPartner_ID != null)
sql.append(" AND C_BPartner_ID=").append(C_BPartner_ID);
else
sql.append(" AND C_BPartner_ID IS NOT NULL");
}

// Name
Expand Down