Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to print isdoc #45

Open
sasule opened this issue Aug 29, 2024 · 1 comment
Open

Unable to print isdoc #45

sasule opened this issue Aug 29, 2024 · 1 comment

Comments

@sasule
Copy link

sasule commented Aug 29, 2024

In PrinterSettings when printing invoice to pdf there is no way how to print also isdoc.

According to xsd this should be a valid code:

$print = $this->pohoda->createPrintRequest([
			                                           'record'          => [
				                                           'agenda' => 'vydane_faktury',
				                                           'filter' => [
					                                           'id' => $id,
				                                           ],
			                                           ],
			                                           'printerSettings' => [
				                                           'report' => [
					                                           'id' => 190, 
				                                           ],
				                                           'pdf'    => [
					                                           'fileName' => $this->printPathOnPohodaServer . '\\' . $requestedFileName,
					                                           'isdoc'    => [
						                                           'includeToPdf' => true
					                                           ]
				                                           ]
			                                           ]
		                                           ]);

This error is produced: "The option "isdoc" does not exist. Defined options are: "fileName" "

@segy
Copy link
Member

segy commented Sep 10, 2024

hello. feel free to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants