How to know that Invoice being paid (Incoming Payment)?

Hi All,
Do anyone know that where (From table or DB side, not from B1 interface) to check ARInvoice is being made payment or partial payment?
Thx

Hi Kok,
This query is for 2007 only. It uses the Balance due in the Journal Entry and is linked to OINV.
It will tell you the Original Document total, The Balance due and how much of the original amount has been cleared. It will also give you the Due Date of the Invoice.
It will separate Foreign Currency BPs from Local and Multi Currency BPs and will also give you the Foreign Currency used in the document and the rate.
I have not tried this with Invoices that are using installments so it might be something that needs to be adjusted.
(SELECT
'Local/Multi Currency' as CurrType,
t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur],
T0.[DocRate], T0.[DocTotal], sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Balance Due',
T0.[DocTotal] - sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Cleared Amount',
T0.[DocDueDate]
FROM
OINV T0 inner join JDT1 T1 on  T0.[TransId] = T1.[TransId] inner join OCRD T2 ON
T1.ShortName=T2.CardCode
WHERE
T1.[ShortName] <> T1.[Account] and
t2.currency = '##' or t2.currency in (Select maincurncy from OADM)
Group by
t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate], T0.[DocTotal], T0.[DocDueDate]
having
sum(T1.[BalDueDeb] - T1.[BalDueCred]) <> 0)
union
(SELECT
'Foreign Currency' as CurrType,
t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate],
T0.[DocTotal], sum(T1.[BalFcDeb] - T1.[BalFcCred]) as 'Balance Due',
T0.[DocTotal] - sum(T1.[BalDueDeb] - T1.[BalDueCred]) as 'Cleared Amount',
T0.[DocDueDate]
FROM
OINV T0 inner join JDT1 T1 on  T0.[TransId] = T1.[TransId] inner join OCRD T2 ON
T1.ShortName=T2.CardCode
WHERE
T1.[ShortName] <> T1.[Account] and
t2.currency <> '##' and  t2.currency not in (Select maincurncy from OADM)
Group by
t1.shortname, T0.[DocNum], t0.docstatus, T0.[DocCur], T0.[DocRate], T0.[DocTotal], T0.[DocDueDate]
having
sum(T1.[BalFcDeb] - T1.[BalFcCred]) <> 0)
order by t1.shortname, t0.docnum
I have attached the query in a file as not all signs seems to be copied when pasting into this forum.
I hope it helps.
Jesper

