Commit 64a0028e authored by Jérome Perrin's avatar Jérome Perrin

Show payment request column if set on lines

parent 2d1c079b
......@@ -60,13 +60,16 @@ The same for apply for payment / payment_reference.\n
"""\n
section_dict = {None: 1}\n
payment_dict = {None: 1}\n
payment_request_dict = {None: 1}\n
for line in context.getMovementList():\n
if source:\n
section_dict[line.getDestinationSection()] = 1\n
payment_dict[line.getSourcePayment()] = 1\n
payment_request_dict[line.getSourcePaymentRequest()] = 1\n
else:\n
section_dict[line.getSourceSection()] = 1\n
payment_dict[line.getDestinationPayment()] = 1\n
payment_request_dict[line.getDestinationPaymentRequest()] = 1\n
\n
if context.getSourcePayment() or context.getDestinationSection():\n
min_payment_count = 2\n
......@@ -107,6 +110,11 @@ if multiple_payment:\n
a((\'getDestinationPaymentTitle\', \'Bank Account\'))\n
else:\n
a((\'getDestinationPaymentReference\', \'Bank Account\'))\n
if len(payment_request_dict) > 1:\n
if source:\n
a((\'getSourcePaymentRequestTitle\', \'Payment Request\'))\n
else:\n
a((\'getDestinationPaymentRequestTitle\', \'Payment Request\'))\n
if source:\n
a((\'source_debit\', \'Debit\'))\n
a((\'source_credit\', \'Credit\'))\n
......
1519
\ No newline at end of file
1520
\ No newline at end of file
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