refacto site settings
Some checks failed
Dotnet build and test / build (pull_request) Failing after 8m29s

This commit is contained in:
Paul Schneider 2026-09-17 22:22:18 +01:00
commit 3bc4142383
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
33 changed files with 399 additions and 315 deletions

View file

@ -21,11 +21,12 @@ namespace Yavsc.Helpers
return bill;
}
public static FileInfo GetBillInfo(this IBillable bill, IBillingService service)
public static FileInfo GetBillInfo(this IBillable bill,
IBillingService service, SiteSettings siteSettings)
{
var suffix = bill.GetIsAcquitted() ? "-ack":null;
var filename = bill.GetFileBaseName(service)+".pdf";
return new FileInfo(Path.Combine(AbstractFileSystemHelpers.UserBillsDirName, filename));
return new FileInfo(Path.Combine(siteSettings.Bills, filename));
}
}
}