parent
31800effcf
commit
6e20c4256e
1 changed files with 6 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
from .base import CapBaseObject, StringField, DateField, DecimalField, UserError
|
from .base import CapBaseObject, StringField, DateField, DecimalField, IntField, UserError, Currency
|
||||||
from .collection import ICapCollection
|
from .collection import ICapCollection
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -48,7 +48,11 @@ class Detail(CapBaseObject):
|
||||||
label = StringField('label of the detail line')
|
label = StringField('label of the detail line')
|
||||||
infos = StringField('information')
|
infos = StringField('information')
|
||||||
datetime = DateField('date information')
|
datetime = DateField('date information')
|
||||||
price = DecimalField('price')
|
price = DecimalField('Total price, taxes included')
|
||||||
|
vat = DecimalField('Value added Tax')
|
||||||
|
currency = IntField('Currency', default=Currency.CUR_UNKNOWN)
|
||||||
|
quantity = DecimalField('Number of units consumed')
|
||||||
|
unit = StringField('Unit of the consumption')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
CapBaseObject.__init__(self, 0)
|
CapBaseObject.__init__(self, 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue