- Code: Select all
private void SalesOrderDebtorPopup(object sender, System.EventArgs e)
{
JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder salesOrder = (JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder)sender;
JiwaFinancials.Jiwa.JiwaDebtors.Debtor debtor = salesOrder.Manager.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaDebtors.Debtor>(null);
debtor.Read(salesOrder.Debtor.DebtorID);
if (salesOrder.Debtor.DebtorID != debtor.ParentDebtor.DebtorID)
{
MessageBox.Show("Parent debtor is " + debtor.ParentDebtor.AccountNo + " - " + debtor.ParentDebtor.Name + ".");
}
}
Thing is, this is what is displayed- note that the debtor.ParentDebtor.AccountNo is not displayed and the name has a " - False" at the end of it. Is this a bug?
v 7.2.1 latest SR.
EDIT:
So I tried just displaying each field independently, i.e.
- Code: Select all
MessageBox.Show(debtor.ParentDebtor.AccountNo);
MessageBox.Show(debtor.ParentDebtor.Name);
Turns out that AccountNo is displaying name. And Name is displaying the string "False".