Skip to content

Commit

Permalink
comment updated in the export button
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland-Lannuzel committed Sep 4, 2024
1 parent 4ecb15c commit 7a5f0a0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
Binary file modified Data/data.4DD
Binary file not shown.
Binary file modified Data/data.4DIndx
Binary file not shown.
Binary file modified Data/data.journal
Binary file not shown.
31 changes: 27 additions & 4 deletions Project/Sources/Forms/HDI2/ObjectMethods/btnExportFacturx.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Case of
: (Form:C1466.templateLanguage="french")

$options.facturX:={}
$options.facturX.profile:="BASIC" // "guessed" from XML so, no need to fill
//$options.facturX.profile:="BASIC" // "guessed" from XML so, no need to fill
$options.facturX.version:="1.0" // "1.0" is default value

$fileInfo.name:="factur-x.xml" // default value for first file (factur-x/ZUGFeRD xml)
Expand All @@ -30,7 +30,7 @@ Case of
: (Form:C1466.templateLanguage="german")

$options.facturX:={}
$options.facturX.profile:="RECHNUNG" // "guessed" from XML so, no need to fill
$options.facturX.profile:="RECHNUNG" // can't be "guessed" from XML so you need to fill it
$options.facturX.version:="2.1"

$fileInfo.name:="rechnung.xml"
Expand All @@ -46,8 +46,31 @@ Case of

End case


$options.files:=[$fileInfo] // more files could be added, the first one is for facturX/ZUGFeDR
If (Shift down:C543)
var $pdfFile; $pngFile : 4D:C1709.File
var $pdfInfo; $pngInfo : Object


$pdfFile:=File:C1566(Folder:C1567(fk resources folder:K87:11).path+"lorem.pdf")
$pngFile:=File:C1566(Folder:C1567(fk resources folder:K87:11).path+"4D.png")

$pdfInfo:={}
$pdfInfo.name:="lorem.pdf"
$pdfInfo.description:="pdf file"
$pdfInfo.mimeType:="application/pdf"
$pdfInfo.file:=$pdfFile

$pngInfo:={}
$pngInfo.name:="4D.png"
$pngInfo.description:="png image"
$pngInfo.mimeType:="image/png"
$pngInfo.file:=$pngFile

$options.files:=[$fileInfo; $pdfInfo; $pngInfo]

Else
$options.files:=[$fileInfo] // more files could be added, the first one is for facturX/ZUGFeDR
End if

WP EXPORT DOCUMENT:C1337(Form:C1466.template; Form:C1466.facturxFile.platformPath; wk pdf:K81:315; $options)

Expand Down

0 comments on commit 7a5f0a0

Please sign in to comment.