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

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

salesOrder.Debtor.Country is incorrect in version 157

Postby indikad » Wed Jul 06, 2016 1:17 pm

looks like a bug ? version 157 and 149
salesOrder.Debtor.Country returns a blank


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 Debtor.Country = " & salesOrder.Debtor.Country.ToString() )  '---- this gives a blnak but there is a value in the database

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

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

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

Hi Indika,

Use salesOrder.Debtor.MailingAddress.Country to get the country.

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 2 guests