Because a Bill Payment can only have one Payment Type assigned and these types may be GL’d differently, you may have to separate a Bill Payment into multiple payments based upon the Tender Type.
If only one Bill Payment applicable tender type is used, then the bill payment will not be split. The Payment Type will be changed to the type that correlates to the chosen Tender Type.
In the case that multiple tender types are chosen and no one tender type satisfies the Bill Payment amount, the Payment will be split into 2 or more Payments with each Payment Type set to correlate to each Tender Type.
This is accomplished by doing the following:
Working through Bill Payments in the order from largest to smallest amount, attempting to match up Tender Type totals. If a tender is used that can satisfy that payment without splitting, then that one is used. If the tender type cannot be used, then start to split the payment from there, working our way down from greatest Tender Type total to smallest.
In reality this will probably not occur much as most people tend to use only one type of tender during a transaction