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,15 +397,18 @@ public class Doc_Order extends Doc
|
|||
getC_Currency_ID(), null, cost);
|
||||
}
|
||||
// Offset
|
||||
MAccount offset = getAccount(ACCTTYPE_CommitmentOffset, as);
|
||||
if (offset == null)
|
||||
{
|
||||
p_Error = "@NotFound@ @CommitmentOffset_Acct@";
|
||||
log.log(Level.SEVERE, p_Error);
|
||||
return null;
|
||||
}
|
||||
fact.createLine (null, offset,
|
||||
getC_Currency_ID(), total, null);
|
||||
if (m_requisitions.length > 0)
|
||||
{
|
||||
MAccount offset = getAccount(ACCTTYPE_CommitmentOffset, as);
|
||||
if (offset == null)
|
||||
{
|
||||
p_Error = "@NotFound@ @CommitmentOffset_Acct@";
|
||||
log.log(Level.SEVERE, p_Error);
|
||||
return null;
|
||||
}
|
||||
fact.createLine (null, offset,
|
||||
getC_Currency_ID(), total, null);
|
||||
}
|
||||
//
|
||||
facts.add(fact);
|
||||
} // reservations
|
||||
|
|
Loading…
Reference in New Issue