on 05-15-2017 11:08 PM - last edited on 02-03-2024 8:48 PM by postmig_api_4
Hi everybody,
I have a problem in creating journal entries with DI api.
When i would like to add the journal entry, it has an error:
Here is my code:
JournalEntries entry = Company.GetBusinessObject(BoObjectTypes.oJournalEntries);
entry.DueDate = DateTime.Now;
entry.ReferenceDate = DateTime.Now;
entry.TaxDate = DateTime.Now;
entry.Series = 14;
entry.Lines.FCDebit = 0;
entry.Lines.FCCredit = 0;
entry.Lines.Debit = 6000;
entry.Lines.Credit = 0;
entry.Lines.DueDate = DateTime.Now;
entry.Lines.ShortName = "111000000";
entry.Lines.ReferenceDate1 = DateTime.Now;
entry.TaxDate = DateTime.Now;
entry.Lines.Add();
entry.Lines.FCDebit = 0;
entry.Lines.FCCredit = 0;
entry.Lines.Debit = 0;
entry.Lines.Credit = 6000;
entry.Lines.DueDate = DateTime.Now;
entry.Lines.ShortName = "491000000";
entry.Lines.ReferenceDate1 = DateTime.Now;
entry.TaxDate = DateTime.Now;
entry.Add();
Thanks for helping!
I am facing a similar problem , I can add the Journal entry successfully of the UI but in DI API i get the error
You cannot edit totals in system currency [JDT1.SYSCred][line: 1].
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
9 | |
8 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.