Bug #0002060: Ne peut pas sauver le document dans achat / vente

This commit is contained in:
sparkyx 2021-09-02 15:59:37 +02:00
parent 164edd755a
commit a38fc9f233
2 changed files with 9 additions and 1 deletions

View file

@ -75,7 +75,7 @@ class IFile extends HtmlInput
document.getElementById("%s").addEventListener("change",function ()
{
var fFile=document.getElementById("%s");
if (fFile.files[0] && fFile.files[0].size>%s) { smoke.alert("%s");}
if (fFile.files[0] && fFile.files[0].size>%s) { smoke.alert("%s");fFile.value="";}
});',$this->id,$this->id,$max_size,$too_large);
$r.=create_script($js_check_size);

View file

@ -95,6 +95,10 @@ if (in_array('repo',$a_show)) {
if (in_array('invoice',$a_show)) {
echo $this->extra_info();
}
if ( in_array("document",$a_show)) {
if ( in_array("invoice",$a_show)) {
throw new Exception("ACC_LEDGER_INPUT100 : document and invoice available in same time");
}
?>
<div id="document_div_id" style="display:none;height:185px;height:10rem">
<?php
@ -107,6 +111,10 @@ if (in_array('invoice',$a_show)) {
echo '</p>';
?>
</div>
<?php
}
?>
<div id="modele_div_id" style="display:none;height:185px;height:10rem">
<?php echo Pre_operation::save_propose();?>
</div>