смол фикс

This commit is contained in:
the 2024-06-25 20:40:10 +04:00
parent 3f1d56bcfc
commit 6a6aabdf86
3 changed files with 2 additions and 3 deletions

View File

@ -64,7 +64,7 @@ namespace BusinessLogic.OfficePackage
} }
CreateParagraph(new PdfParagraph CreateParagraph(new PdfParagraph
{ {
Text = $"Итого: {info.Supply.Price}", Text = $"Итого: {info.Supply.Price.ToString("0.00")} руб.",
Style = "Normal", Style = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Right ParagraphAlignment = PdfParagraphAlignmentType.Right
}); });

View File

@ -41,7 +41,7 @@ namespace BusinessLogic.OfficePackage
CreateImage($"product{info.Product.Id}.png"); CreateImage($"product{info.Product.Id}.png");
CreateParagraph(new PdfParagraph CreateParagraph(new PdfParagraph
{ {
Text = $"Цена: {info.Product.Price}", Text = $"Цена: {info.Product.Price.ToString("0.00")} руб.",
Style = "Normal", Style = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Right ParagraphAlignment = PdfParagraphAlignmentType.Right
}); });

View File

@ -103,7 +103,6 @@ namespace BusinessLogic.OfficePackage.Implements
{ {
return; return;
} }
_document.LastSection.AddImage(path); _document.LastSection.AddImage(path);
} }
protected override void SavePdf(PdfInfo info) protected override void SavePdf(PdfInfo info)