Hi Nadeem,
OJDT -
JdtNum | TaxDate | VatDate | DueDate | Memo |
JdtNum | TaxDate | VatDate | AutoVAT | Memo |
1 | 20140831 | 20140831 | 20140831 | Test |
JDT1-
ParentKey | LineNum | AccountCode | Debit | Credit |
JdtNum | LineNum | Account | Debit | Credit |
1 | 0 | OACT.ACCTCODE | 100 | |
1 | 1 | OACT.ACCTCODE | 100 | |
is your GL segmented ? If yes, get the acctcode value and not 1000-00-00 .
Try to run a query for the accountcode -
select AcctCode From OACT
Hope this helps.
Regards,
Darius