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

@@ -128,7 +128,7 @@ while($row = mysqli_fetch_array($sql)){
<?php
//Vendors Added Created
$sql = mysqli_query($mysqli,"SELECT * FROM clients LEFT JOIN vendors ON client_id = vendor_client_id WHERE clients.company_id = $session_company_id");
$sql = mysqli_query($mysqli,"SELECT * FROM clients LEFT JOIN vendors ON client_id = vendor_client_id WHERE vendor_template = 0 AND clients.company_id = $session_company_id");
while($row = mysqli_fetch_array($sql)){
$event_id = json_encode($row['vendor_id']);
$event_title = json_encode($row['vendor_name']);