From e520aa8c3f024f705500234abb5e13909e5236b2 Mon Sep 17 00:00:00 2001 From: fproldan Date: Tue, 19 Nov 2024 16:39:20 +0000 Subject: [PATCH] fix: sin commission against --- erpnext/payroll/doctype/sales_commission/sales_commission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/payroll/doctype/sales_commission/sales_commission.py b/erpnext/payroll/doctype/sales_commission/sales_commission.py index 433c37a8c691..40ae5d3e576d 100644 --- a/erpnext/payroll/doctype/sales_commission/sales_commission.py +++ b/erpnext/payroll/doctype/sales_commission/sales_commission.py @@ -126,7 +126,7 @@ def add_contributions(self, process_sales_commission=None): record['incentives'] = flt(record['allocated_amount'] * flt(commission_rate) / 100.0, self.precision("total_contribution")) record['allocated_percentage'] = 100 contribution = { - "commission_filter": record["commission_filter"], + "commission_filter": record["commission_filter"] or f"Sin {self.commission_against}", "contribution_percent": record["allocated_percentage"], "contribution_amount": record["allocated_amount"], "commission_rate": record["commission_rate"],