Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
19a30880
Commit
19a30880
authored
11 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Add actions events not implemented
parent
302bcc2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
+29
-1
29 additions, 1 deletion
...ore/triggers/interface_50_modAgenda_ActionsAuto.class.php
htdocs/langs/en_US/agenda.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/en_US/agenda.lang
with
31 additions
and
1 deletion
ChangeLog
+
1
−
0
View file @
19a30880
...
...
@@ -40,6 +40,7 @@ For users:
- New: Add field url as product properties.
- New: More options to create a credit note (can be filled autatically according to remain to pay).
- Fix: Project Task numbering customs rule works.
- Fix: Add actions events not implemented
TODO
- New: Predefined product and free product use same form.
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php
+
29
−
1
View file @
19a30880
<?php
/* Copyright (C) 2005-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2009-2011 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2011-201
3
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2011-201
4
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Cedric GROSS <c.gross@kreiz-it.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -426,6 +426,34 @@ class InterfaceActionsAuto
$object
->
sendtoid
=
0
;
$ok
=
1
;
}
elseif
(
$action
==
'ORDER_SUPPLIER_APPROVE'
)
{
dol_syslog
(
"Trigger '"
.
$this
->
name
.
"' for action '
$action
' launched by "
.
__FILE__
.
". id="
.
$object
->
id
);
$langs
->
load
(
"orders"
);
$langs
->
load
(
"agenda"
);
$object
->
actiontypecode
=
'AC_OTH_AUTO'
;
if
(
empty
(
$object
->
actionmsg2
))
$object
->
actionmsg2
=
$langs
->
transnoentities
(
"OrderApprovedInDolibarr"
,
$object
->
ref
);
$object
->
actionmsg
=
$langs
->
transnoentities
(
"OrderApprovedInDolibarr"
,
$object
->
ref
);
$object
->
actionmsg
.
=
"
\n
"
.
$langs
->
transnoentities
(
"Author"
)
.
': '
.
$user
->
login
;
$object
->
sendtoid
=
0
;
$ok
=
1
;
}
elseif
(
$action
==
'ORDER_SUPPLIER_REFUSE'
)
{
dol_syslog
(
"Trigger '"
.
$this
->
name
.
"' for action '
$action
' launched by "
.
__FILE__
.
". id="
.
$object
->
id
);
$langs
->
load
(
"orders"
);
$langs
->
load
(
"agenda"
);
$object
->
actiontypecode
=
'AC_OTH_AUTO'
;
if
(
empty
(
$object
->
actionmsg2
))
$object
->
actionmsg2
=
$langs
->
transnoentities
(
"OrderRefusedInDolibarr"
,
$object
->
ref
);
$object
->
actionmsg
=
$langs
->
transnoentities
(
"OrderRefusedInDolibarr"
,
$object
->
ref
);
$object
->
actionmsg
.
=
"
\n
"
.
$langs
->
transnoentities
(
"Author"
)
.
': '
.
$user
->
login
;
$object
->
sendtoid
=
0
;
$ok
=
1
;
}
elseif
(
$action
==
'ORDER_SUPPLIER_SENTBYMAIL'
)
{
dol_syslog
(
"Trigger '"
.
$this
->
name
.
"' for action '
$action
' launched by "
.
__FILE__
.
". id="
.
$object
->
id
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/agenda.lang
+
1
−
0
View file @
19a30880
...
...
@@ -43,6 +43,7 @@ InvoiceBackToDraftInDolibarr=Invoice %s go back to draft status
InvoiceDeleteDolibarr=Invoice %s deleted
OrderValidatedInDolibarr= Order %s validated
OrderApprovedInDolibarr=Order %s approved
OrderRefusedInDolibarr=Order %s refused
OrderBackToDraftInDolibarr=Order %s go back to draft status
OrderCanceledInDolibarr=Order %s canceled
InterventionValidatedInDolibarr=Intervention %s validated
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment