Commit b7b7c774 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from Invoice_addPurchaseInvoice.py to AccountingModule_addPurchaseInvoiceTransaction.py.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1683 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7493e8cb
## Script (Python) "Invoice_addPurchaseInvoice"
## Script (Python) "AccountingModule_addPurchaseInvoiceTransaction"
##bind container=container
##bind context=context
##bind namespace=
......@@ -7,16 +7,16 @@
##parameters=folder, id
##title=
##
product = container.manage_addProduct[ 'ERP5' ]
product = container.manage_addProduct[ 'ERP5Type' ]
product.addInvoice(id)
my_transaction = folder[id]
my_transaction.newContent(portal_type='Purchase Invoice Transaction Line',
source='account/dette_fournisseur',
source='account/services_exterieurs',
id='expense')
my_transaction.newContent(portal_type='Purchase Invoice Transaction Line',
source='account/achat_pc_storever',
source='account/dette_fournisseur',
id='payable')
my_transaction.newContent(portal_type='Purchase Invoice Transaction Line',
source='account/tva_collectee_196',
......
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