
pdfDocument = {
{BEGIN backgroundImage}
	background: {
		image: {$backgroundImage},
		{BEGIN bgWidth}
		imgWidth: {$bgWidth},
		imgHeight: {$bgHeight},
		{END bgWidth}
	},
{END backgroundImage}
	styles: {
				bodycell: {
			fontSize:12,
		},
		headcell: {
			fontSize:12,
			bold: true
		},

	
						pagesummary: {
		fillColor: '#ffffbb',
	},
	globalsummary: {
		fillColor: '#ffe0b0',
	},
			},
	defaultStyle: {
		fontSize: 14,
	},
	"content": [
		{BEGIN body}
		{BEGIN embedded_grid_caption}
			{
				text: '{$jscaption pakinglist__sa__8_7_5_1_audit_Report}',
			},
		{END embedded_grid_caption}
		{BEGIN embedded_page_title}
			{
				text: '{$jspagetitlelabel pakinglist__sa__8_7_5_1_audit_Report rprint}',
			},
		{END embedded_page_title}		
		{ 
			{BEGIN standalone_page}
			pageBreak: 'before',
			standAlonePage: true,
			{END standalone_page}
			{BEGIN embedded_grid}
			embeddedPage: true,
			{END embedded_grid}
			layout: {
				hLineWidth: function(i, node) { return 0.1; },
				vLineWidth: function(i, node) { 
					return 0.1; 
				},
				hLineColor: function(i, node) { return 'lightgray'; },
				vLineColor: function(i, node) { return 'lightgray'; },
			},
			table: {
				{BEGIN embedded_grid}
				embeddedPage: true,
				{END embedded_grid}
				
				tableForm: true,
				headerRows: 1 
								{BEGIN embedded_grid} -1 {END embedded_grid} ,

				widths: [
														"%",
										"%",
										"%",
										"%",
															],
							
				body: [
				{BEGIN standalone_page}
					[
						{
							colSpan: 4,
							border:[false, false,false,false],
							stack: [

																										
{
	table: {
	
				
		location: 'top',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c2',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"stack": [
		
				
			{"text":"{$jspagetitlelabel pakinglist__sa__8_7_5_1_audit_Report rprint}","hidden":"{$item_hide_print_header}","fontSize":30},
				
				
			{"text":"{$printtabheader_text}","hidden":"{$item_hide_print_subheader}"},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

											],
		
		]
	}
}
,
								
																										
{
	table: {
	
				
		location: 'above-grid',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c1',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"text": [
		
				
			{"text":"{mlang_message PRINT_PAGES}","hidden":"{$item_hide_print_pages}","isHtml":true,"page_indicator":true},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

											],
		
		]
	}
}
,
															]
						},
					],
				{END standalone_page}

																[
	{
		colSpan: 4,
		border: [ false, false, false, false ],
		stack: [
			{
				table: {
					body: [
						[
							
							{
								text: [ {$report_cross_type}, { text: {$report_cross_field}, style: 'data-field'}],
								style: 'data-label',
							},
							{
								colSpan: {$group_x_count},
								text: {$group_x_label},
								style: 'field-label',
							},
							{BEGIN cross_totals}
							{
								text: ' ',
							},
							{END cross_totals}
							{BEGIN fake_header_cells}
							{},
							{END fake_header_cells}							
						],
						[
							{
								text: {$group_y_label},
								style: 'field-label',
							},
							{BEGIN group_header}
							{
								text: {$gr_value},
								style: 'x-label',
							},			
							{END group_header}
							{BEGIN cross_totals}
							{
								text: {$totals},
								style: 'x-summary-label',
							},			
							{END cross_totals}
						],
					{BEGIN grid_row}
						[
							{
								text: {$group_y},
								style: 'y-label',
							},
							{BEGIN row_record}
							{	
								text: {$row_value},
								style: 'data',
							},
							{END row_record}
							{BEGIN cross_totals}
							{
								text: {$row_summary},
								style: 'summary',
							},
							{END cross_totals}			
						],
					{END grid_row}
					{BEGIN cross_totals}
						[
							{
								text: {$totals},
								style: 'y-summary-label',
							},
							{BEGIN col_summary}
							{
								text: {$col_summary},
								style: 'summary',
							},		
							{END col_summary}
							{
								text: {$total_summary},
								style: 'summary',
							},	
						],		
					{END cross_totals}
					]
				}
			}
		]
	}
],


									]
			
			}
		},
		{END body}
	],
	footer: [
								
{
	table: {
	
				
		location: 'below-grid',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c1',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"text": [
		
				'',
	  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

											],
		
		]
	}
}
			],
	};


pdfFonts = {$pdfFonts};
