Got rid of the due date and used client_net_terms if not used use the system default net terms

This commit is contained in:
root
2019-05-18 20:49:30 -04:00
parent 857a298588
commit 65c961986c
13 changed files with 41 additions and 38 deletions

View File

@@ -32,6 +32,10 @@ if(isset($_GET['invoice_id'])){
$client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4);
}
$client_website = $row['client_website'];
$client_net_terms = $row['client_net_terms'];
if($client_net_terms == 0){
$client_net_terms = $config_default_net_terms;
}
$sql_history = mysqli_query($mysqli,"SELECT * FROM history WHERE invoice_id = $invoice_id ORDER BY history_id DESC");