Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

PROCEDURE SHALINA_FORM_EXTN(event_name varchar2) IS BEGIN -------------- Sales Order View restriction starts here (Oredrs,Returns > Sales Order)

----------------------------------------------------if (fnd_profile.value('SHALINA_INV_ORG_SEC') is not null) then if ((event_name = 'WHEN-NEW-BLOCK-INSTANCE') or (event_name = 'WHEN-NEWRECORD-INSTANCE')) then if ((form_name = 'OEXOEORD') and (block_name = 'ORDER')) then set_block_property('ORDER',DEFAULT_WHERE,'WHERE SHIP_FROM_ORG_ID =' fnd_profile.value('SHALINA_INV_ORG_SEC')); end if; end if; if((form_name = 'WSHFSTRX') and (block_name = 'DLVB')) then set_block_property('DLVB',DEFAULT_WHERE,'WHERE ORGANIZATION_ID = ' fnd_profile.value('SHALINA_INV_ORG_SEC')); end if; if((form_name = 'WSHFSTRX') and (block_name = 'QUERY_MANAGER')) then copy(fnd_profile.value('SHALINA_INV_ORG_SEC'),'Q UERY_MANAGER.DLVB_ORGANIZATION_ID'); end if; end if; ---------------------- AP Invoice Disrtibution Line Issue Starts here -----------------------if (event_name = 'WHEN-NEW-RECORD-INSTANCE') then if ((form_name = 'APXINWKB') and (block_name = 'D_SUM_FOLDER'))then if(((name_in('INV_SUM_FOLDER.WFAPPROVAL_STATUS') = 'WFAP PROVED') or (name_in('INV_SUM_FOLDER.WFAPPROVAL_STATUS') = 'MANUALLY APPROVED')) and (name_in('INV_SUM_FOLDER.POSTING_FLAG') = 'Y')) then set_block_property('D_SUM_FOLDER',INSERT_ALLOWED ,PROPERTY_FALSE); set_block_property('D_SUM_FOLDER',UPDATE_ALLOWED ,PROPERTY_FALSE); end if; end if; end if; ---------------------- AP Invoice Disrtibution Line Issue Ends here -----------------------END;

You might also like