on 06-15-2015 3:52 PM
Hi,
Is there a field which stores the Balance Due amount for an AP Invoice in either the OPCH table or the OJDT table?
If not, what calculation should I use in my SQL which will give me EXACTLY the same value as shown in the Balance Due field in the AP Invoice on screen?
Example, whether I should use: OPCH.DocTotal - OPCH.PaidSum, or OPCH.DocTotal - OPCH.PaidToDate or any other column?
Thanks.
HI Rajesh,
You can use either (OPCH.DocTotal-OPCH.PaidToDate)
or JDT1.BalDueCred where JDT1.Account <>JDT1.ShortName and JDT1.TransType =18
PaidToDtae includes all types of adjusted document values whereas Paidsum only brings value from Payment.
Thanks
Unnikrishnan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi rajesh,
use that what was frank wang given that one OPCH.DocTotal - OPCH.PaidSum
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OPCH.DocTotal - OPCH.PaidSum should be correct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.