use SL::DBUtils;
use SL::Notes;
+use strict;
+
sub save {
$main::lxdebug->enter_sub();
'title' => $locale->text('Sales quotation') . " $params{trans_info}",
};
+ } elsif ($params{trans_type} eq 'sales_delivery_order') {
+
+ $link = {
+ 'url' => 'do.pl?action=edit&type=sales_delivery_order&id=' . $params{trans_id} . '&edit_note_id=' . $form->quote($params{note_id}),
+ 'title' => $locale->text('Sales delivery order') .' '. $params{trans_info},
+ };
+
+ } elsif ($params{trans_type} eq 'purchase_delivery_order') {
+
+ $link = {
+ 'url' => 'do.pl?action=edit&type=purchase_delivery_order&id=' . $params{trans_id} . '&edit_note_id=' . $form->quote($params{note_id}),
+ 'title' => $locale->text('Purchase delivery order') .' '. $params{trans_info},
+ };
+
} elsif ($params{trans_type} eq 'sales_order') {
$link = {
'url' => 'oe.pl?action=edit&type=sales_order&id=' . $params{trans_id},
} elsif ($params{trans_type} eq 'ar_transaction') {
$link = {
- 'url' => 'ar.pl?action=editid=' . $params{trans_id},
+ 'url' => 'ar.pl?action=edit&id=' . $params{trans_id},
'title' => $locale->text('AR Transaction') . " $params{trans_info}",
};
} elsif ($params{trans_type} eq 'ap_transaction') {
$link = {
- 'url' => 'ap.pl?action=editid=' . $params{trans_id},
+ 'url' => 'ap.pl?action=edit&id=' . $params{trans_id},
'title' => $locale->text('AP Transaction') . " $params{trans_info}",
};
my ($id) = selectrow_query($form, $dbh, qq|SELECT id FROM employee WHERE login = ?|, $form->{login});
+ do_query($form, $dbh, qq|DELETE FROM follow_up_access WHERE what = ?|, $id);
+
my $query = qq|INSERT INTO follow_up_access (who, what) VALUES (?, ?)|;
my $sth = prepare_query($form, $dbh, $query);
- do_query($form, $dbh, qq|DELETE FROM follow_up_access WHERE what = ?|, $id);
-
while (my ($who, $access_allowed) = each %{ $params{access} }) {
next unless ($access_allowed);