Commit 7ab001f7 authored by Frank Bergmann's avatar Frank Bergmann

- Deploying Helpdesk to projop

parent 17b5324b
......@@ -821,8 +821,12 @@ alter table im_tickets add ticket_customer_deadline timestamptz;
SELECT im_dynfield_attribute_new ('im_ticket', 'ticket_customer_deadline', 'Desired Customer End Date', 'date', 'date', 'f');
-----------------------------------------------------------
--
-- Quote results
-- alter table im_tickets add
alter table im_tickets add ticket_quoted_days numeric(12,2);
SELECT im_dynfield_attribute_new ('im_ticket', 'ticket_quoted_days', 'Quoted Days', 'numeric', 'integer', 'f');
alter table im_tickets add ticket_quote_comment text;
SELECT im_dynfield_attribute_new ('im_ticket', 'ticket_quote_comment', 'Quote Comment', 'textarea_small_nospell', 'string', 'f');
......@@ -305,6 +305,7 @@ set sql "
p.company_id = c.company_id
and t.ticket_id = p.project_id
and p.project_type_id = [im_project_type_ticket]
and p.project_status_id not in ([join [im_sub_categories [im_project_status_deleted]] ","])
$where_clause
$extra_where
$order_by_clause
......
......@@ -45,15 +45,4 @@
</querytext>
</fullquery>
<fullquery name="ticket_delete">
<querytext>
BEGIN
PERFORM im_ticket__delete (:ticket_id);
return 0;
END;
</querytext>
</fullquery>
</queryset>
......@@ -119,7 +119,19 @@ set button_pressed [template::form get_action ticket]
if {"delete" == $button_pressed} {
db_exec_plsql ticket_delete {}
db_dml mark_ticket_deleted "
update im_tickets
set ticket_status_id = [im_ticket_status_deleted]
where ticket_id = :ticket_id
"
# db_dml update_project "
# update im_projects
# set project_status_id = [im_project_status_deleted]
# where project_id = :ticket_id
# "
ad_returnredirect $return_url
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment