Revision f38ccc2d
Von Jan Büren vor mehr als 6 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
220 | 220 |
my $form = $::form; |
221 | 221 |
my $change_never = $::instance_conf->get_ir_changeable == 0; |
222 | 222 |
my $change_on_same_day_only = $::instance_conf->get_ir_changeable == 2 && ($form->current_date(\%::myconfig) ne $form->{gldate}); |
223 |
my $has_storno = ($::form->{storno} && !$::form->{storno_id}); |
|
224 |
my $payments_balanced = ($::form->{oldtotalpaid} == 0); |
|
223 | 225 |
|
224 | 226 |
my $has_sepa_exports; |
225 | 227 |
|
... | ... | |
272 | 274 |
confirm => t8('Do you really want to cancel this invoice?'), |
273 | 275 |
disabled => !$form->{id} ? t8('This invoice has not been posted yet.') |
274 | 276 |
: $has_sepa_exports ? t8('This invoice has been linked with a sepa export, undo this first.') |
277 |
: !$payments_balanced ? t8('Cancelling is disallowed. Either undo or balance the current payments until the open amount matches the invoice amount') |
|
275 | 278 |
: undef, |
276 | 279 |
], |
277 | 280 |
action => [ t8('Delete'), |
... | ... | |
283 | 286 |
: $change_never ? t8('Changing invoices has been disabled in the configuration.') |
284 | 287 |
: $change_on_same_day_only ? t8('Invoices can only be changed on the day they are posted.') |
285 | 288 |
: $has_sepa_exports ? t8('This invoice has been linked with a sepa export, undo this first.') |
289 |
: $has_storno ? t8('Can only delete the "Storno zu" part of the cancellation pair.') |
|
286 | 290 |
: undef, |
287 | 291 |
], |
288 | 292 |
], # end of combobox "Storno" |
Auch abrufbar als: Unified diff
EK-Rechnung Stornos verbieten solange Zahlungen nicht ausgeglichen sind
S.a. #325 (https://redmine.kivitendo-premium.de/issues/325)