commit | d14666e41914b866c8d24306bcfcda0a9fe6911b | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Thu Jul 09 20:07:10 2020 +0530 |
committer | GitHub <noreply@github.com> | Thu Jul 09 20:07:10 2020 +0530 |
tree | 9be6eeb65995d609be21d373794d18f229d91112 | |
parent | 1ec2d962dbcc7ccee30e0d0a35727aa890910203 [diff] |
fix: incorrect delivered qty in Supplier-Wise Sales Analytics (#22631)
diff --git a/erpnext/stock/report/supplier_wise_sales_analytics/supplier_wise_sales_analytics.py b/erpnext/stock/report/supplier_wise_sales_analytics/supplier_wise_sales_analytics.py index 6a86889..5873a7a 100644 --- a/erpnext/stock/report/supplier_wise_sales_analytics/supplier_wise_sales_analytics.py +++ b/erpnext/stock/report/supplier_wise_sales_analytics/supplier_wise_sales_analytics.py
@@ -21,7 +21,7 @@ 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":