Add website to reports

This commit is contained in:
Hillel Coren 2022-02-22 10:18:50 +02:00
parent 64257e2d24
commit 7b661e3d3d
3 changed files with 12 additions and 0 deletions

View File

@ -53,6 +53,7 @@ enum CreditReportFields {
client_vat_number, client_vat_number,
client_city, client_city,
client_postal_code, client_postal_code,
client_website,
tax_rate1, tax_rate1,
tax_rate2, tax_rate2,
tax_rate3, tax_rate3,
@ -301,6 +302,9 @@ ReportResult creditReport(
case CreditReportFields.contact_phone: case CreditReportFields.contact_phone:
value = contact?.phone ?? ''; value = contact?.phone ?? '';
break; break;
case CreditReportFields.client_website:
value = client.website;
break;
} }
if (!ReportResult.matchField( if (!ReportResult.matchField(

View File

@ -60,6 +60,7 @@ enum InvoiceReportFields {
client_vat_number, client_vat_number,
client_city, client_city,
client_postal_code, client_postal_code,
client_website,
tax_rate1, tax_rate1,
tax_rate2, tax_rate2,
tax_rate3, tax_rate3,
@ -354,6 +355,9 @@ ReportResult invoiceReport(
case InvoiceReportFields.contact_phone: case InvoiceReportFields.contact_phone:
value = contact?.phone ?? ''; value = contact?.phone ?? '';
break; break;
case InvoiceReportFields.client_website:
value = client.website;
break;
} }
if (!ReportResult.matchField( if (!ReportResult.matchField(

View File

@ -50,6 +50,7 @@ enum QuoteReportFields {
client_vat_number, client_vat_number,
client_city, client_city,
client_postal_code, client_postal_code,
client_website,
tax_rate1, tax_rate1,
tax_rate2, tax_rate2,
tax_rate3, tax_rate3,
@ -294,6 +295,9 @@ ReportResult quoteReport(
case QuoteReportFields.contact_phone: case QuoteReportFields.contact_phone:
value = contact?.phone ?? ''; value = contact?.phone ?? '';
break; break;
case QuoteReportFields.client_website:
value = client.website;
break;
} }
if (!ReportResult.matchField( if (!ReportResult.matchField(