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

@@ -113,7 +113,7 @@
<label for="vendors">Select related vendors</label>
<select multiple class="form-control" id="vendors" name="vendors[]">
<?php
$sql = mysqli_query($mysqli, "SELECT * FROM vendors WHERE vendor_client_id = '$client_id'");
$sql = mysqli_query($mysqli, "SELECT * FROM vendors WHERE vendor_template = 0 AND vendor_client_id = '$client_id'");
while($row = mysqli_fetch_array($sql)){
$vendor_id = $row['vendor_id'];
$vendor_name = htmlentities($row['vendor_name']);