[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 07/29: 0001827: Delta des opérations liées ba
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 07/29: 0001827: Delta des opérations liées basé sur le montant d'une seule opération |
Date: |
Wed, 4 Nov 2020 11:08:39 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit d8c068cc091f5de793f5a0891ccbf28c4a660b5a
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Wed Oct 28 21:31:09 2020 +0100
0001827: Delta des opérations liées basé sur le montant d'une seule
opération
---
include/template/ledger_detail_bottom.php | 20 +++++++++++++++++---
include/template/ledger_detail_fin.php | 2 +-
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/include/template/ledger_detail_bottom.php
b/include/template/ledger_detail_bottom.php
index 2eb2113..f62975a 100644
--- a/include/template/ledger_detail_bottom.php
+++ b/include/template/ledger_detail_bottom.php
@@ -173,13 +173,13 @@ endif;
<?php
// display title only in popup
if ($div == 'popup') :
- ?>
+ ?> er
<h1 class="legend"><?php echo
$a_tab['linked_operation_div']['label']?></h1>
<?php endif; ?>
<?php
if ($aRap != null ) {
- $amount_tva_include=(isset($tvac))?$tvac:$detail->det->jr_montant;
+
$amount_tva_include=(isset($total_tvac))?$total_tvac:$detail->det->jr_montant;
$tableid="tb".$div;
$total_rec=0;
echo '<table id="'.$tableid.'">';
@@ -187,8 +187,22 @@ if ($aRap != null ) {
$opRap=new Acc_Operation($cn);
$opRap->jr_id=$aRap[$e];
$internal=$opRap->get_internal();
- $array_jr=$cn->get_array('select
jr_date,jr_pj_number,jr_montant,jr_comment from jrn where
jr_id=$1',array($aRap[$e]));
+ $array_jr=$cn->get_array('select
jr_date,jr_pj_number,jr_montant,jr_comment , jr_internal
+ from jrn where jr_id=$1',
+ array($aRap[$e]));
$amount=$array_jr[0]['jr_montant'];
+ switch (substr($array_jr[0]['jr_internal'],0,1)) {
+ case 'A':
+ $amount = $cn->get_value("select sum(qp_price+qp_vat-qp_vat_sided)
from quant_purchase qp
+ where qp_internal=$1",
+ array($internal));
+ break;
+ case 'V':
+ $amount=$cn->get_value("select sum(qs_price+qs_vat-qs_vat_sided)
from quant_sold qs
+ where qs_internal=$1",
+ array($internal));
+ break;
+ }
$total_rec=bcadd($total_rec,$amount);
$str="modifyOperation(".$aRap[$e].",".$gDossier.")";
diff --git a/include/template/ledger_detail_fin.php
b/include/template/ledger_detail_fin.php
index 291a125..50ea04f 100644
--- a/include/template/ledger_detail_fin.php
+++ b/include/template/ledger_detail_fin.php
@@ -32,7 +32,7 @@ $date->value=format_date($obj->det->jr_date);
<?php
$bk=new Fiche($cn,$obj->det->array[0]['qf_bank']);
$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()),
' class="line" ');
-echo td(_('Compte en banque')).td($view_card_detail).td();;
+echo td(_('Compte en banque')).td($view_card_detail).td();
?>
</tr>
- [Noalyss-commit] [noalyss] 10/29: Correct SQL script, (continued)
- [Noalyss-commit] [noalyss] 10/29: Correct SQL script, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 16/29: Security Can_Request log the security for Ajax, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 05/29: Balise : nouveau STATUS , etat du document, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 11/29: Style : improve h2, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 22/29: Cosmetic, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 25/29: cosmetic : waiting box, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 19/29: Predefined Operation filter by ledger, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 21/29: cosmetic , remove myfiedset class, unclosed tag , the title comment is not show if there is no comment, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 20/29: Cosmetic Admin List Folders : add close button, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 02/29: Sort by earliest one, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 07/29: 0001827: Delta des opérations liées basé sur le montant d'une seule opération,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 09/29: Adapt for Textarea, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 04/29: Followup : change moyenne par normale, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 08/29: FollowUp commentaire unique et modifiable, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 18/29: Follow UP detail do not show the "Add Rows button" in READ mode, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 23/29: Cosmetic : ledger name, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 24/29: Contact : navigation bar was not correct, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 29/29: Merge branch 'checkbox-range', Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 28/29: Task #0001861: Plage de cases à cocher, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 12/29: Suivi : description modifiable, Dany De Bontridder, 2020/11/04
- [Noalyss-commit] [noalyss] 15/29: Document_State : rewriting, Dany De Bontridder, 2020/11/04