Lines 39-58
Link Here
|
39 |
} |
39 |
} |
40 |
else if (countorders > 0){ |
40 |
else if (countorders > 0){ |
41 |
[% IF ( CAN_user_acquisition_order_manage ) %] |
41 |
[% IF ( CAN_user_acquisition_order_manage ) %] |
42 |
is_confirmed = confirm( _("Warning: This record is used in")+" "+ countorders + " " +_("order(s). Deleting it could cause serious issues on acquisition module.\nAre you sure you want to delete this record?") ); |
42 |
is_confirmed = confirm( _("Warning: This record is used in")+" "+ countorders + " " +_("order(s). Deleting it could cause serious issues on acquisition module. Are you sure you want to delete this record?") ); |
43 |
[% ELSE %] |
43 |
[% ELSE %] |
44 |
is_confirmed = alert( countorders + " " +_("order(s) are using this record.\nYou need order managing permissions to delete this record.") ); |
44 |
is_confirmed = alert( countorders + " " +_("order(s) are using this record. You need order managing permissions to delete this record.") ); |
45 |
[% END %] |
45 |
[% END %] |
46 |
} |
46 |
} |
47 |
else if (countdeletedorders > 0){ |
47 |
else if (countdeletedorders > 0){ |
48 |
[% IF ( CAN_user_acquisition_order_manage ) %] |
48 |
[% IF ( CAN_user_acquisition_order_manage ) %] |
49 |
is_confirmed = confirm( countdeletedorders + " " +_("deleted order(s) are using this record.\nAre you sure you want to delete this record?") ); |
49 |
is_confirmed = confirm( countdeletedorders + " " +_("deleted order(s) are using this record. Are you sure you want to delete this record?") ); |
50 |
[% ELSE %] |
50 |
[% ELSE %] |
51 |
is_confirmed = alert( countdeletedorders + " " +_("deleted order(s) are using this record.\nYou need order managing permissions to delete this record.") ); |
51 |
is_confirmed = alert( countdeletedorders + " " +_("deleted order(s) are using this record. You need order managing permissions to delete this record.") ); |
52 |
[% END %] |
52 |
[% END %] |
53 |
} |
53 |
} |
54 |
else if ( holdcount > 0 ) { |
54 |
else if ( holdcount > 0 ) { |
55 |
is_confirmed = confirm( holdcount + " " + _("holds(s) for this record.\nAre you sure you want to delete this record?")); |
55 |
is_confirmed = confirm( holdcount + " " + _("holds(s) for this record. Are you sure you want to delete this record?")); |
56 |
} else { |
56 |
} else { |
57 |
is_confirmed = confirm(_("Are you sure you want to delete this record?")); |
57 |
is_confirmed = confirm(_("Are you sure you want to delete this record?")); |
58 |
} |
58 |
} |
59 |
- |
|
|