From c6a10e460492775706c7d42af0921073b4cc5f79 Mon Sep 17 00:00:00 2001 From: PotapovaA Date: Tue, 20 Oct 2026 15:35:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B2?= =?UTF-8?q?=20=D1=8D=D0=BA=D1=81=D0=BF=D0=BE=D1=80=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/src/services/intercompany_matrix_export.py | 5 ----- api/tests/test_intercompany_matrix_export.py | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/api/src/services/intercompany_matrix_export.py b/api/src/services/intercompany_matrix_export.py index d26319a..a5c50bb 100644 --- a/api/src/services/intercompany_matrix_export.py +++ b/api/src/services/intercompany_matrix_export.py @@ -55,11 +55,6 @@ def _write_context(sheet: Worksheet, info: MatrixExportInfo) -> None: def _write_values(sheet: Worksheet, row: int, column: int, cell: IntercompanyMatrixCellOut) -> None: for offset, amount in enumerate((cell.variance_amount, cell.amount_a, cell.amount_b)): sheet.cell(row + offset, column, amount).number_format = MONEY_FORMAT - for offset, correction_ids in ((1, cell.correction_ids_debit), (2, cell.correction_ids_credit)): - if correction_ids: - sheet.cell(row + offset, column).comment = Comment( - "ID корректировок: " + ", ".join(map(str, correction_ids)), "АРМ КА" - ) if cell.variance_percent is not None: sheet.cell(row + 3, column, cell.variance_percent).number_format = PERCENT_FORMAT _skipped_comment(sheet, row, column, cell.skipped_osv_entry_count) diff --git a/api/tests/test_intercompany_matrix_export.py b/api/tests/test_intercompany_matrix_export.py index e795213..1f7761d 100644 --- a/api/tests/test_intercompany_matrix_export.py +++ b/api/tests/test_intercompany_matrix_export.py @@ -134,14 +134,14 @@ def test_matrix_export_has_three_rows_per_debit_company_and_highlights_threshold for offset in range(4) ) - debit_correction_id = UUID("44444444-4444-4444-4444-444444444444") + debit_correction_id = UUID("796d1add-eaed-4802-8c79-8b3cdae2cca1") credit_correction_id = UUID("55555555-5555-5555-5555-555555555555") matrix.cells[0].correction_ids_debit = [debit_correction_id] matrix.cells[0].correction_ids_credit = [credit_correction_id] preset_sheet = load_workbook(BytesIO(build_matrix_workbook(matrix, _info(mode="PRESET")))).active assert preset_sheet is not None - assert str(debit_correction_id) in preset_sheet["D12"].comment.text - assert str(credit_correction_id) in preset_sheet["D13"].comment.text + assert preset_sheet["D12"].comment is None + assert preset_sheet["D13"].comment is None async def test_export_routes_use_matrix_calculation() -> None: