$form->get_employee($form->get_standard_dbh(\%myconfig));
$form->{created_for_user} = $form->{employee_id};
+ $form->{subject} = $form->{trans_subject_1} if $form->{trans_subject_1};
+
my $link_details;
if (0 < scalar @{ $form->{LINKS} }) {
if (typeof trans_rowcount != "undefined") {
for (i = 1; i <= trans_rowcount[0].value; i++) {
- var trans_id = document.getElementsByName("follow_up_trans_id_" + i);
- var trans_type = document.getElementsByName("follow_up_trans_type_" + i);
- var trans_info = document.getElementsByName("follow_up_trans_info_" + i);
+ var trans_id = document.getElementsByName("follow_up_trans_id_" + i);
+ var trans_type = document.getElementsByName("follow_up_trans_type_" + i);
+ var trans_info = document.getElementsByName("follow_up_trans_info_" + i);
+ var trans_subject = document.getElementsByName("follow_up_trans_subject_" + i);
url += "&" +
- "trans_id_" + i + "=" + encodeURIComponent(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" +
- "trans_type_" + i + "=" + encodeURIComponent(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" +
- "trans_info_" + i + "=" + encodeURIComponent(typeof trans_info != "undefined" ? trans_info[0].value : "");
+ "trans_id_" + i + "=" + encodeURIComponent(typeof trans_id != "undefined" ? trans_id[0].value : "") + "&" +
+ "trans_type_" + i + "=" + encodeURIComponent(typeof trans_type != "undefined" ? trans_type[0].value : "") + "&" +
+ "trans_info_" + i + "=" + encodeURIComponent(typeof trans_info != "undefined" ? trans_info[0].value : "") + "&" +
+ "trans_subject_" + i + "=" + encodeURIComponent(typeof trans_subject != "undefined" ? trans_subject[0].value : "");
}
url += "&trans_rowcount=" + encodeURIComponent(trans_rowcount[0].value);
$('<input type="hidden" name="follow_up_trans_id_1">').appendTo('#order_form').val(id);
$('<input type="hidden" name="follow_up_trans_type_1">').appendTo('#order_form').val(type);
$('<input type="hidden" name="follow_up_trans_info_1">').appendTo('#order_form').val(info);
+ $('<input type="hidden" name="follow_up_trans_subject_1">').appendTo('#order_form').val($('#order_transaction_description').val());
follow_up_window();
};