// Depending on the stt type and the signum of DP it will be
// posted on credit or debit
if (amount.signum() == 1) {
fact.createLine(lineAux, new Account(conn,
(lineAux.isReceipt.equals("Y") ? data[0].creditAcct : data[0].debitAcct)),
C_Currency_ID, (lineAux.isReceipt.equals("Y") ? transitoryAmount.abs().toString()
: "0"), (lineAux.isReceipt.equals("Y") ? "0" : transitoryAmount.abs()
.toString()), Fact_Acct_Group_ID, nextSeqNo(SeqNo), DocumentType, conn);
if ((!changeGenerate && line.isReceipt.equals("N"))
|| (changeGenerate && line.isReceipt.equals("Y")))
amount = amount.negate();