Skip to content

Commit

Permalink
fix: SO analysis rpt will fetch SO's without Delivery note as well
Browse files Browse the repository at this point in the history
(cherry picked from commit e28e672)

# Conflicts:
#	erpnext/selling/report/sales_order_analysis/sales_order_analysis.py
  • Loading branch information
ruthra-kumar authored and mergify-bot committed Apr 18, 2022
1 parent 8e30af8 commit f9d89c7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ def get_data(conditions, filters):
`tabSales Order` so,
`tabSales Order Item` soi
LEFT JOIN `tabSales Invoice Item` sii
<<<<<<< HEAD
ON sii.so_detail = soi.name and sii.docstatus = 1
=======
ON sii.so_detail = soi.name and sii.docstatus = 1)
LEFT JOIN `tabDelivery Note Item` dni
on dni.so_detail = soi.name
LEFT JOIN `tabDelivery Note` dn
on dni.parent = dn.name and dn.docstatus = 1
>>>>>>> e28e6726f1 (fix: SO analysis rpt will fetch SO's without Delivery note as well)
WHERE
soi.parent = so.name
and so.status not in ('Stopped', 'Closed', 'On Hold')
Expand Down

0 comments on commit f9d89c7

Please sign in to comment.