Bills of Materials Notes  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Bills of Materials Notes

Postby Atronics » Fri Dec 04, 2015 9:48 am

How can I copy the the notes from a BoM Output item to the notes on a BoM Maintenenace
Atronics
Frequent Contributor
Frequent Contributor
 
Posts: 119
Joined: Fri Feb 29, 2008 4:40 pm
Topics Solved: 10

Re: Bills of Materials Notes  Topic is solved

Postby Mike.Sheen » Fri Dec 04, 2015 2:28 pm

Atronics wrote:How can I copy the the notes from a BoM Output item to the notes on a BoM Maintenenace


You probably want to do this when you add an output item to a bill. You'd need to listen to the outputitem collection added event, and in there instantiate an inventory business logic and read the output item, and then iterate through each note and add it to the notes of the bill.

You'll need to consider note types - as the note types for inventory items may be different to the note types of bills. Probably ideally you'd try to match on the note type description, and if none is found just stick with the default note type.

Attached is a sample which does what you want - but it does not attempt to match note types.

Mike
Attachments
Plugin Bill Maintenance - Add notes of output item to notes of Bill.xml
Sample plugin
(32.43 KiB) Downloaded 219 times
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests