Hi experts,
My requirement is to retrieve Purchase Order ID and assign it to an extension field of Item node.
Purchase Order 123
Purchase Order ID + Item ID | Item ID | Product |
---|---|---|
123-1 | 1 | P1 |
123-2 | 2 | P2 |
I wrote this in PurchaseOrder-Item-AfterModify and in BeforeSave.
this.N_PONumber_POItemList = this.ToParent.ID.content+"-"+this.ID;
But PurchaseOrder ID is always like "##1" when Save or Order button is clicked.
Also I tried in PurchaseOrder-BeforeSave.
foreach(var item in this.Item){
item.N_PONumber_POItemList = this.ID.content+"-"+item.ID;
}
Same result.
It seems my codes have been processed before Purchase Order ID is issued.
1) How can I handle that?
2) As another option, is it possible to concatenate Purchase Order ID and Item ID in the BI report?
Best Regards,
Fred