def fields_to_json(self) -> dict: return { "bill": self.bill_id, "product": self.product, "serving": serialize_decimal(self.serving), "count": serialize_decimal(self.count), "unit_price": serialize_decimal(self.unit_price), }
def fields_to_json(self) -> dict: return { "name": self.name, "vendor": self.vendor, "category": self.category_id, "type": self.type, "amount": serialize_decimal(self.amount), "description": self.description, "comment": self.comment, }
def fields_to_json(self): return { "date": serialize_date(self.date), "vendor": self.vendor, "category": self.category_id, "amount": serialize_decimal(self.amount), "description": self.description, "description_cache": self.description_cache, "is_bill": self.is_bill, }