Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

RE: Cannot create a record in Tax engine tax journal (TaxEngineTaxJournal). Journal batch number The record already exists in ax 2012

$
0
0

Got the solution

In Debugger, in Classes\TaxEngineTaxSettlement\createTaxJournal :

taxEngineTaxJournal.initValue();

taxEngineTaxJournal.CurrencyCode = CompanyInfo::standardCurrency();

taxEngineTaxJournal.JournalNum = TaxEngineTaxJournalUtil::getTaxJournalNum();

taxEngineTaxJournal.TransDate = transactionDate;

taxEngineTaxJournal.JournalType = journalType;

taxEngineTaxJournal.insert();

in this line taxEngineTaxJournal.JournalNum = TaxEngineTaxJournalUtil::getTaxJournalNum(); \\from this method it returns values as 'JV-02-0028156' , but the value assigned to taxEngineTaxJournal.JournalNum is only taking 'JV-02-0028' only, journal number already created already so error is throwing. the String size of the journal number is 10, but actual value is 13 characters.


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>