Commit cfb770d6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

for payment, we care source_payment for source case (cf. for section, we care...

for payment, we care source_payment for source case (cf. for section, we care destination_section for source case). thanks to Jérome.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32721 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 90a4640e
......@@ -66,10 +66,10 @@ payment_dict = {None: 1}\n
for line in context.getMovementList():\n
if source:\n
section_dict[line.getDestinationSection()] = 1\n
payment_dict[line.getDestinationPayment()] = 1\n
payment_dict[line.getSourcePayment()] = 1\n
else:\n
section_dict[line.getSourceSection()] = 1\n
payment_dict[line.getSourcePayment()] = 1\n
payment_dict[line.getDestinationPayment()] = 1\n
\n
if context.getSourcePayment() or context.getDestinationSection():\n
min_payment_count = 2\n
......
1110
\ No newline at end of file
1111
\ 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