Similar Messages

  • How to know that URL is currenty open into other Group Tab feature ?

    Hello Firefox team,
    I use a group tab features (CTRL+SHIFT+E) and I have open many URLs in many group tab's. This URLs are on one domain because I work on one SupportTeam website and all cases/tickets have different URLs.
    I don't know that I open a duplication tab (cases/ticket) who is open in other tab or on tab in other group tab.
    How to know that URL whom I open is a duplication?.
    Best Regards
    Marcin Przysowa

    I upgrade FF to 10.0 version. The situation is the same.
    For me some information bar is perfect like:
    This URL is open in $grouptab_name.
    By click into that hint I should be jump to older tab in $grouptab_name.

  • How to know that item is serially controlled or not ?

    Hi,
    How to know that the ordered item is serially controlled or not ?
    In which tables we have refere to know that ?
    Thanks

    --If the item is only serial number controlled and not lot number controlled
    select serial_number from mtl_unit_transactions a, mtl_material_transactions b, wsh_delivery_details c
    where a.transaction_id=b.transaction_id
    and b.trx_source_line_id=c.source_line_id
    and c.source_header_number=&order_number
    and b.transaction_type_id=33 --34 if it is internal order shipments
    OR (If it is lot and serial number controlled)
    select serial_number from mtl_unit_transactions a, mtl_material_transactions b, wsh_delivery_details c, mtl_transaction_lot_numbers d
    where b.transaction_id=d.transaction_id
    and a.transaction_id=d.serial_transaction_id
    and b.trx_source_line_id=c.source_line_id
    and c.source_header_number=&order_number
    and b.transaction_type_id=33 --34 if it is internal order shipments
    Thanks
    Nagamohan

  • I forget my icloud passport. so i can't unlock my phone. how to know that passport

    I forget my icloud passport. How to know that passport ?

    Sorry, not understanding what it is you are asking. Your iCloud password is the same as your Apple ID password. If you are attempting to restore the device and you are on the Activation Lock screen, you must supply the iCloud/Apple ID password before you can proceed:
    ACTIVATION LOCK
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account - Apple Support
    Cheers,
    GB

  • How to know that iphone 4 is locked??, How to know that iphone 4 is locked??

    How to know that iphone is locked or unlocked ?
    In my case when I put the sim card of SK telecom the iphone display the carrier of SK telecom and when I replace the sim card with KT then it displays the carrier with KT telecom in the settings.
    Does that mean my iphone is unlocked and it is  carrier free?
    In my case these both sim are expired so they dont show any networks.
    They just display "Searching " and then "No service" but in the carrier section (settings) it displays the corresponding telecoms and the phone numbers.
    So is it unlocked phone.
    If it is unlocked phone then I was thinking o use a mini sim card(SK telecom) in it which is not expired by cutting it into micro sim card .Will it work ?
    Help me !!!

    dipencha wrote:
    How to know that iphone is locked or unlocked ?
    The ONLY way to know for sure whether your phone is officially unlocked or not is to have purchased your phone from an official source that sells officially unlocked iPhones. If you did so, you have nothing to worry about. If you did not purchase from an official source, well...you take your chances and hope for the best. Many phones, from non-official sources, advertised as "factory unlocked", are in fact hacked to unlock them.

  • How do know that the battery is fully charged on ios 7

    How do know that the battery is fully charged on ios 7

    When you turn it on from sleep mode, below the time on the lock screen it says how much charged it is.

  • How to know that my cache is disttributed (i mean partitioned or replicated

    How to know that my cache is distributed or replicated.. if it is not distributed then how can we make it as distributed(where do we need to change.)
    Thanks
    --Krishna..                                                                                                                                                                                                                                                                                                                                                                       

    Krishna -
    Cache type is configured by the server side (cluster side) cache configuration file within a <caching-scheme-mapping> <cache-mapping> element.
    The <scheme-name> element specifies either a <distributed-scheme> (for Partitioned) or <replicated-scheme> <caching-scheme> named element.
    A client side configuration file references the <cache-name>.
    I do recommend working through the Coherence Tutorial:
    http://download.oracle.com/docs/cd/E18686_01/coh.37/e18692/toc.htm
    Regards,
    /Mark J
    Oracle Coherence

  • How to know that my new ipad specification is wifi+4g?

    How to know that my new ipad specification is wifi+4g?

    Check the model number on the back of the iPad
    Apple iPad Wi-Fi (Original) 16, 32, 64 GB
    The wi-fi only iPad configurations are assigned model number A1219.
    MB292LL/A is the order number for the 16 GB configuration. The 32 GB configuration is assigned MB293LL/A and the 64 GB configuration is assigned MB294LL/A.
    Apple iPad Wi-Fi/3G/GPS (Original) 16, 32, 64 GB
    The Wi-Fi/3G/A-GPS iPad configurations are assigned model number A1337.
    MC349LL/A is the order number for the 16 GB configuration. The 32 GB configuration is assigned MC496LL/A and the 64 GB configuration is assigned MC497LL/A.
    Apple iPad 2 (Wi-Fi Only) 16, 32, 64 GB
    The wi-fi only iPad 2 configurations are assigned model number A1395.
    MC769LL/A is the original order number for the 16 GB configuration in black. The 32 GB configuration in black is assigned MC770LL/A and the 64 GB configuration in black is assigned MC916LL/A. The original 16 GB, 32 GB and 64 GB configurations in white are assigned MC979LL/A, MC980LL/A, and MC981LL/A, respectively. On March 7, 2012, Apple discontinued the 32 GB and 64 GB configurations and assigned new order numbers of MC954LL/A and MC989LL/A for the black and white 16 GB configurations, respectively.
    Apple iPad 2 (Wi-Fi/GSM/GPS AT&T) 16, 32, 64 GB
    The Wi-Fi/GSM/GPS iPad 2 configurations are assigned model number A1396.
    MC773LL/A is the original order number for the 16 GB configuration in black. The 32 GB configuration in black is assigned MC774LL/A and the 64 GB configuration in black is assigned MC775LL/A. The original 16 GB, 32 GB and 64 GB configurations in white are assigned MC982LL/A, MC983LL/A, and MC984LL/A, respectively. On March 7, 2012, Apple discontinued the 32 GB and 64 GB configurations and assigned new order numbers of MC957LL/A and MC992LL/A for the black and white 16 GB configurations, respectively.
    Apple iPad 2 (Wi-Fi/CDMA/GPS Verizon) 16, 32, 64 GB
    The Wi-Fi/CDMA/GPS iPad 2 configurations are assigned model number A1397.
    MC755LL/A is the original order number for the 16 GB configuration in black. The 32 GB configuration in black is assigned MC763LL/A and the 64 GB configuration in black is assigned MC764LL/A. The original 16 GB, 32 GB and 64 GB configurations in white are assigned MC985LL/A, MC986LL/A, and MC987LL/A, respectively. On March 7, 2012, Apple discontinued the 32 GB and 64 GB configurations and assigned new order numbers of MC755LL/A and MC985LL/A for the black and white 16 GB configurations, respectively.
    Apple iPad 3rd Gen (Wi-Fi Only) 16, 32, 64 GB
    The Wi-Fi Only iPad 3 configurations are assigned model number A1416
    MC705LL/A refers to the 16 GB configuration in black. The 32 GB and 64 GB configurations in black are MC706LL/A and MC707LL/A, respectively. The 16 GB, 32 GB and 64 GB configurations in white are MD328LL/A, MD329LL/A, and MD330LL/A, respectively.
    Apple iPad 3rd Gen (Wi-Fi/4G LTE AT&T/GPS) 16, 32, 64 GB
    The Wi-Fi/4G LTE AT&T/GPS iPad 3 configurations are assigned model number A1430
    MD366LL/A refers to the 16 GB configuration in black. The 32 GB and 64 GB configurations in black are MD367LL/A and MD368LL/A, respectively. The 16 GB, 32 GB and 64 GB configurations in white are MD369LL/A, MD370LL/A and MD371LL/A, respectively
    Apple iPad 3rd Gen (Wi-Fi/4G LTE Verizon/GPS) 16, 32, 64 GB
    The Wi-Fi/4G LTE Verizon/GPS iPad 3 configurations are assigned model number A1403
    MC733LL/A refers to the 16 GB configuration in black. The 32 GB and 64 GB configurations in black are MC744LL/A and MC756LL/A, respectively. The 16 GB, 32 GB and 64 GB configurations in white are MD363LL/A, MD364LL/A, and MD365LL/A, respectively.

  • How to know that a sales order is approved?

    Hi all,
    Can any one let me know how to know that a sales order is approved? Is there any flag or status code to pull the information from the backend?
    Thanks for your help,
    Prathima

    Hi Prathima,
    Oracle Order Management does not have any approvals, i.e. there is no status as 'Approved' for Order. You can consider an order to be final once it is booked, which you can know from the booked_flag or the value of flow_Status_code field in oe_order_headers_all.
    Hope this helps

  • How i know that my iphone is factory unlocked or not?

    how i know that my iphone is factory unlocked or not surely?

    Did you request to have your phone to be unlocked by your carrier? Only the carrier can officially unlock it.

  • How to know that my iphone is factory unlock or not

    how to know that my iphone is factory unlock or not

    Where did you get it? In some (not all) countries, it is possible to purchase unlocked phones directly from Apple. Some carriers in some countries sell unlocked phones. Some carriers in some countries offer unlocking of iPhones.

  • How to make only some open Invoices visible in Incoming Payments Wizard ?

    I want only to make only some Open Invoices visible in Incoming Payment. Can i use series (Document Numbering) ? Lets say I have SBO in 2 cities and want to user of city A only se open invoices of city A in incoming Payments , and user of city B to see only invoices created in city B . Any ideas ?

    You may use Project code to reach your goal.
    Thanks,
    Gordon

  • Customer Aging Report Query (without invoices offset by incoming payment)

    Hi All Experts,
    May I know is there any field from JDT1 mention which invoices is already offset by the Incoming payment or AR Credit note? Because I do not want those invoices that already offset by incoming payment appear at the Customer Aging Report. Meaning, the data appear in the Customer Aging Report is only show those invoices that yet to pay by the customer. Kindly give some advise on it. Thanks a lot.
    Thanks and regards,
    Angie Ng

    Hi David,
    Thanks for your suggestion. I have try it, but all of my JDT1.IntrnMatch is in 0 value. Meaning in my situation it is none of any reconcilliation making. But from my SBO window, i manage to see that actually this incoming payment is pay for which invoices. Problem is it is difficult for me to do the possiblity logic that might be happen in my Customer Aging Report Query. Please give some advise that how to show only those invoices yet to pay? The current query will show all the data no matter the invoices or credit memo has been offset.
    select OCRD.cardcode 'Supplier Code',OCRD.cardname 'Name',sysdeb  'Debit GBP',syscred 'Credit GBP',
    case JDT1.transtype
    when '13' then 'INV'
    when '14' then 'AR CN'
    when '24' then 'INCOMING'
    else 'Other'
    end 'Type',
    Ref1,
    fccurrency 'BP Currency',
    CONVERT(VARCHAR(10), refdate, 103)'Posting Date' ,
    CONVERT(VARCHAR(10), duedate, 103) 'Due Date',
    CONVERT(VARCHAR(10), taxdate, 103) 'Doc Date' ,
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 < 31
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "0-30 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 30
    and (datediff(dd,refdate,current_timestamp))+1< 61)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "31 to 60 days",
    case when ((datediff(dd,refdate,current_timestamp))+1 > 60
    and (datediff(dd,refdate,current_timestamp))+1< 91)
    then
    case
    when syscred <> 0 then syscred * - 1
    else sysdeb
    end
    end "61 to 90 days",
    CASE
    when (DATEDIFF(dd,refdate,current_timestamp))+1 > 90
    then
    case
    when syscred= 0 then sysdeb
    when sysdeb= 0 then syscred * - 1
    end
    end "90 + days"
    from JDT1,OCRD where JDT1.shortname = OCRD.cardcode and cardtype = 'c' and intrnmatch = '0'
    ORDER BY OCRD.CARDCODE, taxdate

  • Invoice details in Incoming Payment

    Dear All,
    we are making incoming payment against invoice. In Pld for incoming payments i want details of invoice (Invoice Number and Invoice Amount) against which receipt entry is made.
    Ex:
    Account Code...........Account Name......................................................Amount
    A0001.....................ABC
    ..............................Invoice Number 12..................................................1000  
    .....................................................13..................................................1500
    and so on ...
    I have tried in PLD but not able to get the OINV table in PLD. Is there any other option to get this details.
    Swapnil
    Edited by: SWAPNIL PATIL on Mar 20, 2009 9:50 AM

    Dear Friend,
    Which query u sended that working fine for Incomeing Payments. But ih this ur matching
    T1.DocEntry = T2.DocEntry. Means suppose in Income Payment entry there is no Invoice entry then it is not showing. But i want to show that entry also. Please refer the following formatt.
    SELECT T0.DocNum, T0.DocDate, T0.CardCode,T2.DocNum,   T1.SumApplied FROM [dbo].[ORCT]  T0 INNER JOIN RCT2 T1 ON T0.DocNum = T1.DocNum INNER JOIN OINV T2 ON T1.DocEntry = T2.DocEntry
    Formatt:
    Account Code...........Account Name......................................................Amount
    A0001.....................ABC
    ..............................Invoice Number 12..................................................1000
    .....................................................13..................................................1500
    and so on ...
    .................................................................................Total...................2500
    In that suppose Invoice not available in that then Total is not showing. But i want to show Total for Incomeing Payment. Can u plz tell me how to solve that proble.
    Swapnil

  • How should I do if I paid monthly payment twice for a month. One is by Auto payment and the other is by hand... Is it possible to get refund? don't I need to pay for it next time?

    How should I do if I paid monthly payment twice for a month. One is by Auto payment and the other is by hand... Is it possible to get refund? don't I need to pay for it next time?

    I know a couple others that waited for two billing cycles but it will come back as a credit on that account.

