Hide Archived dropdowns when adding adding a new item, except when you are editing an item from before the archived date, Do not allow archiving account until balance is 0.

This commit is contained in:
johnny@pittpc.com
2021-02-07 13:58:42 -05:00
parent 71a183993b
commit 274e1dc9e8
38 changed files with 78 additions and 52 deletions

View File

@@ -1,7 +1,7 @@
<?php include("header.php"); ?>
<?php
include("header.php");
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('invoice_id') AS num FROM invoices WHERE invoice_status = 'Sent' AND company_id = $session_company_id"));
$sent_count = $row['num'];
@@ -235,6 +235,7 @@
$invoice_date = $row['invoice_date'];
$invoice_due = $row['invoice_due'];
$invoice_amount = $row['invoice_amount'];
$invoice_created_at = $row['invoice_created_at'];
$client_id = $row['client_id'];
$client_name = $row['client_name'];
$category_id = $row['category_id'];