Fix model
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
from flask import jsonify
|
||||
from app.utils.logger import logger
|
||||
from app.api.services.base_service import BaseService
|
||||
from app.models.transaction import Transaction
|
||||
from app.models.loan import Loan
|
||||
from sqlalchemy import func, desc
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from app.extensions import db
|
||||
from app.api.enums.transaction_type import TransactionType
|
||||
from app.models import MembersProducts, Products, Members, ProductsDetails, ProductsDetails, ProvisionActions
|
||||
|
||||
|
||||
class OfficeDashboardService(BaseService):
|
||||
@@ -101,8 +99,9 @@ class OfficeDashboardService(BaseService):
|
||||
# },
|
||||
# "recent_transactions": recent_transactions_data
|
||||
# }
|
||||
|
||||
subscription = MembersProducts.get_dash_recent_subscription(15)
|
||||
dashboard_data = {
|
||||
|
||||
"loans": {
|
||||
"currency": "Naira",
|
||||
"currency_text": "\u20a6",
|
||||
|
||||
Reference in New Issue
Block a user