Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3715333a

Von Jan Büren vor fast 3 Jahren hinzugefügt

  • ID 3715333a1e32b0c54b5bac2f878f133c76f386b5
  • Vorgänger 932e6428
  • Nachfolger 2f0f51be

DB-Buchungsvorlage: Auf Betrag im Soll und Haben prüfen

Andernfalls kann der Kontoauszugsbetrag nicht richtig gesetzt werden

Unterschiede anzeigen:

bin/mozilla/gl.pl
158 158
  my $template = $::form->{record_template_id} ? SL::DB::RecordTemplate->new(id => $::form->{record_template_id})->load : SL::DB::RecordTemplate->new;
159 159
  my $js       = SL::ClientJS->new(controller => SL::Controller::Base->new);
160 160
  my $new_name = $template->template_name_to_use($::form->{record_template_new_template_name});
161

  
162 161
  $js->dialog->close('#record_template_dialog');
163 162

  
163

  
164
  # bank transactions need amounts for assignment
165
  my $can_save = 0;
166
  $can_save    = 1 if ($::form->{credit_1} > 0 && $::form->{debit_2} > 0 && $::form->{credit_2} == 0 && $::form->{debit_1} == 0);
167
  $can_save    = 1 if ($::form->{credit_2} > 0 && $::form->{debit_1} > 0 && $::form->{credit_1} == 0 && $::form->{debit_2} == 0);
168
  return $js->flash('error', t8('Can only save template if amounts,i.e. 1 for debit and credit are set.'))->render unless $can_save;
169

  
164 170
  my @items = grep {
165 171
    $_->{chart_id} && (($_->{tax_id} // '') ne '')
166 172
  } map {
locale/de/all
544 544
  'Calling #1 now'              => 'Wähle jetzt #1',
545 545
  'Can not create that quantity with current stock' => 'Diese Anzahl kann mit dem gegenwärtigen Lagerbestand nicht hergestellt werden.',
546 546
  'Can only delete the "Storno zu" part of the cancellation pair.' => 'Löschen von R(S) Rechnung nicht erlaubt. Löschen der entsprechenden "Storno zu" Gutschrift reaktiviert diese Rechnung wieder.',
547
  'Can only save template if amounts,i.e. 1 for debit and credit are set.' => 'Kann die Vorlage nicht speichern. Es wird mindestens ein Betrag im Soll und im Haben benötigt (bspw. 1), damit bspw. Beträge aus Kontoauszügen korrekt gesetzt werden können.',
547 548
  'Can\'t connect to shop. #1'  => 'Kann keine Verbindung zu Shop #1 herstellen.',
548 549
  'Can\'t load item without a valid part.id' => 'Kann Artikel ohne gültige part.id nicht laden',
549 550
  'Cancel'                      => 'Abbrechen',
locale/en/all
544 544
  'Calling #1 now'              => '',
545 545
  'Can not create that quantity with current stock' => '',
546 546
  'Can only delete the "Storno zu" part of the cancellation pair.' => '',
547
  'Can only save template if amounts,i.e. 1 for debit and credit are set.' => '',
547 548
  'Can\'t connect to shop. #1'  => '',
548 549
  'Can\'t load item without a valid part.id' => '',
549 550
  'Cancel'                      => '',

Auch abrufbar als: Unified diff