girishwangikar commited on
Commit
4faeacc
·
verified ·
1 Parent(s): 78873fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -526,8 +526,9 @@ def get_farmer_report(farmer_name, end_date=None, interest_rate=None):
526
  'Description': row['Type'],
527
  'Bank Account': row['Bank Account'],
528
  'Amount': amount,
529
- 'Balance': balance
530
  })
 
531
 
532
  last_date = current_date
533
 
 
526
  'Description': row['Type'],
527
  'Bank Account': row['Bank Account'],
528
  'Amount': amount,
529
+ 'Balance': -principal_due if principal_due > 0 else surplus_to_farmer
530
  })
531
+
532
 
533
  last_date = current_date
534