noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 167/218: Currency : set default accounting fo


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 167/218: Currency : set default accounting for change difference when using currency
Date: Thu, 12 Sep 2019 15:59:03 -0400 (EDT)

sparkyx pushed a commit to branch entreprise
in repository noalyss.

commit fb7505ffd4dd334ac8edee366523d098518b1f37
Author: Dany De Bontridder <address@hidden>
Date:   Sat Jan 12 15:21:58 2019 +0100

    Currency : set default accounting for change difference when using currency
---
 include/company.inc.php | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/include/company.inc.php b/include/company.inc.php
index 1dfaf3e..f433c31 100644
--- a/include/company.inc.php
+++ b/include/company.inc.php
@@ -49,7 +49,8 @@ if (isset($_POST['record_company']))
        $m->MY_UPDLAB = $http->post("p_updlab");
        $m->MY_STOCK =$http->post("p_stock");
        $m->MY_CURRENCY =$http->post("p_currency");
-
+        $m->MY_DEFAULT_ROUND_ERROR_DEB=$http->post("p_round_error_deb");
+        $m->MY_DEFAULT_ROUND_ERROR_CRED=$http->post("p_round_error_cred");
        $m->Update();
 }
 
@@ -117,6 +118,18 @@ $use_currency->table = 1;
 $use_currency->value = $updlab_array;
 $use_currency->selected = $my->MY_CURRENCY;
 
+$default_error_deb=new 
IPoste("p_round_error_deb",$my->MY_DEFAULT_ROUND_ERROR_DEB);
+$default_error_deb->name = 'p_round_error_deb';
+$default_error_deb->set_attribute('gDossier',Dossier::id());
+$default_error_deb->set_attribute('jrn',0);
+$default_error_deb->set_attribute('account','p_round_error_deb');
+
+$default_error_cred=new 
IPoste("p_round_error_deb",$my->MY_DEFAULT_ROUND_ERROR_CRED);
+$default_error_cred->name = 'p_round_error_cred';
+$default_error_cred->set_attribute('gDossier',Dossier::id());
+$default_error_cred->set_attribute('jrn',0);
+$default_error_cred->set_attribute('account','p_round_error_cred');
+
 // other parameters
 $all = new IText();
 $all->table = 1;
@@ -151,7 +164,18 @@ echo "<tr>" . td(_("Suggérer la date"), 
'style="text-align:right"') . $date_sug
 echo '<tr>' . td(_('Afficher la période comptable pour éviter les erreurs de 
date'), 'style="text-align:right"') . $check_periode->input('p_check_periode', 
$strict_array) . '</tr>';
 echo '<tr>' . td(_('Utilisez des postes comptables alphanumérique'), 
'style="text-align:right"') . $alpha_num->input('p_alphanum') . '</tr>';
 echo '<tr>' . td(_('Changer le libellé des détails'), 
'style="text-align:right"') . $updlab->input('p_updlab') . '</tr>';
-
+echo '<tr>' . 
+        td(_("Poste comptable de CHARGE (D) pour les différences d'arrondi 
pour les opérations en devise")).
+        '<td>'.$default_error_deb->input().
+        '</td>'.
+        '</tr>';
+        
+echo '<tr>' . 
+        td(_("Poste comptable en PRODUIT (C) pour les différences d'arrondi 
pour les opérations en devise")).
+        '<td>'.$default_error_cred->input().
+        '</td>'.
+        '</tr>';
+        
 echo "</table>";
 echo HtmlInput::submit("record_company", _("Sauve"));
 echo "</form>";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]