1) Payment Terms
2) Special Calendars
Navigation:- Below Screenshot
Table Name :- AP_OTHER_PERIOD_TYPES, AP_OTHER_PERIODS-------------------------------------Query--------------------------------------------
SELECT apt.NAME,atl.calendar, atl.fixed_date, atl.due_day_of_month, atl.due_days
FROM ap_terms apt, ap_terms_lines atl
WHERE apt.term_id = atl.term_id
AND apt.NAME in ('RTEST')
select * from AP_OTHER_PERIOD_TYPES
where MODULE ='PAYMENT TERMS'
and period_type =:lv_payment_term
select due_date from AP_OTHER_PERIODS
where MODULE ='PAYMENT TERMS'
and period_type =:lv_payment_term
and :p_invoice_date between start_date and end_date
--------------------------------------------------------------------------------------------------------------------------
Logic Explained to derive Due date based on Invoice Date and Payment Term
No comments:
Post a Comment