
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 job_order_details}',
			},
		{END embedded_grid_caption}
		{BEGIN embedded_page_title}
			{
				text: '{$jspagetitlelabel job_order_details list}',
			},
		{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}
					50,
					{END col_grid_3}
										{BEGIN col_grid_4}
					50,
					{END col_grid_4}
										{BEGIN col_grid_5}
					"%",
					{END col_grid_5}
										{BEGIN col_grid_6}
					"%",
					{END col_grid_6}
										{BEGIN col_grid_7}
					75,
					{END col_grid_7}
										{BEGIN col_grid_8}
					75,
					{END col_grid_8}
										{BEGIN col_grid_9}
					"%",
					{END col_grid_9}
										{BEGIN col_grid_10}
					75,
					{END col_grid_10}
															],
											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: 'above-grid',
		
		
		widths: [
								"*", 
											"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c1',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"text": [
		
				
			{"text":"","hidden":"{$item_hide_inline_add}"},
				
				
			{"text":"","hidden":"{$item_hide_inline_save_all}"},
				
				
			{"text":"","hidden":"{$item_hide_inline_cancel_all}"},
				
				
			{"text":"","hidden":"{$item_hide_delete}"},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

																							{
	cellId: 'c2',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"text": [
		
				
			{"text":"Displaying %first% - %last% of %total%","hidden":"{$item_hide_details_found}","isHtml":true,"page_indicator":true},
				
				
			{"text":"","hidden":"{$item_hide_page_size}"},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'right',
     
      
      },

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

																	

				
				{BEGIN row_grid_0}
				[
																{BEGIN cellblock_grid_headcell_icons}
{
	cellId: 'headcell_icons',
	col:0,
	row:0,
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_headcell_icons}
																							{BEGIN cellblock_grid_headcell_checkbox}
{
	cellId: 'headcell_checkbox',
	col:0,
	row:0,
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"","hidden":"{$item_hide_grid_checkbox_head}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_headcell_checkbox}
																							{BEGIN cellblock_grid_headcell_field}
{
	cellId: 'headcell_field',
	col:0,
	row:0,
			fieldName: 'details',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details details }","hidden":"{$item_hide_simple_grid_field}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_align}',
     
      
      },

{END cellblock_grid_headcell_field}
																							{BEGIN cellblock_grid_headcell_field1}
{
	cellId: 'headcell_field1',
	col:0,
	row:0,
			fieldName: 'qnt',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details qnt }","hidden":"{$item_hide_simple_grid_field13}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$qnt_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details unit_price }","hidden":"{$item_hide_simple_grid_field14}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$unit_price_align}',
     
      
      },

{END cellblock_grid_headcell_field2}
																							{BEGIN cellblock_grid_footcell_field8}
{
	cellId: 'footcell_field8',
	col:0,
	row:0,
			fieldName: 'unit_discount',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details unit_discount }","hidden":"{$item_hide_grid_field_label}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$unit_discount_align}',
     
      
      },

{END cellblock_grid_footcell_field8}
																							{BEGIN cellblock_grid_footcell_field11}
{
	cellId: 'footcell_field11',
	col:0,
	row:0,
			fieldName: 'vat_per',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details vat_per }","hidden":"{$item_hide_simple_grid_field16}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$vat_per_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details details_discount }","hidden":"{$item_hide_simple_grid_field15}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_discount_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details details_vat }","hidden":"{$item_hide_simple_grid_field17}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_vat_align}',
     
      
      },

{END cellblock_grid_headcell_field5}
																							{BEGIN cellblock_grid_cell_field7}
{
	cellId: 'cell_field7',
	col:0,
	row:0,
			fieldName: 'details_nettotal',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details details_nettotal }","hidden":"{$item_hide_grid_field_label1}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_nettotal_align}',
     
      
      },

{END cellblock_grid_cell_field7}
																							{BEGIN cellblock_grid_headcell_field6}
{
	cellId: 'headcell_field6',
	col:0,
	row:0,
			fieldName: 'details_total',
				style: 'headcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"{$jslabel job_order_details details_total }","hidden":"{$item_hide_simple_grid_field19}","bold":true},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_total_align}',
     
      
      },

{END cellblock_grid_headcell_field6}
											],
				{END row_grid_0}
		
			
		{BEGIN grid_row}
	{BEGIN grid_record}
				
				{BEGIN row_grid_1}
				[
																{BEGIN cellblock_grid_cell_icons}
{
	cellId: 'cell_icons',
	col:0,
	row:0,
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"","hidden":"{$item_hide_grid_inline_edit}"},
				
				
			{"text":"","hidden":"{$item_hide_grid_inline_save}"},
				
				
			{"text":"","hidden":"{$item_hide_grid_inline_cancel}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_cell_icons}
																							{BEGIN cellblock_grid_cell_checkbox}
{
	cellId: 'cell_checkbox',
	col:0,
	row:0,
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":"","hidden":"{$item_hide_grid_checkbox}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_cell_checkbox}
																							{BEGIN cellblock_grid_cell_field}
{
	cellId: 'cell_field',
	col:0,
	row:0,
			fieldName: 'details',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":{$details_pdfvalue},"hidden":"{$item_hide_simple_grid_field6}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_align}',
     
      
      },

{END cellblock_grid_cell_field}
																							{BEGIN cellblock_grid_cell_field1}
{
	cellId: 'cell_field1',
	col:0,
	row:0,
			fieldName: 'qnt',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":{$qnt_pdfvalue},"hidden":"{$item_hide_simple_grid_field7}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$qnt_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":{$unit_price_pdfvalue},"hidden":"{$item_hide_simple_grid_field8}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$unit_price_align}',
     
      
      },

