Skip to content

Commit

Permalink
fix(regional): use net figures for sales calc (#38260)
Browse files Browse the repository at this point in the history
fix(regional): use net figures for sales calc (#38260)

(cherry picked from commit 663bb87)

Co-authored-by: Dany Robert <danyrt@wahni.com>
  • Loading branch information
mergify[bot] and rtdany10 authored Nov 29, 2023
1 parent fd6a23c commit d337533
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erpnext/regional/report/uae_vat_201/uae_vat_201.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def get_total_emiratewise(filters):
return frappe.db.sql(
"""
select
s.vat_emirate as emirate, sum(i.base_amount) as total, sum(i.tax_amount)
s.vat_emirate as emirate, sum(i.base_net_amount) as total, sum(i.tax_amount)
from
`tabSales Invoice Item` i inner join `tabSales Invoice` s
on
Expand Down Expand Up @@ -356,7 +356,7 @@ def get_zero_rated_total(filters):
frappe.db.sql(
"""
select
sum(i.base_amount) as total
sum(i.base_net_amount) as total
from
`tabSales Invoice Item` i inner join `tabSales Invoice` s
on
Expand All @@ -383,7 +383,7 @@ def get_exempt_total(filters):
frappe.db.sql(
"""
select
sum(i.base_amount) as total
sum(i.base_net_amount) as total
from
`tabSales Invoice Item` i inner join `tabSales Invoice` s
on
Expand Down

0 comments on commit d337533

Please sign in to comment.