From 92d7ac6875d3a38e726a0b9524bec0ca1a8f4433 Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Fri, 3 Apr 2026 22:21:11 +0400 Subject: [PATCH] fix: bolme2_hisse2 last column is sum of 3 months, not average Co-Authored-By: Claude Opus 4.6 (1M context) --- ...e_declaration_related_to_salaried_and_non_salaried_work.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taxes_az/taxes_az/doctype/single_declaration_related_to_salaried_and_non_salaried_work/single_declaration_related_to_salaried_and_non_salaried_work.py b/taxes_az/taxes_az/doctype/single_declaration_related_to_salaried_and_non_salaried_work/single_declaration_related_to_salaried_and_non_salaried_work.py index ef56b3b..43ed3e1 100644 --- a/taxes_az/taxes_az/doctype/single_declaration_related_to_salaried_and_non_salaried_work/single_declaration_related_to_salaried_and_non_salaried_work.py +++ b/taxes_az/taxes_az/doctype/single_declaration_related_to_salaried_and_non_salaried_work/single_declaration_related_to_salaried_and_non_salaried_work.py @@ -302,12 +302,12 @@ def get_bolme2_hisse2_data(company, year, quarter): monthly_kompensasiya.append(flt(komp)) def build_row(monthly): - avg = round(sum(monthly) / 3, 2) if monthly else 0 + total = round(sum(monthly), 2) if monthly else 0 return { "1ciay": monthly[0] if len(monthly) > 0 else 0, "2ciay": monthly[1] if len(monthly) > 1 else 0, "3cüay": monthly[2] if len(monthly) > 2 else 0, - "rübüzrəortasay": avg, + "rübüzrəortasay": total, } row2 = build_row(monthly_emek)