fix: SO analysis rpt will fetch SO's without Delivery note as well

This commit is contained in:
ruthra kumar 2022-04-14 18:34:47 +05:30
parent b12fe0f15b
commit e28e6726f1

View File

@ -81,7 +81,7 @@ def get_data(conditions, filters):
ON sii.so_detail = soi.name and sii.docstatus = 1)
LEFT JOIN `tabDelivery Note Item` dni
on dni.so_detail = soi.name
RIGHT JOIN `tabDelivery Note` dn
LEFT JOIN `tabDelivery Note` dn
on dni.parent = dn.name and dn.docstatus = 1
WHERE
soi.parent = so.name