Maybe you are looking for

  • IPod Touch is no longer recognized by iTunes

    Hello all, I have to update iTunes to version 8.0.1 to new version 8.0.2. Then, I restart the computer and my iPod Touch (firmeware 2.1, none-jailbreaked) is no longer detected by iTunes, unfortunately It's detected by Windows as a camera (normal, be

  • Downloaded mavericks for one mac can i use the same download to install on another mac

    I have downloaded for 12 hours initial installation on one mac for mavericks, and all installed successfully. Rather than download again for another mac, can I use the same download and copy on to the other mac..and if yes, where will I find it?

  • FILE to idoc scenario

    Hi, in one of my scenario  i am sending data from CSV file to idoc(ORDERS05). I have created on third party Technical System and assign business system and logical name(XYZ) for business system. I have done FCC in sender CC. Sender Partner Type is   

  • How to connect labviewv database toolkit to SQL CE server

    Dear sir,                   i am using labview 8.2.1 and Database Connectivity 8.2.i need same simple  concept of how to connect  LV database toolkit to SQL CE Server.

  • Does 10g application server 10.1.2.0.2 work for 9i database?

    I have installed 9i database on UNIX. then I am trying to install 10 application server 10.1.2.0.2. But somehow it force me to install a complete 10g database, which is undesireable for me. So I just wonder whether 10g application server can work for