fix(regional): use net figures for sales calc (#38260)
This commit is contained in:
parent
458dd51af7
commit
663bb8726c
@ -141,7 +141,7 @@ def get_total_emiratewise(filters):
|
|||||||
return frappe.db.sql(
|
return frappe.db.sql(
|
||||||
"""
|
"""
|
||||||
select
|
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
|
from
|
||||||
`tabSales Invoice Item` i inner join `tabSales Invoice` s
|
`tabSales Invoice Item` i inner join `tabSales Invoice` s
|
||||||
on
|
on
|
||||||
@ -356,7 +356,7 @@ def get_zero_rated_total(filters):
|
|||||||
frappe.db.sql(
|
frappe.db.sql(
|
||||||
"""
|
"""
|
||||||
select
|
select
|
||||||
sum(i.base_amount) as total
|
sum(i.base_net_amount) as total
|
||||||
from
|
from
|
||||||
`tabSales Invoice Item` i inner join `tabSales Invoice` s
|
`tabSales Invoice Item` i inner join `tabSales Invoice` s
|
||||||
on
|
on
|
||||||
@ -383,7 +383,7 @@ def get_exempt_total(filters):
|
|||||||
frappe.db.sql(
|
frappe.db.sql(
|
||||||
"""
|
"""
|
||||||
select
|
select
|
||||||
sum(i.base_amount) as total
|
sum(i.base_net_amount) as total
|
||||||
from
|
from
|
||||||
`tabSales Invoice Item` i inner join `tabSales Invoice` s
|
`tabSales Invoice Item` i inner join `tabSales Invoice` s
|
||||||
on
|
on
|
||||||
|
Loading…
x
Reference in New Issue
Block a user