Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f4e15a53

Von Sven Schöling vor mehr als 15 Jahren hinzugefügt

  • ID f4e15a539835515ba57b4cd4ee8f338a49f59ed4
  • Vorgänger 88e16972
  • Nachfolger 95f3f4ed

Whitespace Purge

Unterschiede anzeigen:

bin/mozilla/gl.pl
260 260
    $button1 = qq|
261 261
       <td><input name=datefrom id=datefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
262 262
       <input type=button name=datefrom id="trigger1" value=|
263
      . $locale->text('button') . qq|></td>  
263
      . $locale->text('button') . qq|></td>
264 264
       |;
265 265
    $button2 = qq|
266 266
       <td><input name=dateto id=dateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
......
1041 1041
    $button1 = qq|
1042 1042
       <td><input name=transdate id=transdate size=11 title="$myconfig{dateformat}" value="$form->{transdate}" $readonly onBlur=\"check_right_date_format(this)\">
1043 1043
       <input type=button name=transdate id="trigger1" value=|
1044
      . $locale->text('button') . qq|></td>  
1044
      . $locale->text('button') . qq|></td>
1045 1045
       |;
1046 1046

  
1047 1047
    #write Trigger
......
1121 1121
	  </td>
1122 1122
	</tr>|;
1123 1123
  }
1124
  print qq|	
1124
  print qq|
1125 1125
	$department|;
1126 1126
  if ($form->{id}) {
1127 1127
    print qq|
......
1237 1237
    <tr class=listtotal>
1238 1238
    <td></td>
1239 1239
    <th align=right class=listtotal> $form->{totaldebit}</th>
1240
    <th align=right class=listtotal> $form->{totalcredit}</th> 
1240
    <th align=right class=listtotal> $form->{totalcredit}</th>
1241 1241
    <td colspan=6></td>
1242 1242
    </tr>
1243 1243
  </table>
......
1268 1268
        <input class=submit type=submit name=action value="| . $locale->text('Delete') . qq|">|;
1269 1269
    }
1270 1270

  
1271
    print qq|        
1271
    print qq|
1272 1272
        <input class=submit type=submit name=action id=update_button value="| . $locale->text('Update') . qq|">
1273 1273
        <input type="button" class="submit" onclick="follow_up_window()" value="|
1274 1274
      . $locale->text('Follow-Up')
......
1334 1334
  	    $form->{addition} = "DELETED";
1335 1335
  	    $form->save_history($form->dbconnect(\%myconfig));
1336 1336
      }
1337
    # /saving the history 
1337
    # /saving the history
1338 1338
    $form->redirect($locale->text('Transaction deleted!'))
1339 1339
  }
1340 1340
  $form->error($locale->text('Cannot delete transaction!'));
......
1457 1457
    $credit   += $cr + $tax if $cr;
1458 1458
    $taxtotal += $tax if $form->{taxincluded}
1459 1459
  }
1460
  
1460

  
1461 1461
  $form->{taxincluded} = 0 if !$taxtotal;
1462 1462

  
1463 1463
  # this is just for the wise guys
......
1466 1466
  if ($form->round_amount($debit, 2) != $form->round_amount($credit, 2)) {
1467 1467
    $form->error($locale->text('Out of balance transaction!'));
1468 1468
  }
1469
  
1469

  
1470 1470
  if ($form->round_amount($debit, 2) + $form->round_amount($credit, 2) == 0) {
1471 1471
    $form->error($locale->text('Empty transaction!'));
1472 1472
  }
1473
  
1473

  
1474 1474
  if (($errno = GL->post_transaction(\%myconfig, \%$form)) <= -1) {
1475 1475
    $errno *= -1;
1476 1476
    $err[1] = $locale->text('Cannot have a value in both Debit and Credit!');
......
1484 1484
  if(!exists $form->{addition} && $form->{id} ne "") {
1485 1485
    $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber};
1486 1486
    $form->{addition} = "SAVED";
1487
    $form->{what_done} = $locale->text("Buchungsnummer") . " = " . $form->{id}; 
1487
    $form->{what_done} = $locale->text("Buchungsnummer") . " = " . $form->{id};
1488 1488
    $form->save_history($form->dbconnect(\%myconfig));
1489 1489
  }
1490
  # /saving the history 
1490
  # /saving the history
1491 1491

  
1492 1492
  $lxdebug->leave_sub();
1493 1493
}
......
1538 1538
    $form->{addition} = "STORNO";
1539 1539
    $form->save_history($form->dbconnect(\%myconfig));
1540 1540
  }
1541
  # /saving the history 
1541
  # /saving the history
1542 1542

  
1543
  $form->redirect(sprintf $locale->text("Transaction %d cancelled."), $form->{storno_id}); 
1543
  $form->redirect(sprintf $locale->text("Transaction %d cancelled."), $form->{storno_id});
1544 1544

  
1545 1545
  $lxdebug->leave_sub();
1546 1546
}

Auch abrufbar als: Unified diff