Internal process to apply PREPAYMENT on ap_payment_schedules_all
I have the following situation in EBS 11.5.10 version.
There are 2 Prepayments Invoices. First was applied a full payment of $ 200, the second Prepayment Invoice was applied a full payment of $100.
After this was entered a Standard Invoice of $ 400 that was divided in 2 lines with due date in 10 days (40%) and 40 days (60%). So one line with $ 160 and the other with $ 240.
I applied in the first line ($ 160) the prepayment of $100 and in the second line ($ 240) the prepayment of $200.
Now I seeing in ap_invoice_distributions_all table one line with line_tupe_lookup_code = 'ITEM' and two lines with line_tupe_lookup_code = 'PREPAY' (amount (-100) and (-200)). In ap_payment_schedules_all there are two lines. One with amount_remaining = $ 60 (gross_amounting = 160) and the other with amount_remaining = $ 40 (gross_amounting = 240).