Commit 31fdae73 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Group Outstanding Deposit by ledger too

parent 0f2be0e3
...@@ -25,7 +25,10 @@ for subscription_request_brain in portal.portal_catalog( ...@@ -25,7 +25,10 @@ for subscription_request_brain in portal.portal_catalog(
if 0 < subscription_request_total_price: if 0 < subscription_request_total_price:
currency_uid = subscription_request.getPriceCurrencyUid() currency_uid = subscription_request.getPriceCurrencyUid()
# Future proof in case we implement B2B payment # Future proof in case we implement B2B payment
object_index = "%s_%s" % (currency_uid, subscription_request.getSourceSection()) object_index = "%s_%s_%s" % (
currency_uid,
subscription_request.getSourceSection(),
subscription_request.getLedger())
if object_index not in object_dict: if object_index not in object_dict:
object_dict[object_index] = [subscription_request, subscription_request_total_price] object_dict[object_index] = [subscription_request, subscription_request_total_price]
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment