Currency : adapt test

This commit is contained in:
sparkyx 2021-03-17 11:17:40 +01:00
parent f5f04a3897
commit ea8a88bb67
4 changed files with 11 additions and 3 deletions

View file

@ -44,6 +44,7 @@ if ( $caller_obj == 'Tag_Action' ) {
throw new Exception("AJD001 invalid caller [$caller_obj]");
}
$response= $tag->select_search($pref);
$html=escape_xml($response);

View file

@ -3,10 +3,13 @@
//see licence.txt
?><?php
$max=$this->cn->count($ret);
if ( $max == 0 ) {
echo h2(_("Aucune étiquette disponible"),' class="notice"');
return;
$res=h2(_("Aucune étiquette disponible"),' class="notice"').
HtmlInput::button_close($p_prefix.'tag_div');
return $res;
}
require_once NOALYSS_INCLUDE."/lib/output_html_tab.class.php";
$tab_tag=new Html_Tab($p_prefix."tab_tag",_("Etiquettes"));

View file

@ -55,7 +55,9 @@ class Acc_Ledger_PurchaseTest extends TestCase
"sa"=>"p",
"e_mp"=>0,
"view_invoice"=>"Enregistrer",
"ac"=>"ACH"
"ac"=>"ACH",
"p_currency_rate"=>1.09,
"p_currency_code"=>1
);
}

View file

@ -67,6 +67,8 @@ class Acc_Ledger_SoldTest extends TestCase
"e_mp"=>"0",
"e_mp_qcode_1"=>"COMPTE",
"e_mp_qcode_2"=>"",
"p_currency_rate"=>1,
"p_currency_code"=>0,
"view_invoice"=>"Enregistrer");
}