In the payment application form of control/editPaymentApplications? the user can select various invoices for the payment to be applied to. This selection method allows all invoices to be selected (and the lookup shows all).
However, this function should only show the invoices of the appropriate party, e.g.
- sales invoices for the customer selected,
- purchase invoice for the supplier selected,
- commission invoice for the agent selected