diff --git a/htdocs/don/card.php b/htdocs/don/card.php
index 6478bcee276..eb8c8069ed7 100644
--- a/htdocs/don/card.php
+++ b/htdocs/don/card.php
@@ -877,45 +877,48 @@ if (!empty($id) && $action != 'edit') {
// Actions buttons
print '
';
-
- // Re-open
- if ($permissiontoadd && $object->statut == $object::STATUS_CANCELED) {
- print '
'.$langs->trans("ReOpen").'';
- }
-
- print '
';
-
- if ($object->statut == $object::STATUS_DRAFT) {
- print '
';
- }
-
- if (($object->statut == $object::STATUS_DRAFT || $object->statut == $object::STATUS_VALIDATED) && $totalpaid == 0 && $object->paid == 0) {
- print '
";
- }
-
- // Create payment
- if ($object->statut == $object::STATUS_VALIDATED && $object->paid == 0 && $user->hasRight('don', 'creer')) {
- if ($remaintopay == 0) {
- print '
'.$langs->trans('DoPayment').'
';
- } else {
- print '
';
+ $parameters = array();
+ $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action);
+ if (empty($reshook)) {
+ // Re-open
+ if ($permissiontoadd && $object->statut == $object::STATUS_CANCELED) {
+ print '
'.$langs->trans("ReOpen").'';
}
- }
- // Classify 'paid'
- if ($object->statut == $object::STATUS_VALIDATED && round($remaintopay) == 0 && $object->paid == 0 && $user->hasRight('don', 'creer')) {
- print '
";
- }
+ print '
';
- // Delete
- if ($user->hasRight('don', 'supprimer')) {
- if ($object->statut == $object::STATUS_CANCELED || $object->statut == $object::STATUS_DRAFT) {
- print '
";
- } else {
- print '
";
+ if ($object->statut == $object::STATUS_DRAFT) {
+ print '
';
+ }
+
+ if (($object->statut == $object::STATUS_DRAFT || $object->statut == $object::STATUS_VALIDATED) && $totalpaid == 0 && $object->paid == 0) {
+ print '
";
+ }
+
+ // Create payment
+ if ($object->statut == $object::STATUS_VALIDATED && $object->paid == 0 && $user->hasRight('don', 'creer')) {
+ if ($remaintopay == 0) {
+ print '
'.$langs->trans('DoPayment').'
';
+ } else {
+ print '
';
+ }
+ }
+
+ // Classify 'paid'
+ if ($object->statut == $object::STATUS_VALIDATED && round($remaintopay) == 0 && $object->paid == 0 && $user->hasRight('don', 'creer')) {
+ print '
";
+ }
+
+ // Delete
+ if ($user->hasRight('don', 'supprimer')) {
+ if ($object->statut == $object::STATUS_CANCELED || $object->statut == $object::STATUS_DRAFT) {
+ print '
";
+ } else {
+ print '
";
+ }
+ } else {
+ print '
";
}
- } else {
- print '
";
}
print "
";
diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang
index f8aabd7773e..2aeec52f8f1 100644
--- a/htdocs/langs/en_US/accountancy.lang
+++ b/htdocs/langs/en_US/accountancy.lang
@@ -38,7 +38,7 @@ DeleteCptCategory=Remove accounting account from group
ConfirmDeleteCptCategory=Are you sure you want to remove this accounting account from the accounting account group?
JournalizationInLedgerStatus=Status of journalization
AlreadyInGeneralLedger=Already transferred to accounting journals and ledger
-NotYetInGeneralLedger=Not yet transferred to accouting journals and ledger
+NotYetInGeneralLedger=Not yet transferred to accounting journals and ledger
GroupIsEmptyCheckSetup=Group is empty, check setup of the personalized accounting group
DetailByAccount=Show detail by account
DetailBy=Detail by
@@ -68,7 +68,7 @@ UserAccountNotDefined=Accounting account for user not defined in setup
AccountancyArea=Accounting area
AccountancyAreaDescIntro=Usage of the accountancy module is done in several step:
AccountancyAreaDescActionOnce=The following actions are usually executed one time only, or once per year...
-AccountancyAreaDescActionOnceBis=Next steps should be done to save you time in future by suggesting you automaticaly the correct default accounting account when transferring data in accounting
+AccountancyAreaDescActionOnceBis=Next steps should be done to save you time in future by suggesting you automatically the correct default accounting account when transferring data in accounting
AccountancyAreaDescActionFreq=The following actions are usually executed every month, week or day for very large companies...
AccountancyAreaDescJournalSetup=STEP %s: Check content of your journal list from menu %s
@@ -288,7 +288,7 @@ DescVentilDoneCustomer=Consult here the list of the lines of invoices customers
DescVentilTodoCustomer=Bind invoice lines not already bound with a product account from chart of account
ChangeAccount=Change the product/service account (from chart of account) for the selected lines with the following account:
Vide=-
-DescVentilSupplier=Consult here the list of vendor invoice lines bound or not yet bound to a product account from chart of account (only record not already transfered in accountancy are visible)
+DescVentilSupplier=Consult here the list of vendor invoice lines bound or not yet bound to a product account from chart of account (only record not already transferred in accountancy are visible)
DescVentilDoneSupplier=Consult here the list of the lines of vendor invoices and their accounting account
DescVentilTodoExpenseReport=Bind expense report lines not already bound with a fee accounting account
DescVentilExpenseReport=Consult here the list of expense report lines bound (or not) to a fee accounting account
@@ -350,14 +350,14 @@ ACCOUNTING_DISABLE_BINDING_ON_PURCHASES=Disable binding & transfer in accountanc
ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS=Disable binding & transfer in accountancy on expense reports (expense reports will not be taken into account in accounting)
ACCOUNTING_ENABLE_LETTERING=Enable the lettering function in the accounting
ACCOUNTING_ENABLE_LETTERING_DESC=When this options is enabled, you can define, on each accounting entry, a code so you can group different accounting movements together. In the past, when different journals was managed independently, this feature was necessary to group movement lines of different journals together. However, with Dolibarr accountancy, such a tracking code, called "