From 2e631a331431598042e2c0f6f7f691b8bb902b88 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Tue, 8 Nov 2016 14:55:21 +0100 Subject: [PATCH] Use an euro sign, fixes decimal --- Yavsc/Views/FrontOffice/Estimate.tex.cshtml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Yavsc/Views/FrontOffice/Estimate.tex.cshtml b/Yavsc/Views/FrontOffice/Estimate.tex.cshtml index 9633eba9..5b807102 100644 --- a/Yavsc/Views/FrontOffice/Estimate.tex.cshtml +++ b/Yavsc/Views/FrontOffice/Estimate.tex.cshtml @@ -1,5 +1,6 @@ @model Estimate @using Yavsc.Helpers +@using System.Globalization @{ Layout = null; var pro = Model.Query.PerformerProfile; @@ -11,6 +12,7 @@ var proaddrm = (proaddr!=null) ? proaddr.NewLinesWith(" - ") : null ; } \documentclass[french,11pt]{article} +\usepackage{eurosym} \usepackage{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} @@ -88,13 +90,9 @@ } % Liste des produits facturés : Désignation, prix - -@if (Model.Bill!=null) {  - foreach (CommandLine line in Model.Bill) { - -\AjouterService {@line.Description} {@line.Count} {@line.UnitaryCost} - -} } +@if (Model.Bill!=null) { foreach (CommandLine line in Model.Bill) { +\AjouterService{@line.Description}{@line.Count}{@line.UnitaryCost.ToString("F2",CultureInfo.InvariantCulture)} +} } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -151,7 +149,7 @@ Facture n°\FactureNum \begin{center} \begin{tabular}{lrrr} - \textbf{Désignation ~~~~~~} & \textbf{Prix unitaire} & \textbf{Quantité} & \textbf{Montant (EUR)} \\ + \textbf{Désignation ~~~~~~} & \textbf{Prix unitaire} & \textbf{Quantité} & \textbf{Montant (\euro)} \\ \hline \AfficheResultat{} \end{tabular}