Page 1 of 1

salesOrder.Debtor.Country is incorrect in version 157

PostPosted: Wed Jul 06, 2016 1:17 pm
by indikad
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


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

PostPosted: Sun Jul 31, 2016 12:26 pm
by Mike.Sheen
Hi Indika,

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

Mike