Revision acf18ea9
Von Philip Reetz vor mehr als 15 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
800 | 800 |
<input class=submit type=submit name=action value="| . $locale->text('Delete') . qq|"> |
801 | 801 |
|; |
802 | 802 |
} |
803 |
|
|
803 |
print(STDERR "TOTALPAID $total_paid\n"); |
|
804 | 804 |
# ToDO: - insert a global check for stornos, so that a storno is only possible a limited time after saving it |
805 | 805 |
print qq| <input class=submit type=submit name=action value="| . $locale->text('Storno') . qq|"> | |
806 |
if ($form->{id} && !IS->has_storno(\%myconfig, $form, 'ap') && !IS->is_storno(\%myconfig, $form, 'ap', $form->{id})); |
|
806 |
if ($form->{id} && !IS->has_storno(\%myconfig, $form, 'ap') && !IS->is_storno(\%myconfig, $form, 'ap', $form->{id}) && (($total_paid == 0) || ($total_paid eq "")));
|
|
807 | 807 |
|
808 | 808 |
print qq| <input class=submit type=submit name=action value="| . $locale->text('Post Payment') . qq|"> |
809 | 809 |
<input class=submit type=submit name=action value="| . $locale->text('Use As Template') . qq|"> |
bin/mozilla/ar.pl | ||
---|---|---|
843 | 843 |
|
844 | 844 |
# ToDO: - insert a global check for stornos, so that a storno is only possible a limited time after saving it |
845 | 845 |
print qq| <input class=submit type=submit name=action value="| . $locale->text('Storno') . qq|"> | |
846 |
if ($form->{id} && !IS->has_storno(\%myconfig, $form, 'ar') && !IS->is_storno(\%myconfig, $form, 'ar')); |
|
846 |
if ($form->{id} && !IS->has_storno(\%myconfig, $form, 'ar') && !IS->is_storno(\%myconfig, $form, 'ar') && (($total_paid == 0) || ($total_paid eq "")));
|
|
847 | 847 |
|
848 | 848 |
if ($form->{id}) { |
849 | 849 |
if ($form->{radier}) { |
bin/mozilla/ir.pl | ||
---|---|---|
826 | 826 |
|; |
827 | 827 |
|
828 | 828 |
if ($form->{id}) { |
829 |
my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ap"); |
|
829 |
my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ap") && (($totalpaid == 0) || ($totalpaid eq ""));
|
|
830 | 830 |
|
831 | 831 |
print qq|<input class=submit type=submit name=action value="| |
832 | 832 |
. $locale->text('Post Payment') . qq|"> |
bin/mozilla/is.pl | ||
---|---|---|
1113 | 1113 |
$closedto = $form->datetonum($form->{closedto}, \%myconfig); |
1114 | 1114 |
|
1115 | 1115 |
if ($form->{id}) { |
1116 |
my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ar"); |
|
1116 |
my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ar") && (($totalpaid == 0) || ($totalpaid eq ""));
|
|
1117 | 1117 |
|
1118 | 1118 |
print qq| |
1119 | 1119 |
<input class="submit" type="submit" accesskey="u" name="action" id="update_button" value="| |
Auch abrufbar als: Unified diff
Bug #780 behoben, generell eine Ueberpruefung eingefuehrt, ob bereits Zahlungen existieren. In dem Fall wird Storno grundsaetzlich unterbunden