Create celery task for create_billing_instruction

This commit is contained in:
leigh-mil
2020-02-12 11:20:21 -05:00
parent aa2d353260
commit 6ef3265cb5
4 changed files with 99 additions and 2 deletions

View File

@@ -66,11 +66,15 @@ class CLIN(Base, mixins.TimestampsMixin):
)
def to_dictionary(self):
return {
data = {
c.name: getattr(self, c.name)
for c in self.__table__.columns
if c.name not in ["id"]
}
data["start_date"] = str(data["start_date"])
data["end_date"] = str(data["end_date"])
return data
@property
def is_active(self):