|
@@ -4,6 +4,7 @@
|
|
|
* Copyright (C) 2011-2014 Juanjo Menent <jmenent@2byte.es>
|
|
|
* Copyright (C) 2013 Cedric GROSS <c.gross@kreiz-it.fr>
|
|
|
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
|
|
+ * Copyright (C) 2015 Bahfir Abbes <bafbes@gmail.com>
|
|
|
*
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
@@ -493,6 +494,18 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|
|
$object->actionmsg=$langs->transnoentities("InvoiceValidatedInDolibarr",($object->newref?$object->newref:$object->ref));
|
|
|
$object->actionmsg.="\n".$langs->transnoentities("Author").': '.$user->login;
|
|
|
|
|
|
+ $object->sendtoid=0;
|
|
|
+ }
|
|
|
+ elseif ($action == 'BILL_SUPPLIER_UNVALIDATE')
|
|
|
+ {
|
|
|
+ $langs->load("other");
|
|
|
+ $langs->load("bills");
|
|
|
+
|
|
|
+ $object->actiontypecode='AC_OTH_AUTO';
|
|
|
+ if (empty($object->actionmsg2)) $object->actionmsg2=$langs->transnoentities("InvoiceBackToDraftInDolibarr",$object->ref);
|
|
|
+ $object->actionmsg=$langs->transnoentities("InvoiceBackToDraftInDolibarr",$object->ref);
|
|
|
+ $object->actionmsg.="\n".$langs->transnoentities("Author").': '.$user->login;
|
|
|
+
|
|
|
$object->sendtoid=0;
|
|
|
}
|
|
|
elseif ($action == 'BILL_SUPPLIER_SENTBYMAIL')
|