Revert revision 1565 - [ 1653683 ] Printing Copy and Original
This commit is contained in:
parent
baeaa60825
commit
9995c11394
|
@ -185,36 +185,6 @@ public class ReportCtl
|
||||||
preview(re);
|
preview(re);
|
||||||
}
|
}
|
||||||
|
|
||||||
//vpj-cd e-evolution 15022007
|
|
||||||
if(type == ReportEngine.INVOICE)
|
|
||||||
{
|
|
||||||
MInvoice m_invoice = new MInvoice(Env.getCtx(), Record_ID,null);
|
|
||||||
if(!m_invoice.isPrinted())
|
|
||||||
{
|
|
||||||
m_invoice.setIsPrinted(true);
|
|
||||||
m_invoice.save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (type == ReportEngine.SHIPMENT)
|
|
||||||
{
|
|
||||||
MInOut m_inout = new MInOut(Env.getCtx(), Record_ID,null);
|
|
||||||
if(!m_inout.isPrinted())
|
|
||||||
{
|
|
||||||
m_inout.setIsPrinted(true);
|
|
||||||
m_inout.save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (type == ReportEngine.ORDER)
|
|
||||||
{
|
|
||||||
MOrder m_order = new MOrder(Env.getCtx(), Record_ID,null);
|
|
||||||
if(!m_order.isPrinted())
|
|
||||||
{
|
|
||||||
m_order.setIsPrinted(true);
|
|
||||||
m_order.save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//vpj-cd e-evolution 15022007
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} // StartDocumentPrint
|
} // StartDocumentPrint
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue