show the payment status in the command view

This commit is contained in:
Paul Schneider 2017-07-07 01:22:45 +02:00
commit ca1cff1706
6 changed files with 16 additions and 7 deletions

View file

@ -20,9 +20,10 @@ namespace Yavsc.Helpers
return bill;
}
public static FileInfo GetBillInfo(string billingcode, long id)
public static FileInfo GetBillInfo(string billingcode, long id, bool acquitted = false)
{
var filename = $"facture-{billingcode}-{id}.pdf";
var suffix = acquitted ? "-ack":null;
var filename = $"facture-{billingcode}-{id}{suffix}.pdf";
return new FileInfo(Path.Combine(Startup.UserBillsDirName, filename));
}
}