diff options
author | Markus Krogh <markus@casadelkrogh.dk> | 2014-12-17 11:34:56 +0100 |
---|---|---|
committer | Markus Krogh <markus@casadelkrogh.dk> | 2014-12-17 11:34:56 +0100 |
commit | da83963484fe35ac709328eafb5b766ffbf3b00e (patch) | |
tree | 5978336e5cc3bf1204255e73123871544d12ffa2 | |
parent | 2caa0e7970a1d0b5b8c6bc3e3758e4e97dfd75f4 (diff) |
Removing journal reuse
-rw-r--r-- | ibisticintegration2.1.ms | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/ibisticintegration2.1.ms b/ibisticintegration2.1.ms index ea362fb..8b60a71 100644 --- a/ibisticintegration2.1.ms +++ b/ibisticintegration2.1.ms @@ -725,18 +725,10 @@ public function iteImportExpence(iteInput) //,TransactionNumberSeries: {value: getPopupValue("TransactionNumberSeriesType","General Ledger")} ,AutomaticVoucherVar : {value: false} }; - - var journalNumber2Use=0; - var keyFindGLJournal = maconomy::sql(sprint("select JournalNumber, nameofuser,period, periodend, companynumber from journal where Posted=0 and CompanyNumber='^1' and nameofuser='^2' and ((Period<='^3' and PeriodEnd>='^3') or (Period=' ' and PeriodEnd=' '))",newGLJournal.CompanyNumber.value,"ibistic",theEntryDate)); - var index=sizeof(keyFindGLJournal.result.rows); + iteInput.IbisticVoucherNo = int(iteInput.IbisticVoucherNo); //+6000000; - - if (index==0) - { - journalNumber2Use=createNewJournal(newGLJournal); - } else { - journalNumber2Use=keyFindGLJournal.result.rows[0].journalnumber.value; - } + + var journalNumber2Use = createNewJournal(newGLJournal); try { |