Example #1
0
def _deposit_funds(amount, person):
    """ Deposits funds into person's account
    Args:
        amount: amount of money to deposit
        person: person that wants to transfer money"""
    Fund_Service.add_funds(amount, person)
    deposit = Model.BankDeposits(person_id=person.id, amount=amount)
    print(deposit)
    Model.db.session.add(deposit)
    Model.db.session.commit()