SalesOrderObject.Debtor.OnHold gives wrong information  Topic is solved

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

SalesOrderObject.Debtor.OnHold gives wrong information

Postby indikad » Thu Jun 30, 2016 1:18 pm

please let me know if this is a bug (on version 149 - so could have got fixed later )

I m calling this bit of code from SalesOrdForm.SalesOrder.SaveStart

even when the debtor is on hold the "SalesOrderObject.Debtor.OnHold " returns false.

Code: Select all
Sub SalesOrderSaveStart2 ( sender As Object ,  e As System.EventArgs )   
      Try                           
         Dim SalesOrderObject As JiwaSales.SalesOrder.SalesOrder = DirectCast( sender , JiwaSales.SalesOrder.SalesOrder)   
      
                        If SalesOrderObject.Debtor.OnHold = True Then
            msgbox ( " debtor is on hold  " )
            
         End If
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: SalesOrderObject.Debtor.OnHold gives wrong information  Topic is solved

Postby Mike.Sheen » Thu Jun 30, 2016 4:21 pm

Hi Indika,

It is a bug, but can be worked around by examining the SalesOrderObject.Debtor.AccountOnHold property instead.

The salesOrder.Debtor class inherits from the JiwaFinancials.Jiwa.JiwaApplication.Entities.Debtor.Debtor class and extends it to provide some more information, but incorrectly does not override the OnHold property, and instead introduces a new property named AccountOnHold.

Logged as bug BUGS-5059
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