{END cellblock_grid_cell_field2}
																							{BEGIN cellblock_grid_footcell_field9}
{
	cellId: 'footcell_field9',
	col:0,
	row:0,
			fieldName: 'unit_discount',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":{$unit_discount_pdfvalue},"hidden":"{$item_hide_grid_field}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$unit_discount_align}',
     
      
      },

{END cellblock_grid_footcell_field9}
																							{BEGIN cellblock_grid_footcell_field12}
{
	cellId: 'footcell_field12',
	col:0,
	row:0,
			fieldName: 'vat_per',
				style: 'bodycell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{"text":{$vat_per_pdfvalue},"hidden":"{$item_hide_simple_grid_field10}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$vat_per_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":{$details_discount_pdfvalue},"hidden":"{$item_hide_simple_grid_field9}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_discount_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":{$details_vat_pdfvalue},"hidden":"{$item_hide_simple_grid_field11}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_vat_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":{$details_nettotal_pdfvalue},"hidden":"{$item_hide_grid_field1}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_nettotal_align}',
     
      
      },

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

		
		
	
			
	
			"text": [
		
				
			{"text":{$details_total_pdfvalue},"hidden":"{$item_hide_simple_grid_field12}"},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_total_align}',
     
      
      },

{END cellblock_grid_cell_field6}
											],
				{END row_grid_1}
		
		{END grid_record}
	{END grid_row}
			
					
				{BEGIN row_grid_2}
				[
																{BEGIN cellblock_grid_footcell_icons}
{
	cellId: 'footcell_icons',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_footcell_icons}
																							{BEGIN cellblock_grid_footcell_checkbox}
{
	cellId: 'footcell_checkbox',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_footcell_checkbox}
																							{BEGIN cellblock_grid_footcell_field}
{
	cellId: 'footcell_field',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_footcell_field}
																							{BEGIN cellblock_grid_footcell_field1}
{
	cellId: 'footcell_field1',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_footcell_field1}
																							{BEGIN cellblock_grid_footcell_field2}
{
	cellId: 'footcell_field2',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_footcell_field2}
																							{BEGIN cellblock_grid_footcell_field10}
{
	cellId: 'footcell_field10',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_footcell_field10}
																							{BEGIN cellblock_grid_footcell_field13}
{
	cellId: 'footcell_field13',
	col:0,
	row:0,
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				'',
	  ],
  "border": [ true, true, true, true ],
              "alignment": 'left',
     
      
      },

{END cellblock_grid_footcell_field13}
																							{BEGIN cellblock_grid_footcell_field3}
{
	cellId: 'footcell_field3',
	col:0,
	row:0,
			fieldName: 'details_discount',
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{BEGIN details_discount_fieldfootercolumn}
			{BEGIN details_discount_showtotal}
				{ text: 'Total ' },
				{"text":{$details_discount_total},"hidden":"{$item_hide_grid_field_totals}"}
			{END details_discount_showtotal}
		{END details_discount_fieldfootercolumn},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_discount_align}',
     
      
      },

{END cellblock_grid_footcell_field3}
																							{BEGIN cellblock_grid_footcell_field5}
{
	cellId: 'footcell_field5',
	col:0,
	row:0,
			fieldName: 'details_vat',
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{BEGIN details_vat_fieldfootercolumn}
			{BEGIN details_vat_showtotal}
				{ text: 'Total ' },
				{"text":{$details_vat_total},"hidden":"{$item_hide_simple_grid_field18}"}
			{END details_vat_showtotal}
		{END details_vat_fieldfootercolumn},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_vat_align}',
     
      
      },

{END cellblock_grid_footcell_field5}
																							{BEGIN cellblock_grid_cell_field9}
{
	cellId: 'cell_field9',
	col:0,
	row:0,
			fieldName: 'details_nettotal',
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{BEGIN details_nettotal_fieldfootercolumn}
			{BEGIN details_nettotal_showtotal}
				{ text: 'Total ' },
				{"text":{$details_nettotal_total},"hidden":"{$item_hide_grid_field_totals1}"}
			{END details_nettotal_showtotal}
		{END details_nettotal_fieldfootercolumn},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_nettotal_align}',
     
      
      },

{END cellblock_grid_cell_field9}
																							{BEGIN cellblock_grid_footcell_field6}
{
	cellId: 'footcell_field6',
	col:0,
	row:0,
			fieldName: 'details_total',
				style: 'footcell',
		
		
	//	dynamic colspan/rowspan

		
		
	
			
	
			"text": [
		
				
			{BEGIN details_total_fieldfootercolumn}
			{BEGIN details_total_showtotal}
				{ text: 'Total ' },
				{"text":{$details_total_total},"hidden":"{$item_hide_simple_grid_field20}"}
			{END details_total_showtotal}
		{END details_total_fieldfootercolumn},
				
		  ],
  "border": [ true, true, true, true ],
              "alignment": '{$details_total_align}',
     
      
      },

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

											],
		
		]
	}
}
			],
	};


pdfFonts = {$pdfFonts};
