Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to upload files to an approved quote #1166

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from
Draft

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 */;

Copy link

sonarqubecloud bot commented Feb 5, 2025

@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

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.

2 participants