nettoyer le contrôle html de la facture

This commit is contained in:
2017-07-06 13:00:06 +02:00
parent 44c0faaa29
commit c82a88f6a9
4 changed files with 18 additions and 11 deletions

View File

@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using Yavsc.Billing;
using Yavsc.Models.Billing;
@ -18,5 +19,11 @@ namespace Yavsc.Helpers
$"\n\nTotal: {total}";
return bill;
}
public static FileInfo GetBillInfo(string billingcode, long id)
{
var filename = $"facture-{billingcode}-{id}.pdf";
return new FileInfo(Path.Combine(Startup.UserBillsDirName, filename));
}
}
}