### Eclipse Workspace Patch 1.0 #P dolibarr Index: htdocs/compta/paiement.php =================================================================== RCS file: /sources/dolibarr/dolibarr/htdocs/compta/paiement.php,v retrieving revision 1.99 diff -u -r1.99 paiement.php --- htdocs/compta/paiement.php 19 Mar 2011 13:59:05 -0000 1.99 +++ htdocs/compta/paiement.php 5 May 2011 09:57:57 -0000 @@ -324,7 +324,12 @@ print ' ('.$langs->trans("ChequeBank").')'; print ''; print ''; - + print ''.$langs->trans('AmountPayment'); + print ''; + + // Field to input the payment amount + print ''; + print ''; /* @@ -362,9 +367,110 @@ print ''.$langs->trans('AmountTTC').''; print ''.$langs->trans('Received').''; print ''.$langs->trans('RemainderToPay').''; - print ''.$langs->trans('PaymentAmount').''; print ' '; - print "\n"; + print ''.$langs->trans('PaymentAmount').''; + print ' '; + print "\n"; + print ''; $var=True; $total=0; @@ -405,18 +511,24 @@ // Remain to pay print ''.price($remaintopay).''; - + $test= price(price2num($objp->total_ttc - $paiement - $creditnotes - $deposits)); + + // Add remind amount + $namef = 'amount_'.$objp->facid; + print ''; // Push a new Array into the amountInput Array + print ''; + // Amount print ''; $namef = 'amount_'.$objp->facid; if ($_POST["action"] != 'add_paiement') { - print ''; + print ''; } else { - print ''; - print ''; + print ''; + print ''; } print ""; @@ -450,6 +562,7 @@ print ''; print ''.price(price2num($total_ttc - $totalrecu - $totalrecucreditnote - $totalrecudeposits,'MT')).''; print ' '; + print ''; print ' '; print "\n"; } Index: htdocs/langs/en_US/compta.lang =================================================================== RCS file: /sources/dolibarr/dolibarr/htdocs/langs/en_US/compta.lang,v retrieving revision 1.70 diff -u -r1.70 compta.lang --- htdocs/langs/en_US/compta.lang 19 Jan 2011 09:21:48 -0000 1.70 +++ htdocs/langs/en_US/compta.lang 5 May 2011 09:57:57 -0000 @@ -123,4 +123,5 @@ DescPurchasesJournal=Purchases Journal InvoiceRef=Invoice ref. CodeNotDef=Not defined - +AddRemind=Calculate payment +RemainToDivide= Remain to divide : Index: htdocs/langs/fr_FR/compta.lang =================================================================== RCS file: /sources/dolibarr/dolibarr/htdocs/langs/fr_FR/compta.lang,v retrieving revision 1.88 diff -u -r1.88 compta.lang --- htdocs/langs/fr_FR/compta.lang 28 Dec 2010 23:52:17 -0000 1.88 +++ htdocs/langs/fr_FR/compta.lang 5 May 2011 09:57:57 -0000 @@ -135,4 +135,6 @@ COMPTA_SERVICE_SOLD_ACCOUNT=Code comptable par défaut pour services vendus (si non défini sur fiche service) COMPTA_VAT_ACCOUNT=Code comptable par défaut pour TVA (si non défini dans dictionnaire "Taux de TVA") COMPTA_ACCOUNT_CUSTOMER=Code comptable client par défaut (si non défini sur fiche tiers) -COMPTA_ACCOUNT_SUPPLIER=Code comptable fournisseur par défaut (si non défini sur fiche tiers) \ No newline at end of file +COMPTA_ACCOUNT_SUPPLIER=Code comptable fournisseur par défaut (si non défini sur fiche tiers) +AddRemind=Calculer le paiement +RemainToDivide=Reste à répartir : \ No newline at end of file