Page 1 of 1

salesOrder.Debtor.Address4 is incorrect in version 157

PostPosted: Wed Jul 06, 2016 12:33 pm
by indikad
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 )


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

PostPosted: Sun Jul 31, 2016 12:24 pm
by Mike.Sheen
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