any expert comment ?
You should be able to put in a condition to check this then delete the PO.
At the point of this hook I believe the po has already been created.
I have done modifications to the existing po when created using the hook but not deleting the record.
If you can't delete the PO maybe then possibly updating the note to buyer or some other field to indicate the issue.
If I want to change in po after creation of po then why should I use the hook ?
we can do the same task on po form .
I am in confusion that exactly when I should use the autocreate hook ? in which situation ?
If you have any idea, pl. advice me.
By Autocreate, do you mean using the Autocreate form? If so perhaps you could put a personalization on the form to do your validations and not allow the buyers to go further if anything fails validation?
Yes Dear, I am talking about autocreate form .
I want to know the concept of autocreate hook .
In which situation, when and where it should apply (autocreate hook) ?
Is it possible to put validation before creation of po ?
Is it possible to alter the field value in po interface table once the validation failed (before the autocreate) ?
That I want to know, otherwise I can do the personalization for the validation,.
Hope you understand my requirements.
Probably in hook you can update logic like update attributes and all from taking details from requisition.. but to stop creating PO I think you should take FP approach.. ..
Let me know which one is working ... I'll also keep a note