Hi Jonathon,

Thanks for repaying on this post.

> Adding billingAcountId to OrderPaymentPreference should be the easiest way to 
> go about it.
> I can't remember what I added for OrderPaymentPreference. But I do remember 
> that I REALLY liked
> how there can be multiple OrderPaymentPreference(s) per OrderHeader, multiple 
> ways to pay for an
> order. 

I am glad to hear that someone has achieved such a functionality before with 
the same idea. So I will try to accomplish it the same way.

> I can't see any disadvantage to this solution. You will likely have to do 
> some core/important
> changes to PaymentGatewayServices.java, I think. 

I am aware of this problem. I was looking at PaymentGatewayServices.java and 
yes there will be need to change the logic in few services. 

> The only disadvantage, possibly, is that there
> might be considerable "change propagation" effort if there are a lot of other 
> codes that ASSUME
> there's only one billing account per order.

Yes this is problem and I will try to find all these places. Now I can't 
remember such places except the code that is related to billing accounts.

Do you have any idea how to handle creation of one invoice for orders that are 
payed with different BA. The problem is DB relation between BillingAccount and 
Invoice entities(invoice.billingAccountId field).

Thanks a lot,
Rashko Rejmer

Reply via email to