When a purchase order is being deleted or reverse approved, then this function validates whether deletion of this PO is allowed. This function returns FALSE (PO can be deleted) or a TRUE (PO cannot be deleted).
The following sub-functions can be used as part of the function mi_jvx_pck_po_custom.validate_po. These functions return a TRUE or a FALSE value:
-
validate_matl - To verify if any material is available in the Jovix Material Register for the selected PO line item.
-
validate_container - To verify if the line item of a selected PO is available in the Jovix Container.
-
validate_status - To verify if the line item of a PO has a specific status defined in the Jovix Material Register.
Parameter name |
Parameter type |
Description |
p_poh_jvx_id |
Input |
Jovix purchase order ID. |
p_smat_proj_id |
Input |
Smart Materials project ID. |