Commit aac85c7f authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove getSimulationState because this is now defined in AccountingTransaction.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1057 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7de5c5cd
...@@ -129,19 +129,10 @@ An order...""" ...@@ -129,19 +129,10 @@ An order..."""
""" """
aggregate = self.Invoice_zGetTotal()[0] aggregate = self.Invoice_zGetTotal()[0]
return aggregate.total_quantity return aggregate.total_quantity
security.declareProtected(Permissions.AccessContentsInformation, 'getTotalNetPrice') security.declareProtected(Permissions.AccessContentsInformation, 'getTotalNetPrice')
def getTotalNetPrice(self): def getTotalNetPrice(self):
""" """
Returns the total net price for this invoice Returns the total net price for this invoice
""" """
return self.Invoice_zGetTotalNetPrice() return self.Invoice_zGetTotalNetPrice()
security.declareProtected(Permissions.AccessContentsInformation, 'getSimulationState')
def getSimulationState(self, id_only=1):
"""
Returns the current state in simulation
"""
portal_workflow = getToolByName(self, 'portal_workflow')
wf = portal_workflow.getWorkflowById('accounting_workflow')
return wf._getWorkflowStateOf(self, id_only=id_only )
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