Skip to content

Conversation

@wrongecho
Copy link
Collaborator

@wrongecho wrongecho commented Feb 3, 2025

Allows clients to upload files (likely purchase orders) attached to quotes. *Files are uploaded into the standard file viewer, but just linked to the quote.

Draft for now, will add db.sql and database updates once we've merged #1158.

I still don't entirely like the placement of the approve/decline and now upload buttons. They're cut off on a 13" laptop screen unless you zoom out. But one for later.

Client - guest_view_quote.php
image

Admin - quote.php
image


UPDATE:

mysqli_query($mysqli, "CREATE TABLE `quote_files` (
	`quote_id` INT(11) NOT NULL,
	`file_id` INT(11) NOT NULL,
	PRIMARY KEY (`quote_id`, `file_id`))
)");

DB.SQL

--
-- Table structure for table `quote_files`
--

DROP TABLE IF EXISTS `quote_files`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `quote_files` (
  `quote_id` int(11) NOT NULL,
  `file_id` int(11) NOT NULL,
  PRIMARY KEY (`quote_id`,`file_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

@johnnyq
Copy link
Collaborator

johnnyq commented Feb 8, 2025

@wrongecho I pulled in @ssteeltm Kanban pull. This is pull is ready for the DB update

@sonarqubecloud
Copy link

@wrongecho wrongecho marked this pull request as ready for review February 17, 2025 11:29
@wrongecho wrongecho merged commit 08f2a30 into develop Feb 17, 2025
4 checks passed
@wrongecho wrongecho deleted the quote-upload branch March 2, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants