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)