Added Expire Date field to Quotes also Do not show Guests Accept or Decline if Date is Expired

This commit is contained in:
johnnyq
2023-07-15 15:33:08 -04:00
parent 313191aeb2
commit e09c9cadb5
13 changed files with 90 additions and 11 deletions

View File

@@ -27,6 +27,7 @@ if (isset($_GET['quote_id'])) {
$quote_scope = nullable_htmlentities($row['quote_scope']);
$quote_status = nullable_htmlentities($row['quote_status']);
$quote_date = nullable_htmlentities($row['quote_date']);
$quote_expire = nullable_htmlentities($row['quote_expire']);
$quote_amount = floatval($row['quote_amount']);
$quote_currency_code = nullable_htmlentities($row['quote_currency_code']);
$quote_note = nullable_htmlentities($row['quote_note']);
@@ -230,6 +231,10 @@ if (isset($_GET['quote_id'])) {
<td>Date</td>
<td class="text-right"><?php echo $quote_date; ?></td>
</tr>
<tr>
<td>Expire</td>
<td class="text-right"><?php echo $quote_expire; ?></td>
</tr>
</table>
</div>
</div>
@@ -553,7 +558,7 @@ require_once("footer.php");
[
{
text: '',
rowSpan: 2
rowSpan: 3
},
{},
{},
@@ -569,6 +574,17 @@ require_once("footer.php");
style: 'invoiceDateValue'
},
],
[
{},
{
text: 'Expire',
style: 'invoiceDateTitle'
},
{
text: <?php echo json_encode(html_entity_decode($quote_expire)) ?>,
style: 'invoiceDateValue'
},
],
]
}, // table
layout: 'lightHorizontalLines'