One suggestion might be to implement a 'Yes/No' message box in table
'CustInvoiceTable' method 'setInvoiceAddress()' that - if a customer has an
alt. address of type 'Invoice' - pops up and the user is asked to select
wether the alt. address should be used or not (I haven't used labels for the
text elements of the message box):
...
if (Address::exist(custTable.tableId, custTable.recId, AddressType::Invoice))
//suggestion start
if (box::yesNo('Abweichende Adresse verwenden?', DialogButton::No,Which
address', 'An alt. address of the type "Invoice" exists. Should this be used
instead of the defaul address?') == DialogButton::Yes)
//suggestion end
address = Address::find(custTable.tableId, custTable.recId,
AddressType::Invoice);
...
Be aware, that there is a 2nd issue: it is always the alphbetical 1st
address of tpye 'Invoice' that is used!
J_Seidler
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.