mirror of
https://github.com/itflow-org/itflow
synced 2026-03-07 22:34:52 +00:00
continue last commit into add payment and edit items in invoice quotes and recurring
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
<option value="">- Account -</option>
|
<option value="">- Account -</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM accounts WHERE company_id = $session_company_id ORDER BY account_name ASC");
|
$sql = mysqli_query($mysqli,"SELECT * FROM accounts WHERE account_archived_at IS NULL AND company_id = $session_company_id ORDER BY account_name ASC");
|
||||||
while($row = mysqli_fetch_array($sql)){
|
while($row = mysqli_fetch_array($sql)){
|
||||||
$account_id = $row['account_id'];
|
$account_id = $row['account_id'];
|
||||||
$account_name = $row['account_name'];
|
$account_name = $row['account_name'];
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
<option value="">- Method of Payment -</option>
|
<option value="">- Method of Payment -</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_type = 'Payment Method' AND company_id = $session_company_id ORDER BY category_name ASC");
|
$sql = mysqli_query($mysqli,"SELECT * FROM categories WHERE category_type = 'Payment Method' AND category_archived_at IS NULL AND company_id = $session_company_id ORDER BY category_name ASC");
|
||||||
while($row = mysqli_fetch_array($sql)){
|
while($row = mysqli_fetch_array($sql)){
|
||||||
$category_name = $row['category_name'];
|
$category_name = $row['category_name'];
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
<option value="0">None</option>
|
<option value="0">None</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$taxes_sql = mysqli_query($mysqli,"SELECT * FROM taxes WHERE company_id = $session_company_id ORDER BY tax_name ASC");
|
$taxes_sql = mysqli_query($mysqli,"SELECT * FROM taxes WHERE (tax_archived_at > '$item_created_at' OR tax_archived_at IS NULL) AND company_id = $session_company_id ORDER BY tax_name ASC");
|
||||||
while($row = mysqli_fetch_array($taxes_sql)){
|
while($row = mysqli_fetch_array($taxes_sql)){
|
||||||
$tax_id_select = $row['tax_id'];
|
$tax_id_select = $row['tax_id'];
|
||||||
$tax_name = $row['tax_name'];
|
$tax_name = $row['tax_name'];
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<option value="0">None</option>
|
<option value="0">None</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$taxes_sql = mysqli_query($mysqli,"SELECT * FROM taxes WHERE company_id = $session_company_id ORDER BY tax_name ASC");
|
$taxes_sql = mysqli_query($mysqli,"SELECT * FROM taxes WHERE (tax_archived_at > '$item_created_at' OR tax_archived_at IS NULL) AND company_id = $session_company_id ORDER BY tax_name ASC");
|
||||||
while($row = mysqli_fetch_array($taxes_sql)){
|
while($row = mysqli_fetch_array($taxes_sql)){
|
||||||
$tax_id_select = $row['tax_id'];
|
$tax_id_select = $row['tax_id'];
|
||||||
$tax_name = $row['tax_name'];
|
$tax_name = $row['tax_name'];
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<option value="0.00">None</option>
|
<option value="0.00">None</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$taxes_sql = mysqli_query($mysqli,"SELECT * FROM taxes WHERE company_id = $session_company_id ORDER BY tax_name ASC");
|
$taxes_sql = mysqli_query($mysqli,"SELECT * FROM taxes WHERE (tax_archived_at > '$item_created_at' OR tax_archived_at IS NULL) AND company_id = $session_company_id ORDER BY tax_name ASC");
|
||||||
while($row = mysqli_fetch_array($taxes_sql)){
|
while($row = mysqli_fetch_array($taxes_sql)){
|
||||||
$tax_id_select = $row['tax_id'];
|
$tax_id_select = $row['tax_id'];
|
||||||
$tax_name = $row['tax_name'];
|
$tax_name = $row['tax_name'];
|
||||||
|
|||||||
@@ -251,6 +251,7 @@ if(isset($_GET['invoice_id'])){
|
|||||||
$item_subtotal = $row['item_price'];
|
$item_subtotal = $row['item_price'];
|
||||||
$item_tax = $row['item_tax'];
|
$item_tax = $row['item_tax'];
|
||||||
$item_total = $row['item_total'];
|
$item_total = $row['item_total'];
|
||||||
|
$item_created_at = $row['item_created_at'];
|
||||||
$tax_id = $row['tax_id'];
|
$tax_id = $row['tax_id'];
|
||||||
$total_tax = $item_tax + $total_tax;
|
$total_tax = $item_tax + $total_tax;
|
||||||
$sub_total = $item_price * $item_quantity + $sub_total;
|
$sub_total = $item_price * $item_quantity + $sub_total;
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ if(isset($_GET['quote_id'])){
|
|||||||
$item_subtotal = $row['item_price'];
|
$item_subtotal = $row['item_price'];
|
||||||
$item_tax = $row['item_tax'];
|
$item_tax = $row['item_tax'];
|
||||||
$item_total = $row['item_total'];
|
$item_total = $row['item_total'];
|
||||||
|
$item_created_at = $row['item_created_at'];
|
||||||
$tax_id = $row['tax_id'];
|
$tax_id = $row['tax_id'];
|
||||||
$total_tax = $item_tax + $total_tax;
|
$total_tax = $item_tax + $total_tax;
|
||||||
$sub_total = $item_price * $item_quantity + $sub_total;
|
$sub_total = $item_price * $item_quantity + $sub_total;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ if(isset($_GET['recurring_id'])){
|
|||||||
<button class="btn btn-primary btn-sm float-right" type="button" data-toggle="dropdown">
|
<button class="btn btn-primary btn-sm float-right" type="button" data-toggle="dropdown">
|
||||||
<i class="fas fa-ellipsis-h"></i>
|
<i class="fas fa-ellipsis-h"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editRecurringModal<?php echo $recurring_id; ?>">Edit</a>
|
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editRecurringModal<?php echo $recurring_id; ?>">Edit</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="post.php?force_recurring=<?php echo $recurring_id; ?>">Force Send</a>
|
<a class="dropdown-item" href="post.php?force_recurring=<?php echo $recurring_id; ?>">Force Send</a>
|
||||||
@@ -195,6 +195,7 @@ if(isset($_GET['recurring_id'])){
|
|||||||
$item_subtotal = $row['item_price'];
|
$item_subtotal = $row['item_price'];
|
||||||
$item_tax = $row['item_tax'];
|
$item_tax = $row['item_tax'];
|
||||||
$item_total = $row['item_total'];
|
$item_total = $row['item_total'];
|
||||||
|
$item_created_at = $row['item_created_at'];
|
||||||
$tax_id = $row['tax_id'];
|
$tax_id = $row['tax_id'];
|
||||||
$total_tax = $item_tax + $total_tax;
|
$total_tax = $item_tax + $total_tax;
|
||||||
$sub_total = $item_price * $item_quantity + $sub_total;
|
$sub_total = $item_price * $item_quantity + $sub_total;
|
||||||
|
|||||||
Reference in New Issue
Block a user