Merge branch 'master' into r700-currency

Conflicts:
	include/class/acc_ledger.class.php
	include/constant.php
	include/export/export_fiche_balance_csv.php
	include/lib/http_input.class.php
	sql/upgrade.sql
This commit is contained in:
Dany De Bontridder 2018-06-17 18:49:14 +02:00
commit 457290f4e2
3 changed files with 7 additions and 3 deletions

View file

@ -165,11 +165,13 @@ switch ($sa)
// Display list of ledgers
//////////////////////////////////////////////////////////////////////////
if ( $show_menu == 1 ) {
echo '<span style="float:right;margin-top:10px">';
echo HtmlInput::anchor_action(_("Tout"), 'show_all_row(\'cfgledger_table_id\')','ledger_all_bt','smallbutton ');
echo HtmlInput::anchor_action(_("Financier"), 'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'FIN\')','ledger_fin_bt','smallbutton ');
echo HtmlInput::anchor_action(_("Achat"), 'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'ACH\')','ledger_ach_bt','smallbutton ');
echo HtmlInput::anchor_action(_("Opérations Diverses"), 'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'ODS\')','ledger_ods_bt','smallbutton ');
echo HtmlInput::anchor_action(_("Vente"), 'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'VEN\')','ledger_ven_bt','smallbutton ');
echo '</span>';
echo '<div class="content">';
echo $ledger->listing();
echo '</div>';

View file

@ -108,7 +108,8 @@ class HttpInput
if (array_key_exists($p_name,$this->array) )
{
$this->check_type($p_name, $p_type);
return strip_tags($this->array[$p_name]);
if ( is_string($this->array[$p_name]) ) return strip_tags($this->array[$p_name]);
return $this->array[$p_name];
}
else
{
@ -121,7 +122,8 @@ class HttpInput
EXC_PARAM_VALUE);
}
$this->check_type($p_name, $p_type);
return strip_tags($this->array[$p_name]);
if ( is_string($this->array[$p_name]) ) return strip_tags($this->array[$p_name]);
return $this->array[$p_name];
}
catch (Exception $e)
{

View file

@ -1,4 +1,3 @@
-- Bug in 7004 : the amount qp_dep_priv was not saved
CREATE OR REPLACE FUNCTION comptaproc.insert_quant_purchase(p_internal text, p_j_id numeric, p_fiche character varying, p_quant numeric, p_price numeric, p_vat numeric, p_vat_code integer, p_nd_amount numeric, p_nd_tva numeric, p_nd_tva_recup numeric, p_dep_priv numeric, p_client character varying, p_tva_sided numeric, p_price_unit numeric)
RETURNS void
LANGUAGE plpgsql
@ -53,4 +52,5 @@ begin
p_price_unit);
return;
end;
$function$
$function$