mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
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:
14
clients.php
14
clients.php
@@ -224,13 +224,15 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<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>
|
<br>
|
||||||
<small class="text-secondary"><?php echo $client_type; ?></small>
|
<small class="text-secondary"><?php echo $client_type; ?></small>
|
||||||
|
<?php } ?>
|
||||||
<br>
|
<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>
|
<small class="text-secondary"><b>Added:</b> <?php echo $client_created_at; ?></small>
|
||||||
<br>
|
|
||||||
<small class="text-secondary"><b>Contract started: </b><?php echo $client_created_at; ?></small>
|
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo $client_address_display; ?></td>
|
<td><?php echo $client_address_display; ?></td>
|
||||||
<td>
|
<td>
|
||||||
@@ -268,8 +270,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-right <?php echo $balance_text_color; ?>">
|
<td class="text-right">
|
||||||
Balance: $<?php echo number_format($balance,2); ?>
|
Balance: <span class="<?php echo $balance_text_color; ?>">$<?php echo number_format($balance,2); ?></span>
|
||||||
<br>
|
<br>
|
||||||
Paid: $<?php echo number_format($amount_paid,2); ?>
|
Paid: $<?php echo number_format($amount_paid,2); ?>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
16
post.php
16
post.php
@@ -4666,6 +4666,8 @@ if(isset($_GET['export_client_pdf'])){
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
pageMargins: [ 15, 15, 15, 15 ],
|
||||||
|
|
||||||
content: [
|
content: [
|
||||||
{
|
{
|
||||||
text: <?php echo json_encode($client_name); ?>,
|
text: <?php echo json_encode($client_name); ?>,
|
||||||
@@ -4674,6 +4676,7 @@ if(isset($_GET['export_client_pdf'])){
|
|||||||
|
|
||||||
{
|
{
|
||||||
//layout: 'lightHorizontalLines', // optional
|
//layout: 'lightHorizontalLines', // optional
|
||||||
|
layout: 'lightHorizontalLines',
|
||||||
table: {
|
table: {
|
||||||
body: [
|
body: [
|
||||||
[
|
[
|
||||||
@@ -5069,6 +5072,10 @@ if(isset($_GET['export_client_pdf'])){
|
|||||||
{
|
{
|
||||||
text: 'Warranty Expire',
|
text: 'Warranty Expire',
|
||||||
style: 'itemHeader'
|
style: 'itemHeader'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Notes',
|
||||||
|
style: 'itemHeader'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -5084,6 +5091,7 @@ if(isset($_GET['export_client_pdf'])){
|
|||||||
$asset_mac = $row['asset_mac'];
|
$asset_mac = $row['asset_mac'];
|
||||||
$asset_purchase_date = $row['asset_purchase_date'];
|
$asset_purchase_date = $row['asset_purchase_date'];
|
||||||
$asset_warranty_expire = $row['asset_warranty_expire'];
|
$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); ?>,
|
text: <?php echo json_encode($asset_warranty_expire); ?>,
|
||||||
style: 'item'
|
style: 'item'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: <?php echo json_encode($asset_notes); ?>,
|
||||||
|
style: 'item'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -5389,13 +5401,13 @@ if(isset($_GET['export_client_pdf'])){
|
|||||||
//Item Header
|
//Item Header
|
||||||
itemHeader: {
|
itemHeader: {
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
margin: [0,2,0,2],
|
margin: [0,1,0,1],
|
||||||
bold: true
|
bold: true
|
||||||
},
|
},
|
||||||
//item
|
//item
|
||||||
item: {
|
item: {
|
||||||
fontSize: 9,
|
fontSize: 9,
|
||||||
margin: [0,2,0,2]
|
margin: [0,1,0,1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user