Commit 75be20c5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from getInvoiceTransactionLineSourceItemList.py to...

Renamed from getInvoiceTransactionLineSourceItemList.py to InvoiceTransactionLine_getSourceItemList.py.


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