Hi all,
I will be adding new fields to the PurchLine table and i need these fields to be updated in the Purchase order versions.
Any suggestion would help.
Thanks,
Rusty
*This post is locked for comments
Hi all,
I will be adding new fields to the PurchLine table and i need these fields to be updated in the Purchase order versions.
Any suggestion would help.
Thanks,
Rusty
*This post is locked for comments
Hi,
Record get created in table PurchTableVersion whenever a purchase order is either confirmed or reconfirmed or approved or reapproved.
Record in PurchTableVersion table gets created in method createNewVersion of class VersioningPurchaseOrder. So, if you have custom fields on PurchTable and want them to get defaulted include your code here.
Record in PurchLineHistory(i.e Purch line versions) table gets created in method archivePurchLine of class VersioningPurchaseOrder. So, if you have custom fields on PurchLine and want them to get defaulted include your code here. Also, you need to create the fieldlist in the macro VersioningFieldLists.
Hi Rusty,
I used this blog post here to good effect. Basically there are 'line' equivalent queries, tables and views to add in your new field(s) so they get stored as part of the purchase order confirmation journals.
http://theinfolog.com/adding-fields-to-purchpurchaseorder-purchase-order-confirmation/
In addition to this post I found I needed to update the Map PurchTableMap (i,.e. PurchLineMap for your example).
Also, when you do your BP compiles keep running them as you fix up the classes as more keep on dropping out that you need to fix (for me I had to add methods to the following classes to clear all of the BP warnings: AxPurchTable, AxPurchTableAllVersions, TMSPurchOrder_PurchTable, PurchPurchReq_PurchTableAllVersions)
Let me know if you need anything else on this.
Mike
André Arnaud de Cal... 291,735 Super User 2024 Season 2
Martin Dráb 230,466 Most Valuable Professional
nmaenpaa 101,156