got client that really what one PR line can posting to multiple.
class RequisitionReleaseStrategy\Main
add this code below
//AIFD if(cekProses) { ttsBegin; for (purchReqLine = fds.getFirst(processMarkedRows) ? fds.getFirst(processMarkedRows) : _args.record(); purchReqLine; purchReqLine = fds.getNext()) { select forUpdate purchReqLineLoc where purchReqLineLoc.RecId==purchReqLine.RecId; purchReqLineLoc.PurchLineCreated = false; purchReqLineLoc.RequisitionStatus = PurchReqRequisitionStatus::Approved; if(purchReqLineLoc) { purchReqLineLoc.update(); } } ttsCommit; }
we need a job code for multiple PR to single PO.