diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getListBoxColumnList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getListBoxColumnList.xml index b7344f44e7a27a24d5355996a04eedd2d66b8693..ad32074aae11657b7775cbcc7985ac8ca1dad979 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getListBoxColumnList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getListBoxColumnList.xml @@ -64,10 +64,12 @@ The same for apply for payment / payment_reference.\n section_dict = {None: 1}\n payment_dict = {None: 1}\n for line in context.getMovementList():\n - section_dict[line.getSourceSection()] = 1\n - section_dict[line.getDestinationSection()] = 1\n - payment_dict[line.getSourcePayment()] = 1\n - payment_dict[line.getDestinationPayment()] = 1\n + if source:\n + section_dict[line.getDestinationSection()] = 1\n + payment_dict[line.getDestinationPayment()] = 1\n + else:\n + section_dict[line.getSourceSection()] = 1\n + payment_dict[line.getSourcePayment()] = 1\n \n if context.getSourcePayment() or context.getDestinationSection():\n min_payment_count = 2\n diff --git a/bt5/erp5_accounting/bt/change_log b/bt5/erp5_accounting/bt/change_log index 0b35de7a05774e8a38031a23e4918547c2fed219..ccbe8b6861f5bceff1cee12af490cc6389e2ddb2 100644 --- a/bt5/erp5_accounting/bt/change_log +++ b/bt5/erp5_accounting/bt/change_log @@ -1,3 +1,6 @@ +2010-02-18 Kazuhiko +* count number of unique mirror sections only in preparing listbox column list. + 2009-12-14 yusei * Fix group type on Sale Invoice Transaction. diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 304a6a57d547f29bf7f84dbb4004545a6ff72235..96e38be9135de76304454b1655c079f08cb12715 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1109 \ No newline at end of file +1110 \ No newline at end of file