fix: incorrect delivered qty in Supplier-Wise Sales Analytics (#22631)

This commit is contained in:
rohitwaghchaure 2020-07-09 20:07:10 +05:30 committed by GitHub
parent 1ec2d962db
commit d14666e419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ def execute(filters=None):
for cd in consumed_details.get(item_code):
if (cd.voucher_no not in material_transfer_vouchers):
if cd.voucher_type=="Delivery Note":
if cd.voucher_type in ["Delivery Note", "Sales Invoice"]:
delivered_qty += abs(flt(cd.actual_qty))
delivered_amount += abs(flt(cd.stock_value_difference))
elif cd.voucher_type!="Delivery Note":