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:
parent
5d5f0fae94
commit
91a57b1253
|
@ -1059,12 +1059,12 @@ public class DistributionRun extends SvrProcess
|
||||||
//line.setTargetQty(detail.getActualAllocation());
|
//line.setTargetQty(detail.getActualAllocation());
|
||||||
line.setTargetQty(Env.ZERO);
|
line.setTargetQty(Env.ZERO);
|
||||||
//line.setConfirmedQty(detail.getActualAllocation());
|
//line.setConfirmedQty(detail.getActualAllocation());
|
||||||
line.setDescription(m_run.getName());
|
String Description ="";
|
||||||
if (!line.save())
|
if (m_run.getName() != null)
|
||||||
{
|
Description =Description.concat(m_run.getName());
|
||||||
log.log(Level.SEVERE, "OrderLine not saved");
|
line.setDescription(Description + " " +Msg.translate(getCtx(), "Qty")+ " = " +detail.getActualAllocation()+" ");
|
||||||
return false;
|
line.saveEx();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
addLog(0,null, detail.getActualAllocation(), order.getDocumentNo()
|
addLog(0,null, detail.getActualAllocation(), order.getDocumentNo()
|
||||||
+ ": " + bp.getName() + " - " + product.getName());
|
+ ": " + bp.getName() + " - " + product.getName());
|
||||||
|
|
Loading…
Reference in New Issue