Moved Support to colored handshake icon boldered client name and only mark balance red instead of both balance and paid red

This commit is contained in:
johnnyq 2021-08-22 20:31:06 -04:00
parent 9a82ce4c1f
commit 24fcb04411
2 changed files with 22 additions and 8 deletions

View File

@ -224,13 +224,15 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
?>
<tr>
<td>
<a href="client.php?client_id=<?php echo $client_id; ?>&tab=contacts"><?php echo $client_name; ?></a>
<i class="fas fa-handshake <?php if($client_support == 'Maintenance'){ echo "text-success"; }else{ echo "text-danger"; } ?> fa-fw"></i> <strong><a href="client.php?client_id=<?php echo $client_id; ?>&tab=contacts"><?php echo $client_name; ?></a></strong>
<?php
if(!empty($client_type)){
?>
<br>
<small class="text-secondary"><?php echo $client_type; ?></small>
<?php } ?>
<br>
<small class="text-secondary"><i class="fas fa-handshake fa-fw"></i> <b>SUPPORT: </b><span style="color:<?php echo ($client_support == "Maintenance" ? "green" : "red");?>;"><?php echo $client_support;?></span></small>
<br>
<small class="text-secondary"><b>Contract started: </b><?php echo $client_created_at; ?></small>
<small class="text-secondary"><b>Added:</b> <?php echo $client_created_at; ?></small>
</td>
<td><?php echo $client_address_display; ?></td>
<td>
@ -268,8 +270,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
}
?>
</td>
<td class="text-right <?php echo $balance_text_color; ?>">
Balance: $<?php echo number_format($balance,2); ?>
<td class="text-right">
Balance: <span class="<?php echo $balance_text_color; ?>">$<?php echo number_format($balance,2); ?></span>
<br>
Paid: $<?php echo number_format($amount_paid,2); ?>
</td>

View File

@ -4666,6 +4666,8 @@ if(isset($_GET['export_client_pdf'])){
]
},
pageMargins: [ 15, 15, 15, 15 ],
content: [
{
text: <?php echo json_encode($client_name); ?>,
@ -4674,6 +4676,7 @@ if(isset($_GET['export_client_pdf'])){
{
//layout: 'lightHorizontalLines', // optional
layout: 'lightHorizontalLines',
table: {
body: [
[
@ -5069,6 +5072,10 @@ if(isset($_GET['export_client_pdf'])){
{
text: 'Warranty Expire',
style: 'itemHeader'
},
{
text: 'Notes',
style: 'itemHeader'
}
],
@ -5084,6 +5091,7 @@ if(isset($_GET['export_client_pdf'])){
$asset_mac = $row['asset_mac'];
$asset_purchase_date = $row['asset_purchase_date'];
$asset_warranty_expire = $row['asset_warranty_expire'];
$asset_notes = $row['asset_notes'];
?>
[
@ -5122,6 +5130,10 @@ if(isset($_GET['export_client_pdf'])){
{
text: <?php echo json_encode($asset_warranty_expire); ?>,
style: 'item'
},
{
text: <?php echo json_encode($asset_notes); ?>,
style: 'item'
}
],
@ -5389,13 +5401,13 @@ if(isset($_GET['export_client_pdf'])){
//Item Header
itemHeader: {
fontSize: 9,
margin: [0,2,0,2],
margin: [0,1,0,1],
bold: true
},
//item
item: {
fontSize: 9,
margin: [0,2,0,2]
margin: [0,1,0,1]
}
}
};