personalization validate po quantity with pr
TRANSCRIPT
Personalization Validate Po Quantity With PR Quantity
We Want Validate Purchase Order Line Quantity With Related Purchase Requisition Quantity
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})
=' من أكثر بالتعديل مسموح 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}))
Condition TypeTrigger Event WHEN-VALIDATE-RECORDTrigger Object PO_DISTRIBUTIONSCondition ((SELECT
( NVL(REQ_LINE_QUANTITY,0)+(NVL(REQ_LINE_QUANTITY,0)*0.05)) PR_QTY
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})