changes of summary report
This commit is contained in:
@@ -33,7 +33,7 @@ class ITRHandler:
|
||||
|
||||
return records
|
||||
|
||||
|
||||
# get itr record by id
|
||||
def get_itr_by_id(self, id):
|
||||
# Call stored procedure
|
||||
self.cursor.callproc('GetITRById', [id])
|
||||
@@ -50,8 +50,6 @@ class ITRHandler:
|
||||
return None
|
||||
|
||||
|
||||
|
||||
|
||||
# INSERT ITR RECORD using procedure "add_itr"
|
||||
def add_itr(self, data):
|
||||
|
||||
@@ -70,7 +68,7 @@ class ITRHandler:
|
||||
self.cursor.callproc("InsertITR", values)
|
||||
self.conn.commit()
|
||||
|
||||
|
||||
# update itr by id
|
||||
def update(self, id, data):
|
||||
columns = [
|
||||
'year', 'gross_total_income', 'disallowance_14a', 'disallowance_37',
|
||||
@@ -91,12 +89,11 @@ class ITRHandler:
|
||||
|
||||
# DELETE RECORD by ITR id
|
||||
def delete_itr_by_id(self, id):
|
||||
# Call the stored procedure
|
||||
self.cursor.callproc('DeleteITRById', [id])
|
||||
self.conn.commit()
|
||||
|
||||
|
||||
|
||||
# report download by year
|
||||
def itr_report_download(self, selected_year):
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user