In inventory if u need to find the aging details of sales report u need to refer to cutomer tables
i.e:
ra_customer_trx_lines_all and ra_customer_trx_all
conditions to filter will be inventory_item_id,organization_id
e.g query:
select
sum(nvl(quantity_invoiced,0)) + sum(nvl(quantity_Credited,0)) Qty,to_number(ltrim(rtrim(cta.interface_header_attribute10)))
from
ra_customer_trx_lines_all ctla ,ra_customer_trx_all cta
where
cta.customer_trx_id = ctla.customer_trx_id
and inventory_item_id = 86343
-- and to_number(ltrim(rtrim(cta.interface_header_attribute10))) = o_id
-- and cta.trx_date >= sysdate - TDays
group by
ltrim(rtrim(cta.interface_header_attribute10)),
inventory_item_id;
i.e:
ra_customer_trx_lines_all and ra_customer_trx_all
conditions to filter will be inventory_item_id,organization_id
e.g query:
select
sum(nvl(quantity_invoiced,0)) + sum(nvl(quantity_Credited,0)) Qty,to_number(ltrim(rtrim(cta.interface_header_attribute10)))
from
ra_customer_trx_lines_all ctla ,ra_customer_trx_all cta
where
cta.customer_trx_id = ctla.customer_trx_id
and inventory_item_id = 86343
-- and to_number(ltrim(rtrim(cta.interface_header_attribute10))) = o_id
-- and cta.trx_date >= sysdate - TDays
group by
ltrim(rtrim(cta.interface_header_attribute10)),
inventory_item_id;
No comments:
Post a Comment
Thanks for your comments submitted.,will review and Post soon! by admin.