Fix encoding bug and add role helpers for user management
- Add decodeHtmlEntities function to formatters.ts for handling HTML entity decoding - Add CompanyRole type and role helper functions (getRoleLabel, getRoleColor) - Add useActiveCompanyRole hook for getting current user's company role - Add Ledger.Core and QuestPDF project references to backend - Add additional fields to CompanyReadModelDto Closes books-hzt Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b60f26a449
commit
9b5ed27776
6 changed files with 95 additions and 3 deletions
|
|
@ -15,6 +15,9 @@
|
|||
<ProjectReference Include="../../../EventFlow/Source/EventFlow.PostgreSql/EventFlow.PostgreSql.csproj" />
|
||||
<ProjectReference Include="../../../EventFlow/Source/EventFlow.Hangfire/EventFlow.Hangfire.csproj" />
|
||||
|
||||
<!-- Ledger (local source) -->
|
||||
<ProjectReference Include="../../../ledger/src/Ledger.Core/Ledger.Core.csproj" />
|
||||
|
||||
<!-- Database -->
|
||||
<PackageReference Include="Npgsql" Version="10.0.1" />
|
||||
<PackageReference Include="Dapper" Version="2.1.66" />
|
||||
|
|
@ -38,6 +41,9 @@
|
|||
<!-- DI Decoration -->
|
||||
<PackageReference Include="Scrutor" Version="5.0.2" />
|
||||
|
||||
<!-- PDF Generation -->
|
||||
<PackageReference Include="QuestPDF" Version="2024.12.3" />
|
||||
|
||||
<!-- Authentication -->
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="10.0.0" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,14 @@ public class CompanyReadModelDto
|
|||
public string Currency { get; set; } = string.Empty;
|
||||
public bool VatRegistered { get; set; }
|
||||
public string? VatPeriodFrequency { get; set; }
|
||||
|
||||
// Bank details for invoicing
|
||||
public string? BankName { get; set; }
|
||||
public string? BankRegNo { get; set; }
|
||||
public string? BankAccountNo { get; set; }
|
||||
public string? BankIban { get; set; }
|
||||
public string? BankBic { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue