[POS-commit] r6365 - stoqlib/trunk/stoqlib/domain
Johan Dahlin
jdahlin at async.com.br
Thu Apr 12 18:20:14 BRT 2007
Author: jdahlin
Date: Thu Apr 12 18:20:13 2007
New Revision: 6365
Modified:
stoqlib/trunk/stoqlib/domain/interfaces.py
stoqlib/trunk/stoqlib/domain/sellable.py
Log:
Add get_tax_constant to ISellable
Modified: stoqlib/trunk/stoqlib/domain/interfaces.py
==============================================================================
--- stoqlib/trunk/stoqlib/domain/interfaces.py (original)
+++ stoqlib/trunk/stoqlib/domain/interfaces.py Thu Apr 12 18:20:13 2007
@@ -150,6 +150,13 @@
def get_unit_description():
"""Undocumented"""
+ def get_tax_constant():
+ """
+ Returns the tax constant for this sellable.
+ If it's unset, return the constant from the category, if any
+ @returns: the tax constant or None if unset
+ """
+
class IStorable(Interface):
"""Storable documentation for a certain product or a sellable item.
Each storable can have references to many concrete items which will
Modified: stoqlib/trunk/stoqlib/domain/sellable.py
==============================================================================
--- stoqlib/trunk/stoqlib/domain/sellable.py (original)
+++ stoqlib/trunk/stoqlib/domain/sellable.py Thu Apr 12 18:20:13 2007
@@ -436,11 +436,6 @@
return self.unit and self.unit.description or u""
def get_tax_constant(self):
- """
- Returns the tax constant for this sellable.
- If it's unset, return the constant from the category, if any
- @returns: the tax constant or None if unset
- """
if self.tax_constant:
return self.tax_constant
More information about the POS-commit
mailing list