I'm trying to add the functionality of paying auto
reorders by billing account and there seems to be some
inconsistances in the way orders and shopping lists
are handled.
1) OrderHeader has a billingAccount field. This is
allowing the current workaround with limited
functionality where billingAccounts don't utilize the
PaymentMethod entity.
To solve this I propose adding a join entity with
billingAccountId and PaymentMethodId. Once this is
added a billing account will have an associated
paymentMethodId that can be used in the shoppingList.
The alternative is to make auto reorders an order type
and changing the service routine for
runShoppingListAutoReorder in order to obtain payment flexibility.
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev