BF [ 2804602 ] Doc_Order optimization if there are no requisitions
https://sourceforge.net/tracker/?func=detail&aid=2804602&group_id=176962&atid=879335
This commit is contained in:
parent
9e62761e21
commit
31504f36a8
|
@ -397,6 +397,8 @@ public class Doc_Order extends Doc
|
|||
getC_Currency_ID(), null, cost);
|
||||
}
|
||||
// Offset
|
||||
if (m_requisitions.length > 0)
|
||||
{
|
||||
MAccount offset = getAccount(ACCTTYPE_CommitmentOffset, as);
|
||||
if (offset == null)
|
||||
{
|
||||
|
@ -406,6 +408,7 @@ public class Doc_Order extends Doc
|
|||
}
|
||||
fact.createLine (null, offset,
|
||||
getC_Currency_ID(), total, null);
|
||||
}
|
||||
//
|
||||
facts.add(fact);
|
||||
} // reservations
|
||||
|
|
Loading…
Reference in New Issue