salesOrder.Debtor.Address4 is incorrect in version 157  Topic is solved

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

salesOrder.Debtor.Address4 is incorrect in version 157

Postby indikad » Wed Jul 06, 2016 12:33 pm

Is this a bug ? version 149 and 157
I have converted the following code from jiwa 6 to 7 but the address4 from Jiwa 7 gives me a blank when it should have a value
could you please check and give me a workaround ? I would rather not do a trip to the databasae using sql...

Jiwa 6
Code: Select all
SalesOrderObject.DebtorAddress4


jiwa 7
Code: Select all
 Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements         JiwaApplication.IJiwaFormPlugin.Setup
      If TypeOf JiwaForm Is JiwaSalesUI.SalesOrder.SalesOrderEntryForm Then
         Dim SalesOrdForm As JiwaSalesUI.SalesOrder.SalesOrderEntryForm = DirectCast(JiwaForm, JiwaApplication.IJiwaForm)         
         AddHandler SalesOrdForm.SalesOrder.Created , AddressOf SalesOrderCreated
      End If
    End Sub


msgbox (" debtor adderss 4 = " & salesOrder.Debtor.Address4.ToString() )  '---- this gives a blnak but there is a value in the state field ( address 4 )

indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: salesOrder.Debtor.Address4 is incorrect in version 157  Topic is solved

Postby Mike.Sheen » Sun Jul 31, 2016 12:24 pm

Hi Indika,

Use salesOrder.Debtor.MailingAddress.Region to get the state.

Early on in the sales order development for version 7 we tried to make a bit more sense out of the addresses and we have a MailingAddress and DeliveryAddress property for the debtor entity attached to the sales order.
Unfortunately, it looks like we overlooked the fact the debtor base entity still has address fields and this has caused the confusion.

Mike
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 4 guests