Tweak AccountsByRule function to allow both customers and suppliers in Sale and Purchase vouchers
Sometimes the same party can be Customer and Supplier. To avoid creation of two separate accounts for the same party accountsbyrule function must be tweaked to allow customers and suppliers in Sale and Purchase vouchers and Receipt and Payment vouchers.