Commit 4cc54380 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from getInvoiceTransactionLineDestinationItemList.py to...

Renamed from getInvoiceTransactionLineDestinationItemList.py to InvoiceTransactionLine_getDestinationItemList.py.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1596 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19c105d5
## Script (Python) "getInvoiceTransactionLineDestinationItemList"
## Script (Python) "InvoiceTransactionLine_getDestinationItemList"
##bind container=container
##bind context=context
##bind namespace=
......@@ -9,19 +9,19 @@
##
from Products.ERP5Type.Cache import CachingMethod
category_dict = {'income': 'portal_categories/pcg/6',
'expense': 'portal_categories/pcg/7',
'payable': 'portal_categories/pcg/4/41/410',
'receivable': 'portal_categories/pcg/4/40/409',
'collected_vat': 'portal_categories/pcg/4/44',
'refundable_vat': 'portal_categories/pcg/4/44',
'bank': 'portal_categories/pcg/5',
category_dict = {'income': 'portal_categories/account_type/expense',
'expense': 'portal_categories/account_type/income',
'payable': 'portal_categories/account_type/asset/receivable',
'receivable': 'portal_categories/account_type/liability/payable',
'collected_vat': 'portal_categories/account_type/asset/receivable/refundable_vat',
'refundable_vat': 'portal_categories/account_type/liability/payable/collected_vat',
'bank': 'portal_categories/account_type/asset/cash',
}
if context.id in category_dict:
category = category_dict[context.id]
else:
category = 'portal_categories/pcg'
category = 'portal_categories/account_type'
display_dict = {}
def display(x):
......
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