From 60600c786181aa13a5b04bf21f08832651cab385 Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Fri, 15 Jan 2021 20:38:38 -0500 Subject: [PATCH] Show Client Phone extension and mobile if applicable on invoice/quotes/recurring --- invoice.php | 12 +++++++++--- post.php | 7 ++++++- quote.php | 12 +++++++++--- recurring_invoice.php | 12 +++++++++--- 4 files changed, 33 insertions(+), 10 deletions(-) diff --git a/invoice.php b/invoice.php index 38f5ec1f..747aa444 100644 --- a/invoice.php +++ b/invoice.php @@ -37,6 +37,11 @@ if(isset($_GET['invoice_id'])){ if(strlen($client_phone)>2){ $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4); } + $client_extension = $row['client_extension']; + $client_mobile = $row['client_mobile']; + if(strlen($client_mobile)>2){ + $client_mobile = substr($row['client_mobile'],0,3)."-".substr($row['client_mobile'],3,3)."-".substr($row['client_mobile'],6,4); + } $client_website = $row['client_website']; $client_net_terms = $row['client_net_terms']; if($client_net_terms == 0){ @@ -165,7 +170,7 @@ if(isset($_GET['invoice_id'])){
  • -
  • P:
  • +
  • @@ -174,8 +179,9 @@ if(isset($_GET['invoice_id'])){
  • -
  • P:
  • -
  • E:
  • +
  • +
  • +
  • diff --git a/post.php b/post.php index 33a35133..88266fb9 100644 --- a/post.php +++ b/post.php @@ -1842,7 +1842,12 @@ if(isset($_GET['pdf_quote'])){ $client_email = $row['client_email']; $client_phone = $row['client_phone']; if(strlen($client_phone)>2){ - $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4); + $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4); + } + $client_extension = $row['client_extension']; + $client_mobile = $row['client_mobile']; + if(strlen($client_mobile)>2){ + $client_mobile = substr($row['client_mobile'],0,3)."-".substr($row['client_mobile'],3,3)."-".substr($row['client_mobile'],6,4); } $client_website = $row['client_website']; diff --git a/quote.php b/quote.php index 9cca81f3..209b2a5e 100644 --- a/quote.php +++ b/quote.php @@ -31,6 +31,11 @@ if(isset($_GET['quote_id'])){ if(strlen($client_phone)>2){ $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4); } + $client_extension = $row['client_extension']; + $client_mobile = $row['client_mobile']; + if(strlen($client_mobile)>2){ + $client_mobile = substr($row['client_mobile'],0,3)."-".substr($row['client_mobile'],3,3)."-".substr($row['client_mobile'],6,4); + } $client_website = $row['client_website']; $client_net_terms = $row['client_net_terms']; if($client_net_terms == 0){ @@ -135,7 +140,7 @@ if(isset($_GET['quote_id'])){
  • -
  • P:
  • +
  • @@ -144,8 +149,9 @@ if(isset($_GET['quote_id'])){
  • -
  • P:
  • -
  • E:
  • +
  • +
  • +
  • diff --git a/recurring_invoice.php b/recurring_invoice.php index 37cbe272..e1f555ee 100644 --- a/recurring_invoice.php +++ b/recurring_invoice.php @@ -35,6 +35,11 @@ if(isset($_GET['recurring_id'])){ if(strlen($client_phone)>2){ $client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4); } + $client_extension = $row['client_extension']; + $client_mobile = $row['client_mobile']; + if(strlen($client_mobile)>2){ + $client_mobile = substr($row['client_mobile'],0,3)."-".substr($row['client_mobile'],3,3)."-".substr($row['client_mobile'],6,4); + } $client_website = $row['client_website']; $client_net_terms = $row['client_net_terms']; @@ -105,7 +110,7 @@ if(isset($_GET['recurring_id'])){
  • -
  • P:
  • +
  • @@ -114,8 +119,9 @@ if(isset($_GET['recurring_id'])){
  • -
  • P:
  • -
  • E:
  • +
  • +
  • +