/*
采购要打印验收单,但是在PR,
过程是从P R 改起,一 共改3 次,最终解决问题.
*/
select *
from po_headers_all
where segment1=20600172;
select *
from po_requisition_headers_all
where creation_date>to_date('
select *
from PO_requisition_headers_all
where segment1=10501804 ;
--先找到和点收单,PO的请购单
--查找到请购单的Id
select requisition_header_id
from po_requisition_headers_all
where segment1=10501804
--96570
--update PR
update po_requisition_lines_all
set item_id=51132
where requisition_header_id=96570;
--view update
select item_id
from po_requisition_lines_all
where requisition_header_id=96570;
--commit
commit;
--同上,查找出?P0
select po_header_id
from po_headers_all
where segment1=20600172
--66397
select item_id, po_line_id,po_lines_all.*
from po_lines_all
where po_header_id=66397;