
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
		},

	
			},
	defaultStyle: {
		fontSize: 14,
	},
	"content": [
		{BEGIN body}
		{BEGIN embedded_grid_caption}
			{
				text: '{$jscaption pak_listing_items}',
			},
		{END embedded_grid_caption}
		{BEGIN embedded_page_title}
			{
				text: '{$jspagetitlelabel pak_listing_items print8}',
			},
		{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 row_grid_0}
							+1
						{END row_grid_0}
													{BEGIN embedded_grid} -1 {END embedded_grid} ,

				widths: [
														{BEGIN col_grid_0}
					"%",
					{END col_grid_0}
										{BEGIN col_grid_1}
					"%",
					{END col_grid_1}
										{BEGIN col_grid_2}
					"%",
					{END col_grid_2}
										{BEGIN col_grid_3}
					"%",
					{END col_grid_3}
										{BEGIN col_grid_4}
					"%",
					{END col_grid_4}
										{BEGIN col_grid_5}
					"%",
					{END col_grid_5}
										{BEGIN col_grid_6}
					"%",
					{END col_grid_6}
										{BEGIN col_grid_7}
					"%",
					{END col_grid_7}
															],
											heights: [ // first height for header part
					"%",
																		{BEGIN row_grid_0}
							"%",
							{END row_grid_0}
																							 	{BEGIN grid_row}
													{BEGIN row_grid_1}
							"%",
							{END row_grid_1}
													{END grid_row}
																								{BEGIN row_grid_2}
							"%",
							{END row_grid_2}
															],
							
				body: [
				{BEGIN standalone_page}
					[
						{
							colSpan: {$formwidth_grid},
							border:[false, false,false,false],
							stack: [

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

											],
						[
																{
	cellId: 'c4',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"stack": [
		
				
			{BEGIN mastertable_block}
			{$showmasterfile}
		{END mastertable_block},
				
		  ],
  "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},
				
				
			{"text":"","hidden":"{$item_hide_grid_inline_cancel}"},
				
				
			{"text":"","hidden":"{$item_hide_inline_add}"},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

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

																	

				
				{BEGIN row_grid_0}
				[
																{BEGIN cellblock_grid_headcell_field}
{
	cellId: 'headcell_field',
	col:0,
	row:0,
			fieldName: 'ID_box',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 15, 0 ],
		
	
			"text": [
		
				
			{"text":"{$jslabel pak_listing_items ID_box }","hidden":"{$item_hide_simple_grid_field19}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'center',
     
      
         bold: true,
   },

{END cellblock_grid_headcell_field}
																							{BEGIN cellblock_grid_headcell_field2}
{
	cellId: 'headcell_field2',
	col:0,
	row:0,
			fieldName: 'Box_No',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 15, 0 ],
		
	
			"text": [
		
				
			{"text":"{$jslabel pak_listing_items Box_No }","hidden":"{$item_hide_simple_grid_field21}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'center',
     
      
         bold: true,
   },

{END cellblock_grid_headcell_field2}
																							{BEGIN cellblock_grid_headcell_field4}
{
	cellId: 'headcell_field4',
	col:0,
	row:0,
			fieldName: 'LM',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 10, 0 ],
		
	
			"text": [
		
				
			{"text":"{$jslabel pak_listing_items LM }","hidden":"{$item_hide_grid_field_label}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'center',
     
      
      },

{END cellblock_grid_headcell_field4}
																							{BEGIN cellblock_grid_headcell_field3}
{
	cellId: 'headcell_field3',
	col:0,
	row:0,
			fieldName: 'Weight_in_Kg',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 15, 0 ],
		
	
			"text": [
		
				
			{"text":"{$jslabel pak_listing_items Weight_in_Kg }","hidden":"{$item_hide_simple_grid_field22}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'center',
     
      
         bold: true,
   },

{END cellblock_grid_headcell_field3}
																							{BEGIN cellblock_grid_headcell_field5}
{
	cellId: 'headcell_field5',
	col:0,
	row:0,
			fieldName: 'S1',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_headcell_field5}
			colSpan: {$colspan_grid_headcell_field5},
			{END colspan_grid_headcell_field5}
		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel pak_listing_items S1 }","hidden":"{$item_hide_simple_grid_field24}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'center',
     
      
         bold: true,
   },

{END cellblock_grid_headcell_field5}
																		{ 
				cellId: 'headcell_field5',
				row:  0,
				col:  1,
				text: '',
				compensateColspan: true
			},
														{ 
				cellId: 'headcell_field5',
				row:  0,
				col:  2,
				text: '',
				compensateColspan: true
			},
																			{BEGIN cellblock_grid_headcell_field8}
{
	cellId: 'headcell_field8',
	col:0,
	row:0,
			fieldName: 'volume_m3',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel pak_listing_items volume_m3 }","hidden":"{$item_hide_simple_grid_field27}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'center',
     
      
         bold: true,
   },

{END cellblock_grid_headcell_field8}
											],
				{END row_grid_0}
		
			
		{BEGIN grid_row}
	{BEGIN grid_record}
				
				{BEGIN row_grid_1}
				[
																{BEGIN cellblock_grid_cell_field}
{
	cellId: 'cell_field',
	col:0,
	row:0,
			fieldName: 'ID_box',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 15, 0 ],
		
	
			"text": [
		
				
			{"text":{$ID_box_pdfvalue},"hidden":"{$item_hide_simple_grid_field}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_cell_field}
																							{BEGIN cellblock_grid_cell_field2}
{
	cellId: 'cell_field2',
	col:0,
	row:0,
			fieldName: 'Box_No',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 15, 0 ],
		
	
			"text": [
		
				
			{"text":{$Box_No_pdfvalue},"hidden":"{$item_hide_simple_grid_field2}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_cell_field2}
																							{BEGIN cellblock_grid_headcell_field6}
{
	cellId: 'headcell_field6',
	col:0,
	row:0,
			fieldName: 'LM',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 10, 0 ],
		
	
			"text": [
		
				
			{"text":{$LM_pdfvalue},"hidden":"{$item_hide_grid_field}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_headcell_field6}
																							{BEGIN cellblock_grid_cell_field3}
{
	cellId: 'cell_field3',
	col:0,
	row:0,
			fieldName: 'Weight_in_Kg',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 15, 0 ],
		
	
			"text": [
		
				
			{"text":{$Weight_in_Kg_pdfvalue},"hidden":"{$item_hide_simple_grid_field3}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_cell_field3}
																							{BEGIN cellblock_grid_cell_field5}
{
	cellId: 'cell_field5',
	col:0,
	row:0,
			fieldName: 'S1',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 10, 0 ],
		
	
			"text": [
		
				
			{"text":{$S1_pdfvalue},"hidden":"{$item_hide_simple_grid_field5}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_cell_field5}
																							{BEGIN cellblock_grid_cell_field6}
{
	cellId: 'cell_field6',
	col:0,
	row:0,
			fieldName: 'S2',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 10, 0 ],
		
	
			"text": [
		
				
			{"text":{$S2_pdfvalue},"hidden":"{$item_hide_simple_grid_field6}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_cell_field6}
																							{BEGIN cellblock_grid_cell_field7}
{
	cellId: 'cell_field7',
	col:0,
	row:0,
			fieldName: 'S3',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 10, 0 ],
		
	
			"text": [
		
				
			{"text":{$S3_pdfvalue},"hidden":"{$item_hide_simple_grid_field7}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_cell_field7}
																							{BEGIN cellblock_grid_cell_field8}
{
	cellId: 'cell_field8',
	col:0,
	row:0,
			fieldName: 'volume_m3',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			// [left, top, right, bottom]
	margin: [ 0, 0, 15, 0 ],
		
	
			"text": [
		
				
			{"text":{$volume_m3_pdfvalue},"hidden":"{$item_hide_simple_grid_field8}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'right',
     
      
      },

{END cellblock_grid_cell_field8}
											],
				{END row_grid_1}
		
		{END grid_record}
	{END grid_row}
			
					
				{BEGIN row_grid_2}
				[
																{BEGIN cellblock_grid_footcell_field}
{
	cellId: 'footcell_field',
	col:0,
	row:0,
			fieldName: 'Box_No',
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_footcell_field}
			colSpan: {$colspan_grid_footcell_field},
			{END colspan_grid_footcell_field}
		
		
	
			
	
			"text": [
		
				
			{BEGIN Box_No_fieldfootercolumn}
			{BEGIN Box_No_showtotal}
				{ text: 'Number Delivery  Boxes : ' },
				{"text":{$Box_No_total},"hidden":"{$item_hide_grid_field_totals1}"}
			{END Box_No_showtotal}
		{END Box_No_fieldfootercolumn},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'center',
     
      
         fontSize: 14,
      bold: true,
   },

{END cellblock_grid_footcell_field}
																		{ 
				cellId: 'footcell_field',
				row:  0,
				col:  1,
				text: '',
				compensateColspan: true
			},
																			{BEGIN cellblock_grid_footcell_field3}
{
	cellId: 'footcell_field3',
	col:0,
	row:0,
			fieldName: 'Weight_in_Kg',
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_footcell_field3}
			colSpan: {$colspan_grid_footcell_field3},
			{END colspan_grid_footcell_field3}
		
		
	
			
	
			"text": [
		
				
			{BEGIN Weight_in_Kg_fieldfootercolumn}
			{BEGIN Weight_in_Kg_showtotal}
				{ text: 'Total Weight in Kg  ' },
				{"text":{$Weight_in_Kg_total},"hidden":"{$item_hide_grid_field_totals}"}
			{END Weight_in_Kg_showtotal}
		{END Weight_in_Kg_fieldfootercolumn},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'right',
     
      
         fontSize: 14,
      bold: true,
   },

{END cellblock_grid_footcell_field3}
																		{ 
				cellId: 'footcell_field3',
				row:  0,
				col:  1,
				text: '',
				compensateColspan: true
			},
																			{BEGIN cellblock_grid_footcell_field5}
{
	cellId: 'footcell_field5',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'left',
     
      
         fontSize: 14,
      bold: true,
   },

{END cellblock_grid_footcell_field5}
																							{BEGIN cellblock_grid_footcell_field8}
{
	cellId: 'footcell_field8',
	col:0,
	row:0,
			fieldName: 'volume_m3',
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

					{BEGIN colspan_grid_footcell_field8}
			colSpan: {$colspan_grid_footcell_field8},
			{END colspan_grid_footcell_field8}
		
		
	
			
	
			"text": [
		
				
			{BEGIN volume_m3_fieldfootercolumn}
			{BEGIN volume_m3_showtotal}
				{ text: 'Total Volume in m3  : ' },
				{"text":{$volume_m3_total},"hidden":"{$item_hide_grid_field_totals2}"}
			{END volume_m3_showtotal}
		{END volume_m3_fieldfootercolumn},
				
		  ],
  "border": [ true, true, true, true ],
      fillColor: '#042242',  color: '#ffffff',      "alignment": 'right',
     
      
         fontSize: 14,
      bold: true,
   },

{END cellblock_grid_footcell_field8}
																		{ 
				cellId: 'footcell_field8',
				row:  0,
				col:  1,
				text: '',
				compensateColspan: true
			},
														{ 
				cellId: 'footcell_field8',
				row:  0,
				col:  2,
				text: '',
				compensateColspan: true
			},
							],
				{END row_grid_2}
		
				
									]
			
			}
		},
		{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};
