mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 16:42:50 -05:00
org tax information
This commit is contained in:
@ -14,12 +14,11 @@ namespace Bit.Api.Models
|
||||
OurAddress3 = apiSettings.OurAddress3;
|
||||
|
||||
CustomerName = organization.BusinessName ?? "--";
|
||||
// TODO: address and vat
|
||||
CustomerAddress1 = "123 Any St";
|
||||
CustomerAddress2 = "New York, NY 10001";
|
||||
CustomerAddress3 = "United States";
|
||||
CustomerAddress4 = null;
|
||||
CustomerVatNumber = "PT123456789";
|
||||
CustomerAddress1 = organization.BusinessAddress1;
|
||||
CustomerAddress2 = organization.BusinessAddress2;
|
||||
CustomerAddress3 = organization.BusinessAddress3;
|
||||
CustomerCountry = organization.BusinessCountry;
|
||||
CustomerVatNumber = organization.BusinessTaxNumber;
|
||||
|
||||
InvoiceDate = invoice.Date?.ToLongDateString();
|
||||
InvoiceDueDate = invoice.DueDate?.ToLongDateString();
|
||||
@ -43,7 +42,7 @@ namespace Bit.Api.Models
|
||||
public string CustomerAddress1 { get; set; }
|
||||
public string CustomerAddress2 { get; set; }
|
||||
public string CustomerAddress3 { get; set; }
|
||||
public string CustomerAddress4 { get; set; }
|
||||
public string CustomerCountry { get; set; }
|
||||
public IEnumerable<Item> Items { get; set; }
|
||||
public string SubtotalAmount { get; set; }
|
||||
public string VatTotalAmount { get; set; }
|
||||
|
@ -3,12 +3,12 @@
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
h1, h2, h3, h4, h5 {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
table {
|
||||
@ -45,7 +45,7 @@
|
||||
.number {
|
||||
float: right;
|
||||
text-align: right;
|
||||
font-family: Courier New, Courier, monospace;
|
||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
@ -90,9 +90,9 @@
|
||||
{
|
||||
@Model.CustomerAddress3<br />
|
||||
}
|
||||
@if(!string.IsNullOrWhiteSpace(Model.CustomerAddress4))
|
||||
@if(!string.IsNullOrWhiteSpace(Model.CustomerCountry))
|
||||
{
|
||||
@Model.CustomerAddress4
|
||||
@Model.CustomerCountry
|
||||
}
|
||||
</p>
|
||||
@if(Model.UsesVat)
|
||||
|
Reference in New Issue
Block a user