Hi All,
my client wants to use PO & PR Workflow in same time.
i had created both workflow.
and he need automatically creation of PO from once PR Approved.
So i setup automatic creation of po once PR Approved through purchase policy and batch job, it is working fine but problem is once PR Approved PO Is creating with Approved Status.
if we wants run PO workflow it should be with DRAFT Status.
So Please Help Me to solve this issue.
For Manual Creation of Purchase Order after completion of Purchase Requisition it is working fine -- small customization
Classes\PurchAutoCreate_PurchReq\endUpdate
public void endUpdate()
{
super();
// Calculate discount before purchTable is automatically changed to approval status
if (purchTable.ChangeRequestRequired)
{
purchTable.reread();
if(PurchParameters::find().AutomaticTotalDiscount)
{
purchTable.updateFinalDisc();
}
}
//purchTable.autoApproveChangeRequest(); commented this line
}
For Automatic
In purchase Requisition in setup policies they have given option as
Automatically Create Purchase Order
then in Periodic - Batch Purchase Order Generation from there Batch Job setup is done
and After approved status of Purchase Requisition only the batch job runs and purchase order is created and after succesful creation of purchase requisition The status of purchase requisition is changed to Closed Status..which means Purchase Order is created as per my knowledge
After successful creation of purchase order the status of purchase order is coming as Approval.we want to customize as Draft
Please Provide any help
Thanks,
Regards,
*This post is locked for comments
I have the same question (0)