From 7b661e3d3dba671a229f1cba3bcc9f569d6af519 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 22 Feb 2022 10:18:50 +0200 Subject: [PATCH] Add website to reports --- lib/ui/reports/credit_report.dart | 4 ++++ lib/ui/reports/invoice_report.dart | 4 ++++ lib/ui/reports/quote_report.dart | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/lib/ui/reports/credit_report.dart b/lib/ui/reports/credit_report.dart index 417c9ae33..434f93b0d 100644 --- a/lib/ui/reports/credit_report.dart +++ b/lib/ui/reports/credit_report.dart @@ -53,6 +53,7 @@ enum CreditReportFields { client_vat_number, client_city, client_postal_code, + client_website, tax_rate1, tax_rate2, tax_rate3, @@ -301,6 +302,9 @@ ReportResult creditReport( case CreditReportFields.contact_phone: value = contact?.phone ?? ''; break; + case CreditReportFields.client_website: + value = client.website; + break; } if (!ReportResult.matchField( diff --git a/lib/ui/reports/invoice_report.dart b/lib/ui/reports/invoice_report.dart index 95d2ba851..7e105f5da 100644 --- a/lib/ui/reports/invoice_report.dart +++ b/lib/ui/reports/invoice_report.dart @@ -60,6 +60,7 @@ enum InvoiceReportFields { client_vat_number, client_city, client_postal_code, + client_website, tax_rate1, tax_rate2, tax_rate3, @@ -354,6 +355,9 @@ ReportResult invoiceReport( case InvoiceReportFields.contact_phone: value = contact?.phone ?? ''; break; + case InvoiceReportFields.client_website: + value = client.website; + break; } if (!ReportResult.matchField( diff --git a/lib/ui/reports/quote_report.dart b/lib/ui/reports/quote_report.dart index 81784e722..26c0211c1 100644 --- a/lib/ui/reports/quote_report.dart +++ b/lib/ui/reports/quote_report.dart @@ -50,6 +50,7 @@ enum QuoteReportFields { client_vat_number, client_city, client_postal_code, + client_website, tax_rate1, tax_rate2, tax_rate3, @@ -294,6 +295,9 @@ ReportResult quoteReport( case QuoteReportFields.contact_phone: value = contact?.phone ?? ''; break; + case QuoteReportFields.client_website: + value = client.website; + break; } if (!ReportResult.matchField(