FR [2904144] - Archive button not showing the archived docs for sales order

https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2904144&group_id=176962
This commit is contained in:
trifonnt 2010-02-15 23:40:20 +00:00
parent daaa969db5
commit 95ab6652f8
2 changed files with 8 additions and 1 deletions

View File

@ -1434,7 +1434,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
* @param C_Order_ID id
* @return int Array with [printWhat, ID]
*/
private static int[] getDocumentWhat (int C_Order_ID)
public static int[] getDocumentWhat (int C_Order_ID)
{
int[] what = new int[2];
what[0] = ORDER;

View File

@ -28,6 +28,7 @@ import javax.swing.JPopupMenu;
import org.compiere.apps.form.ArchiveViewer;
import org.compiere.apps.form.FormFrame;
import org.compiere.model.MBPartner;
import org.compiere.print.ReportEngine;
import org.compiere.swing.CMenuItem;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
@ -83,6 +84,12 @@ public class AArchive implements ActionListener
{
int reportCount = 0;
int documentCount = 0;
int[] add = ReportEngine.getDocumentWhat(m_Record_ID);
if (add[0]==2)
{
m_AD_Table_ID=318;
m_Record_ID = add[1];
}
m_where = new StringBuffer();
m_where.append("(AD_Table_ID=").append(m_AD_Table_ID)