show the payment status in the command view
This commit is contained in:
parent
283f3af2ed
commit
ca1cff1706
6 changed files with 16 additions and 7 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue