Ejemplo n.º 1
0
 def quantity_out(self, value):
     if self._quantity is None:
         return
     self._quantity -= value
     d = DiaryEntry()
     d.update(operation='out', quantity=value, product=self)
Ejemplo n.º 2
0
 def quantity(self, value):
     self._quantity = value
     d = DiaryEntry()
     d.update(operation='edit', quantity=value, product=self)