Shipment book-in from code  Topic is solved

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

Shipment book-in from code

Postby perry » Mon Feb 22, 2016 5:27 pm

Hi,

Jiwa 7.0.149

I'm trying to create shipment book-in, assign qty (with serial no) and activate from .NET app.

so far, I'm having trouble adding line detail record
Code: Select all
oLineDetail = New JiwaLandedCost.Shipment.BookInLineDetail
oLineDetail.RecID = JiwaApplication.Manager.Instance.Database.NewGUID
oLineDetail.Quantity = BatchQty
oLineDetail.SerialNo = SerialNo
oLineDetail.ExpiryDate = ExpiryDate
oLineDetail.BinLocation = ""
oShpLine.BookInLineDetails.Add(oLineDetail)


Code won't compile because "Set" accessor of those properties are not accessible.
Similar code works in GRN.
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: Shipment book-in from code  Topic is solved

Postby Mike.Sheen » Tue Feb 23, 2016 7:50 pm

You probably don't need to set the RecID, it will be set for you when added.

The binlocation is likely not a string, but an entity, so look the the methods and use a read method - e.g.:

oLineDetail.BinLocation.ReadRecordFromDescription("...") or oLineDetail.BinLocation.ReadDefault, et cetera - intellisense should reveal what is available.
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 1 guest