chore: Remove print statements
This commit is contained in:
parent
08443c6421
commit
bff3cd9068
@ -496,13 +496,10 @@ def get_tcs_amount(parties, inv, tax_details, vouchers, adv_vouchers):
|
|||||||
cumulative_threshold = tax_details.get("cumulative_threshold", 0)
|
cumulative_threshold = tax_details.get("cumulative_threshold", 0)
|
||||||
|
|
||||||
current_invoice_total = get_invoice_total_without_tcs(inv, tax_details)
|
current_invoice_total = get_invoice_total_without_tcs(inv, tax_details)
|
||||||
print(invoiced_amt, advance_amt, credit_note_amt, current_invoice_total)
|
|
||||||
total_invoiced_amt = current_invoice_total + invoiced_amt + advance_amt - credit_note_amt
|
total_invoiced_amt = current_invoice_total + invoiced_amt + advance_amt - credit_note_amt
|
||||||
|
|
||||||
print(total_invoiced_amt, "######", "total_invoiced_amt")
|
|
||||||
if cumulative_threshold and total_invoiced_amt >= cumulative_threshold:
|
if cumulative_threshold and total_invoiced_amt >= cumulative_threshold:
|
||||||
chargeable_amt = total_invoiced_amt - cumulative_threshold
|
chargeable_amt = total_invoiced_amt - cumulative_threshold
|
||||||
print(chargeable_amt, "#########")
|
|
||||||
tcs_amount = chargeable_amt * tax_details.rate / 100 if chargeable_amt > 0 else 0
|
tcs_amount = chargeable_amt * tax_details.rate / 100 if chargeable_amt > 0 else 0
|
||||||
|
|
||||||
return tcs_amount
|
return tcs_amount
|
||||||
|
Loading…
x
Reference in New Issue
Block a user