The description save not when the consolidate document is N

http://sourceforge.net/tracker/?func=detail&aid=2807284&group_id=176962&atid=879332
This commit is contained in:
vpj-cd 2009-06-16 17:30:31 +00:00
parent 5d5f0fae94
commit 91a57b1253
1 changed files with 6 additions and 6 deletions

View File

@ -1059,12 +1059,12 @@ public class DistributionRun extends SvrProcess
//line.setTargetQty(detail.getActualAllocation());
line.setTargetQty(Env.ZERO);
//line.setConfirmedQty(detail.getActualAllocation());
line.setDescription(m_run.getName());
if (!line.save())
{
log.log(Level.SEVERE, "OrderLine not saved");
return false;
}
String Description ="";
if (m_run.getName() != null)
Description =Description.concat(m_run.getName());
line.setDescription(Description + " " +Msg.translate(getCtx(), "Qty")+ " = " +detail.getActualAllocation()+" ");
line.saveEx();
}
addLog(0,null, detail.getActualAllocation(), order.getDocumentNo()
+ ": " + bp.getName() + " - " + product.getName());