Feature: Vendor Templates! You can now create Vendor Templates and reuse them for any client

This commit is contained in:
johnnyq
2023-01-20 19:37:48 -05:00
parent b8ee87a139
commit 67a9a484af
21 changed files with 528 additions and 25 deletions

View File

@@ -32,7 +32,8 @@ if(!empty($_GET['dtf'])){
$url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o)));
$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM vendors
WHERE vendor_client_id = 0
WHERE vendor_client_id = 0
AND vendor_template = 0
AND DATE(vendor_created_at) BETWEEN '$dtf' AND '$dtt'
AND (vendor_name LIKE '%$q%' OR vendor_description LIKE '%$q%' OR vendor_account_number LIKE '%$q%' OR vendor_website LIKE '%$q%' OR vendor_contact_name LIKE '%$q%' OR vendor_email LIKE '%$q%' OR vendor_phone LIKE '%$phone_query%')
AND vendor_archived_at IS NULL