diff --git a/htdocs/admin/facture.php b/htdocs/admin/facture.php
index e77d10d9ee78b99bc763fc17bf624c1f400a2def..e16a55188fe8c9106f2ad4a4b98b359ede6e8a74 100644
--- a/htdocs/admin/facture.php
+++ b/htdocs/admin/facture.php
@@ -5,6 +5,7 @@
  * Copyright (C) 2005-2012	Regis Houssin				<regis.houssin@capnetworks.com>
  * Copyright (C) 2008		Raphael Bertrand (Resultic)	<raphael.bertrand@resultic.fr>
  * Copyright (C) 2012-2013  Juanjo Menent				<jmenent@2byte.es>
+ * Copyright (C) 2014		Teddy Andreotti				<125155@supinfo.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
diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php
index 5a36fc913901252ff1ec55767056c72c8ddeabc5..e7d11fb1b9919f4a8eae9bb04d26a6d73e9a2441 100644
--- a/htdocs/compta/paiement.php
+++ b/htdocs/compta/paiement.php
@@ -4,6 +4,7 @@
  * Copyright (C) 2005      Marc Barilley / Ocebo <marc@ocebo.com>
  * Copyright (C) 2005-2012 Regis Houssin         <regis.houssin@capnetworks.com>
  * Copyright (C) 2007      Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
+ * Copyright (C) 2014		Teddy Andreotti			<125155@supinfo.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
@@ -379,7 +380,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
 				//Add js for AutoFill
 				print ' $(document).ready(function () {';
 				print ' 	$(".AutoFillAmout").on(\'click touchstart\', function(){
-								$("input[name="+$(this).data(\'rowname\')+"]").val($(this).data("value"));
+								$("input[name="+$(this).data(\'rowname\')+"]").val($(this).data("value")).trigger("change");
 							});';
 				print '	});'."\n";
 			}
diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php
index 77c730cab2034825630dde8f449535d9f8dc896a..7c0000bedea415997017f67b4fbcdf9f4929e264 100644
--- a/htdocs/master.inc.php
+++ b/htdocs/master.inc.php
@@ -9,6 +9,7 @@
  * Copyright (C) 2006 	   Andre Cianfarani     <andre.cianfarani@acdeveloppement.net>
  * Copyright (C) 2010      Juanjo Menent        <jmenent@2byte.es>
  * Copyright (C) 2011      Philippe Grand       <philippe.grand@atoo-net.com>
+ * Copyright (C) 2014		Teddy Andreotti			<125155@supinfo.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