mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	| @@ -257,7 +257,6 @@ class ReportPrintMixin: | |||||||
|             pages = [] |             pages = [] | ||||||
|  |  | ||||||
|             try: |             try: | ||||||
|                 pdf = outputs[0].get_document().copy(pages).write_pdf() |  | ||||||
|  |  | ||||||
|                 if len(outputs) > 1: |                 if len(outputs) > 1: | ||||||
|                     # If more than one output is generated, merge them into a single file |                     # If more than one output is generated, merge them into a single file | ||||||
| @@ -265,6 +264,8 @@ class ReportPrintMixin: | |||||||
|                         doc = output.get_document() |                         doc = output.get_document() | ||||||
|                         for page in doc.pages: |                         for page in doc.pages: | ||||||
|                             pages.append(page) |                             pages.append(page) | ||||||
|  |  | ||||||
|  |                     pdf = outputs[0].get_document().copy(pages).write_pdf() | ||||||
|                 else: |                 else: | ||||||
|                     pdf = outputs[0].get_document().write_pdf() |                     pdf = outputs[0].get_document().write_pdf() | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user