getRequisitionById(Integer id) Obtains the requisition document from the database given a requisition id as the input parameter
Parameters: id - the requisition id of the document we want to obtain.
public boolean
isAutomaticPurchaseOrderAllowed(RequisitionDocument requisition) Checks whether the requisition is eligible to become an Automatic Purchase Order (APO)
Parameters: requisition - the requisition document to be checked.
Obtains the requisition document from the database given a requisition id as the input parameter
Parameters: id - the requisition id of the document we want to obtain. RequisitionDocument the requisition document whose requisition id is the id in the input parameter of this method.
Checks whether the requisition is eligible to become an Automatic Purchase Order (APO)
Parameters: requisition - the requisition document to be checked. boolean true if the requisition is eligible to become APO.
Saves the document without doing validation by invoking the saveDocument method of documentService.
Parameters: requisitionDocument - the requisition document to be saved