E-INVOICE : add the PDF Into the UBL21
Save the XML Invoice into jrn.jr_document_xml
This commit is contained in:
parent
40839add43
commit
36183ceda0
11 changed files with 406 additions and 53 deletions
|
|
@ -1891,14 +1891,14 @@ class Document
|
|||
function export_file($p_destination_file)
|
||||
{
|
||||
if ($this->d_id==0) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
$this->db->start();
|
||||
$ret=$this->db->exec_sql(
|
||||
"select d_id,d_lob,d_filename,d_mimetype from document where d_id=$1", [$this->d_id]);
|
||||
if (Database::num_row($ret)==0)
|
||||
{
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
$row=Database::fetch_array($ret, 0);
|
||||
//the document is saved into file $tmp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue