From 6a6aabdf86398770525b66708937da346d42a290 Mon Sep 17 00:00:00 2001 From: the Date: Tue, 25 Jun 2024 20:40:10 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BC=D0=BE=D0=BB=20=D1=84=D0=B8=D0=BA?= =?UTF-8?q?=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BusinessLogic/OfficePackage/AbstractSaveToPdf.cs | 2 +- BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs | 2 +- BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BusinessLogic/OfficePackage/AbstractSaveToPdf.cs b/BusinessLogic/OfficePackage/AbstractSaveToPdf.cs index 5b58544..bef5886 100644 --- a/BusinessLogic/OfficePackage/AbstractSaveToPdf.cs +++ b/BusinessLogic/OfficePackage/AbstractSaveToPdf.cs @@ -64,7 +64,7 @@ namespace BusinessLogic.OfficePackage } CreateParagraph(new PdfParagraph { - Text = $"Итого: {info.Supply.Price}", + Text = $"Итого: {info.Supply.Price.ToString("0.00")} руб.", Style = "Normal", ParagraphAlignment = PdfParagraphAlignmentType.Right }); diff --git a/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs b/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs index 2361a46..96f470c 100644 --- a/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs +++ b/BusinessLogic/OfficePackage/AbstractSaveToPdfCheque.cs @@ -41,7 +41,7 @@ namespace BusinessLogic.OfficePackage CreateImage($"product{info.Product.Id}.png"); CreateParagraph(new PdfParagraph { - Text = $"Цена: {info.Product.Price}", + Text = $"Цена: {info.Product.Price.ToString("0.00")} руб.", Style = "Normal", ParagraphAlignment = PdfParagraphAlignmentType.Right }); diff --git a/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs b/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs index 3980d44..1b574cd 100644 --- a/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs +++ b/BusinessLogic/OfficePackage/Implements/SaveToPdfCheque.cs @@ -103,7 +103,6 @@ namespace BusinessLogic.OfficePackage.Implements { return; } - _document.LastSection.AddImage(path); } protected override void SavePdf(PdfInfo info)