When creating а CustomerPayment we should be able to link it to any orders and invoices of that customer. A payment can be partial to order/invoice it can also combines amounts of several orders/invoices.
When a payment is generated as connected to order, it won't automatically connect it to an invoice generated based on that order, because they are related to different parts of the order.
When creating а CustomerPayment we should be able to link it to any orders and invoices of that customer. A payment can be partial to order/invoice it can also combines amounts of several orders/invoices.
When a payment is generated as connected to order, it won't automatically connect it to an invoice generated based on that order, because they are related to different parts of the order.