Revision 7011fd23
Von Sven Schöling vor mehr als 15 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
638 | 638 |
$column_data{AP_paid} = "<th>" . $locale->text('Account') . "</th>"; |
639 | 639 |
$column_data{source} = "<th>" . $locale->text('Source') . "</th>"; |
640 | 640 |
$column_data{memo} = "<th>" . $locale->text('Memo') . "</th>"; |
641 |
$column_data{paid_project_id} = "<th>" . $locale->text('Project Number') . "</th>";
|
|
641 |
$column_data{paid_project_id} = "<th>" . $locale->text('Project Number') . "</th>"; |
|
642 | 642 |
|
643 | 643 |
print " |
644 | 644 |
<tr> |
... | ... | |
818 | 818 |
print qq| <input type="button" class="submit" onclick="set_history_window($form->{id});" name="history" id="history" value="| . $locale->text('history') . qq|"> |; |
819 | 819 |
} |
820 | 820 |
# /button for saving history |
821 |
# mark_as_paid button
|
|
822 |
if($form->{id} ne "") {
|
|
821 |
# mark_as_paid button |
|
822 |
if($form->{id} ne "") { |
|
823 | 823 |
print qq| <input type="submit" class="submit" name="action" value="| . $locale->text('mark as paid') . qq|"> |; |
824 | 824 |
} |
825 | 825 |
# /mark_as_paid button |
... | ... | |
838 | 838 |
|
839 | 839 |
$auth->assert('general_ledger'); |
840 | 840 |
|
841 |
&mark_as_paid_common(\%myconfig,"ap");
|
|
841 |
&mark_as_paid_common(\%myconfig,"ap"); |
|
842 | 842 |
|
843 | 843 |
$lxdebug->leave_sub(); |
844 | 844 |
} |
... | ... | |
1042 | 1042 |
$form->{addition} = "POSTED"; |
1043 | 1043 |
$form->save_history($form->dbconnect(\%myconfig)); |
1044 | 1044 |
} |
1045 |
# /saving the history
|
|
1045 |
# /saving the history |
|
1046 | 1046 |
remove_draft() if $form->{remove_draft}; |
1047 | 1047 |
$form->redirect($locale->text('Transaction posted!')); |
1048 | 1048 |
} |
... | ... | |
1063 | 1063 |
$form->{addition} = "POSTED AS NEW"; |
1064 | 1064 |
$form->save_history($form->dbconnect(\%myconfig)); |
1065 | 1065 |
} |
1066 |
# /saving the history
|
|
1066 |
# /saving the history |
|
1067 | 1067 |
&post; |
1068 | 1068 |
|
1069 | 1069 |
$lxdebug->leave_sub(); |
... | ... | |
1136 | 1136 |
$form->{addition} = "DELETED"; |
1137 | 1137 |
$form->save_history($form->dbconnect(\%myconfig)); |
1138 | 1138 |
} |
1139 |
# /saving the history
|
|
1139 |
# /saving the history |
|
1140 | 1140 |
$form->redirect($locale->text('Transaction deleted!')); |
1141 | 1141 |
} |
1142 | 1142 |
$form->error($locale->text('Cannot delete transaction!')); |
... | ... | |
1540 | 1540 |
$form->{addition} = "STORNO"; |
1541 | 1541 |
$form->save_history($form->dbconnect(\%myconfig)); |
1542 | 1542 |
} |
1543 |
# /saving the history
|
|
1543 |
# /saving the history |
|
1544 | 1544 |
|
1545 |
$form->redirect(sprintf $locale->text("Transaction %d cancelled."), $form->{storno_id});
|
|
1545 |
$form->redirect(sprintf $locale->text("Transaction %d cancelled."), $form->{storno_id}); |
|
1546 | 1546 |
|
1547 | 1547 |
$lxdebug->leave_sub(); |
1548 | 1548 |
} |
Auch abrufbar als: Unified diff
Whitespace.