diff --git a/add_invoice_modal.php b/add_invoice_modal.php index 6e2ce1cb..5c2de494 100644 --- a/add_invoice_modal.php +++ b/add_invoice_modal.php @@ -54,7 +54,7 @@
- +
diff --git a/edit_invoice.php b/edit_invoice.php new file mode 100644 index 00000000..06f2ce79 --- /dev/null +++ b/edit_invoice.php @@ -0,0 +1,66 @@ + \ No newline at end of file diff --git a/edit_invoice_modal.php b/edit_invoice_modal.php new file mode 100644 index 00000000..c73554b0 --- /dev/null +++ b/edit_invoice_modal.php @@ -0,0 +1,66 @@ + \ No newline at end of file diff --git a/edit_invoice_note_modal.php b/edit_invoice_note_modal.php new file mode 100644 index 00000000..e516b4c1 --- /dev/null +++ b/edit_invoice_note_modal.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/invoice.php b/invoice.php index fb25387c..c27aa7df 100644 --- a/invoice.php +++ b/invoice.php @@ -18,6 +18,8 @@ if(isset($_GET['invoice_id'])){ $invoice_date = $row['invoice_date']; $invoice_due = $row['invoice_due']; $invoice_amount = $row['invoice_amount']; + $invoice_note = $row['invoice_note']; + $invoice_category_id = $row['category_id']; $client_id = $row['client_id']; $client_name = $row['client_name']; $client_address = $row['client_address']; @@ -31,7 +33,7 @@ if(isset($_GET['invoice_id'])){ } $client_website = $row['client_website']; - $sql_invoice_history = mysqli_query($mysqli,"SELECT * FROM invoice_history WHERE invoice_id = $invoice_id ORDER BY invoice_history_id DESC"); + $sql_invoice_history = mysqli_query($mysqli,"SELECT * FROM invoice_history WHERE invoice_id = $invoice_id ORDER BY invoice_history_id ASC"); $sql_payments = mysqli_query($mysqli,"SELECT * FROM invoice_payments, accounts WHERE invoice_payments.account_id = accounts.account_id AND invoice_payments.invoice_id = $invoice_id ORDER BY invoice_payments.invoice_payment_id DESC"); @@ -66,7 +68,7 @@ if(isset($_GET['invoice_id'])){ ?> -
+

Invoice # INV- @@ -79,11 +81,13 @@ if(isset($_GET['invoice_id'])){

@@ -120,10 +124,11 @@ if(isset($_GET['invoice_id'])){
- Invoice # + Details
    +
  • Invoice Number:
    INV-
  • Invoice Date:
  • Payment Due:
@@ -144,7 +149,7 @@ if(isset($_GET['invoice_id'])){ - + @@ -171,7 +176,7 @@ if(isset($_GET['invoice_id'])){ ?> - + @@ -186,7 +191,7 @@ if(isset($_GET['invoice_id'])){ ?> - + @@ -200,82 +205,62 @@ if(isset($_GET['invoice_id'])){ - + - + + + 0){ ?> - + + + + 0){ ?> - + + - - - - - + 0){ ?> - - - + + + + + - - + + + -
Product Description Qty
$ 0.00
SubTotal $
Discount $
Tax $
Total$
Paid$Paid-$
BalanceTotal $
-
-
-
-
- -
-
...
-
...
-
...
-
-
-
-
-
- Invoice Note + Notes
- +

-
+
History @@ -312,7 +297,7 @@ if(isset($_GET['invoice_id'])){
-
+
Payments @@ -355,7 +340,8 @@ if(isset($_GET['invoice_id'])){
- + +