Merge pull request #34974 from frappe/revert-33699-tds_report_percentage

Revert "fix: Rate from LDC in TDS reports"
This commit is contained in:
ruthra kumar 2023-04-25 11:17:04 +05:30 committed by GitHub
commit d70f5eef10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@
import frappe
from frappe import _
from frappe.utils import flt
def execute(filters=None):
@ -66,12 +65,6 @@ def get_result(
else:
total_amount_credited += entry.credit
## Check if ldc is applied and show rate as per ldc
actual_rate = (tds_deducted / total_amount_credited) * 100
if flt(actual_rate) < flt(rate):
rate = actual_rate
if tds_deducted:
row = {
"pan"