## Script (Python) "AccountingModule_addPurchaseInvoiceTransaction"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=folder, id
##title=
##
product = container.manage_addProduct[ 'ERP5Type' ]
product.addInvoice(id)
my_transaction = folder[id]
my_transaction.newContent(portal_type='Purchase Invoice Transaction Line',
source='account/services_exterieurs',
id='expense')
my_transaction.newContent(portal_type='Purchase Invoice Transaction Line',
source='account/dette_fournisseur',
id='payable')
my_transaction.newContent(portal_type='Purchase Invoice Transaction Line',
source='account/tva_collectee_196',
id='collected_vat')
my_transaction.newContent(portal_type='Purchase Invoice Transaction Line',
source='account/tva_recuperable_196',
id='refundable_vat')
return my_transaction
-
Yoshinori Okuji authored
git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1683 20353a03-c40f-0410-a6d1-a30d3c3de9de
b7b7c774