[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 162/162: Currency : set default accounting fo
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 162/162: Currency : set default accounting for change difference when using currency |
Date: |
Sat, 11 Jul 2020 13:24:13 -0400 (EDT) |
sparkyx pushed a commit to annotated tag E-4
in repository noalyss.
commit fb7505ffd4dd334ac8edee366523d098518b1f37
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: 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>";
- [Noalyss-commit] [noalyss] 156/162: PHP 7.2 incomptability : sizeof of not array, (continued)
- [Noalyss-commit] [noalyss] 156/162: PHP 7.2 incomptability : sizeof of not array, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 158/162: PHP 7.2 mistyped command, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 159/162: Currency Show currency info for MISC, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 151/162: Task #0001309: Association d'une opération avec elle-même., Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 153/162: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 149/162: Fix problem with total in balance export, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 150/162: by default jrn is an empty array, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 152/162: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 154/162: Currency : because of Misc Operation, the tiers must also be saved into operation_currency. Fix also PRINTJRN for currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 161/162: Typo, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 162/162: Currency : set default accounting for change difference when using currency,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 157/162: Currency - fix view, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 160/162: Database upgrade, Dany De Bontridder, 2020/07/11