personalization validate po quantity with pr

11
Personalization Validate Po Quantity With PR Quantity We Want Validate Purchase Order Line Quantity With Related Purchase Requisition Quantity

Upload: ahmed-elshayeb

Post on 18-Jan-2017

843 views

Category:

Business


4 download

TRANSCRIPT

Page 1: Personalization Validate Po Quantity With PR

Personalization Validate Po Quantity With PR Quantity

We Want Validate Purchase Order Line Quantity With Related Purchase Requisition Quantity

Page 2: Personalization Validate Po Quantity With PR
Page 3: Personalization Validate Po Quantity With PR
Page 4: Personalization Validate Po Quantity With PR
Page 5: Personalization Validate Po Quantity With PR

Condition TypeTrigger Event WHEN-VALIDATE-RECORDTrigger Object PO_LINESCondition ((SELECT

( NVL(REQ_LINE_QUANTITY,0)+(NVL(REQ_LINE_QUANTITY,0)*0.05)) PR_QTYFROM po_headers_all poh,po_lines_all pol,po_line_locations_all poloc,po_distributions_all pod,po_req_distributions_all pordWHERE 1=1AND poh.po_header_id = pol.po_header_idAND pod.po_line_id = pol.po_line_idAND pod.po_header_id = pol.po_header_idAND pod.req_distribution_id = pord.distribution_id(+)AND poloc.po_line_id = pol.po_line_idAND poloc.po_header_id = pol.po_header_idand poloc.po_header_id= ${item.po_lines.po_header_id.value}AND POL.PO_LINE_ID=${item.po_lines.po_line_id.value})) <>0AND ${item.po_lines.quantity.value} >(SELECT ( NVL(REQ_LINE_QUANTITY,0)+(NVL(REQ_LINE_QUANTITY,0)*0.05)) PR_QTYFROM po_headers_all poh,po_lines_all pol,po_line_locations_all poloc,po_distributions_all pod,po_req_distributions_all pordWHERE 1=1AND poh.po_header_id = pol.po_header_idAND pod.po_line_id = pol.po_line_idAND pod.po_header_id = pol.po_header_idAND pod.req_distribution_id = pord.distribution_id(+)AND poloc.po_line_id = pol.po_line_idAND poloc.po_header_id = pol.po_header_idand poloc.po_header_id= ${item.po_lines.po_header_id.value}

AND POL.PO_LINE_ID=${item.po_lines.po_line_id.value})

Page 6: Personalization Validate Po Quantity With PR

=' من أكثر بالتعديل مسموح SELECT))||'--'|| 'غير( NVL(REQ_LINE_QUANTITY,0)+(NVL(REQ_LINE_QUANTITY,0)*0.05)) PR_QTYFROM po_headers_all poh,po_lines_all pol,po_line_locations_all poloc,po_distributions_all pod,po_req_distributions_all pordWHERE 1=1AND poh.po_header_id = pol.po_header_idAND pod.po_line_id = pol.po_line_idAND pod.po_header_id = pol.po_header_idAND pod.req_distribution_id = pord.distribution_id(+)AND poloc.po_line_id = pol.po_line_idAND poloc.po_header_id = pol.po_header_idand poloc.po_header_id= ${item.po_lines.po_header_id.value}

AND POL.PO_LINE_ID=${item.po_lines.po_line_id.value}))

Page 7: Personalization Validate Po Quantity With PR
Page 8: Personalization Validate Po Quantity With PR

Condition TypeTrigger Event WHEN-VALIDATE-RECORDTrigger Object PO_DISTRIBUTIONSCondition ((SELECT

( NVL(REQ_LINE_QUANTITY,0)+(NVL(REQ_LINE_QUANTITY,0)*0.05)) PR_QTY

Page 9: Personalization Validate Po Quantity With PR

FROM po_headers_all poh,po_lines_all pol,po_line_locations_all poloc,po_distributions_all pod,po_req_distributions_all pordWHERE 1=1AND poh.po_header_id = pol.po_header_idAND pod.po_line_id = pol.po_line_idAND pod.po_header_id = pol.po_header_idAND pod.req_distribution_id = pord.distribution_id(+)AND poloc.po_line_id = pol.po_line_idAND poloc.po_header_id = pol.po_header_idand poloc.po_header_id= ${item.po_lines.po_header_id.value}AND POL.PO_LINE_ID=${item.po_lines.po_line_id.value})) <>0AND ${item.po_lines.quantity.value} >(SELECT ( NVL(REQ_LINE_QUANTITY,0)+(NVL(REQ_LINE_QUANTITY,0)*0.05)) PR_QTYFROM po_headers_all poh,po_lines_all pol,po_line_locations_all poloc,po_distributions_all pod,po_req_distributions_all pordWHERE 1=1AND poh.po_header_id = pol.po_header_idAND pod.po_line_id = pol.po_line_idAND pod.po_header_id = pol.po_header_idAND pod.req_distribution_id = pord.distribution_id(+)AND poloc.po_line_id = pol.po_line_idAND poloc.po_header_id = pol.po_header_idand poloc.po_header_id= ${item.po_lines.po_header_id.value}

AND POL.PO_LINE_ID=${item.po_lines.po_line_id.value})

Page 10: Personalization Validate Po Quantity With PR