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