This function is called when you try to reverse approve a PO with PO revision greater than zero and checks whether the PO can be reverse approved. If the function returns FALSE then the PO can be reverse approved and if the function returns TRUE then the PO cannot be reverse approved.
Default logic
This function checks the received quantity of a PO line item against the PO line item quantity of the previous supplement.
If the received quantity of a line item is less than the PO line item quantity of the previous supplement, then the function returns a value FALSE and the PO can be reverse approved. In Jovix, the corresponding PO is updated with the previous supplement values.
Parameter name |
Parameter type |
Description |
p_base_poh_id |
Input |
Smart Materials base purchase order ID. |
p_revision |
Input |
Purchase Order revision number. |