Lines 33-39
function confirm_deletion(link) {
Link Here
|
33 |
is_confirmed = alert(__("%s item(s) are attached to this record. You must delete all items before deleting this record.").format(count)); |
33 |
is_confirmed = alert(__("%s item(s) are attached to this record. You must delete all items before deleting this record.").format(count)); |
34 |
} else if (countorders > 0){ |
34 |
} else if (countorders > 0){ |
35 |
if( order_manage_permission ){ |
35 |
if( order_manage_permission ){ |
36 |
is_confirmed = confirm(__("Warning: This record is used in %s order(s). Deleting it could cause serious issues on acquisition module. Are you sure you want to delete this record?").format(countorders)); |
36 |
is_confirmed = confirm(__("Warning: This record is used in %s order(s). These orders will be cancelled. Are you sure you want to delete this record?").format(countorders)); |
37 |
} else { |
37 |
} else { |
38 |
is_confirmed = alert(__("%s order(s) are using this record. You need order managing permissions to delete this record.").format(countorders)); |
38 |
is_confirmed = alert(__("%s order(s) are using this record. You need order managing permissions to delete this record.").format(countorders)); |
39 |
} |
39 |
} |
40 |
- |
|
|