Merge pull request #34974 from frappe/revert-33699-tds_report_percentage
Revert "fix: Rate from LDC in TDS reports"
This commit is contained in:
commit
d70f5eef10
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import flt
|
|
||||||
|
|
||||||
|
|
||||||
def execute(filters=None):
|
def execute(filters=None):
|
||||||
@ -66,12 +65,6 @@ def get_result(
|
|||||||
else:
|
else:
|
||||||
total_amount_credited += entry.credit
|
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:
|
if tds_deducted:
|
||||||
row = {
|
row = {
|
||||||
"pan"
|
"pan"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user