[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 78/119: Fix FollowUp : price Purchase or Sale
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 78/119: Fix FollowUp : price Purchase or Sale |
Date: |
Mon, 26 Oct 2020 18:27:28 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 464567ec31bb116069de6feae70499ae24a344cd
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Sun Oct 11 17:35:55 2020 +0200
Fix FollowUp : price Purchase or Sale
---
include/class/follow_up_detail.class.php | 11 +++--------
include/template/follow_up_detail_display.php | 9 +++++++--
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/include/class/follow_up_detail.class.php
b/include/class/follow_up_detail.class.php
index 0967d99..2cdd338 100644
--- a/include/class/follow_up_detail.class.php
+++ b/include/class/follow_up_detail.class.php
@@ -236,16 +236,11 @@ class Follow_Up_Detail
public static function display(Follow_Up $p_follow_up,$p_view)
{
+ $option=$p_follow_up->db->get_value("select do_option from
document_option "
+ . " where document_type_id=$1 and
do_code='detail_operation'",[$p_follow_up->dt_id]);
+
require NOALYSS_TEMPLATE."/follow_up_detail_display.php";
}
- /*!\brief
- *\param
- *\return
- *\note
- *\see
- */
- static function test_me()
-{}
}
diff --git a/include/template/follow_up_detail_display.php
b/include/template/follow_up_detail_display.php
index a86a2e8..0b3946f 100644
--- a/include/template/follow_up_detail_display.php
+++ b/include/template/follow_up_detail_display.php
@@ -88,8 +88,13 @@ $menu=new Default_Menu();
$icard->javascript=sprintf('
onchange="fill_data_onchange(\'%s\');" ', $icard->name);
// name of the field to update with the name of the card
$icard->set_attribute('label', 'e_march' . $i . '_label');
- // name of the field with the price
- $icard->set_attribute('price', 'e_march' . $i . '_price');
+ // name of the field with the price autocomplete
+ if ( $option == 'ACH'){
+ $icard->set_attribute('purchase', 'e_march' . $i . '_price');
+ } else {
+ $icard->set_attribute('price','e_march'.$i.'_price');
+ }
+
// name of the field with the TVA_ID
$icard->set_attribute('tvaid', 'e_march' . $i . '_tva_id');
$icard->amount_from_type=$option_detail;
- [Noalyss-commit] [noalyss] 24/119: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, (continued)
- [Noalyss-commit] [noalyss] 24/119: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 25/119: erge branch 'dev-7400-7500', Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 33/119: doc, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 41/119: Rewriting of Predefined Operation. You can add new Predefined Operation, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 51/119: Add group of tag to an action, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 59/119: prevent divide by zero in formula, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 65/119: Rewriting of card attributes, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 69/119: Improve Input_Switch , do not echo but returns string, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 66/119: Multiple contact Search on selected attribute, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 77/119: fix upgrade145.sql , default value must be 1 for actif, sql wrong, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 78/119: Fix FollowUp : price Purchase or Sale,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 79/119: protect, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 86/119: Follow up cosmetic add title to anchor, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 87/119: Document Type : CFGACTION cannot add new document, fix order in dialog box, Fix= cannot delete action cause cascade on action_person, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 89/119: upgrade db 146, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 91/119: Follow-up correct link, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 97/119: Fix : generate document remove "extract", Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 105/119: Follow-Up Cosmetic, form before creating a new follow-up action, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 109/119: Remove select_dialog file, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 117/119: Follow-up export contact option with all the the card's attribute, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 94/119: typo : tag instead of étiquette, Dany De Bontridder, 2020/10/26