
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',
	},
			group_1: {
			fillColor: '#90EE90'
		},
		nbgroup_1: {
			fillColor: '#90EE90'
		},
		header_1: {
			fillColor: '#90EE90',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_Date: {
			fillColor: '#90EE90',
			fontSize: 15,
			bold: true
		},
		group_Date: {
			fillColor: '#90EE90'
		},

			group_2: {
			fillColor: '#ADD8E6'
		},
		nbgroup_2: {
			fillColor: '#ADD8E6'
		},
		header_2: {
			fillColor: '#ADD8E6',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_Name_Client: {
			fillColor: '#ADD8E6',
			fontSize: 15,
			bold: true
		},
		group_Name_Client: {
			fillColor: '#ADD8E6'
		},

			group_3: {
			fillColor: '#FFB6C1'
		},
		nbgroup_3: {
			fillColor: '#FFB6C1'
		},
		header_3: {
			fillColor: '#FFB6C1',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_Ship_Name: {
			fillColor: '#FFB6C1',
			fontSize: 15,
			bold: true
		},
		group_Ship_Name: {
			fillColor: '#FFB6C1'
		},

			group_4: {
			fillColor: '#FFFACD'
		},
		nbgroup_4: {
			fillColor: '#FFFACD'
		},
		header_4: {
			fillColor: '#FFFACD',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_COUNT_ID_box_: {
			fillColor: '#FFFACD',
			fontSize: 15,
			bold: true
		},
		group_COUNT_ID_box_: {
			fillColor: '#FFFACD'
		},

			group_5: {
			fillColor: '#7FFFD4'
		},
		nbgroup_5: {
			fillColor: '#7FFFD4'
		},
		header_5: {
			fillColor: '#7FFFD4',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_SUM_Weight_in_Kg_: {
			fillColor: '#7FFFD4',
			fontSize: 15,
			bold: true
		},
		group_SUM_Weight_in_Kg_: {
			fillColor: '#7FFFD4'
		},

			group_6: {
			fillColor: '#B0E0E6'
		},
		nbgroup_6: {
			fillColor: '#B0E0E6'
		},
		header_6: {
			fillColor: '#B0E0E6',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_volume: {
			fillColor: '#B0E0E6',
			fontSize: 15,
			bold: true
		},
		group_volume: {
			fillColor: '#B0E0E6'
		},

		
	blackshade: {
		fontSize: 15,
	},
	summarycell: {
		border:[false, true, false, true ]
	},
/*
		.grouptotalsrow + :not(.grouptotalsrow) > * {
		border-top:solid #808080 1px; 
	}
	*/	
			},
	defaultStyle: {
		fontSize: 14,
	},
	"content": [
		{BEGIN body}
		{BEGIN embedded_grid_caption}
			{
				text: '{$jscaption PakingList_Report2}',
			},
		{END embedded_grid_caption}
		{BEGIN embedded_page_title}
			{
				text: '{$jspagetitlelabel PakingList_Report2 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: 6,
							border:[false, false,false,false],
							stack: [

																										
{
	table: {
	
				
		location: 'top',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c2',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"stack": [
		
				
			{"text":"{$jspagetitlelabel PakingList_Report2 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}

																


{BEGIN grid_row}
	{BEGIN Date_newgroup}
		[
								{
				text: '{$jslabel PakingList_Report2 Date }',
				style: "blackshade",
				alignment: '{$Date_align}',
			},
											{
				text: '{$jslabel PakingList_Report2 Name_Client }',
				style: "blackshade",
				alignment: '{$Name_Client_align}',
			},
											{
				text: '{$jslabel PakingList_Report2 Ship_Name }',
				style: "blackshade",
				alignment: '{$Ship_Name_align}',
			},
											{
				text: '{$jslabel PakingList_Report2 COUNT_ID_box_ }',
				style: "blackshade",
				alignment: '{$COUNT_ID_box__align}',
			},
											{
				text: '{$jslabel PakingList_Report2 SUM_Weight_in_Kg_ }',
				style: "blackshade",
				alignment: '{$SUM_Weight_in_Kg__align}',
			},
											{
				text: '{$jslabel PakingList_Report2 volume }',
				style: "blackshade",
				alignment: '{$volume_align}',
			},
					
																																	],
	
	[
													{
					colSpan: 6,
					text: {$Date_grval},
					style: "header_1"
				},
																																			],
	{END Date_newgroup}
	{BEGIN Name_Client_newgroup}
	
	[
									{
					text: '',
					style: "group_1"
				},
																{
					colSpan: 5,
					text: {$Name_Client_grval},
					style: "header_2"
				},
																														],
	{END Name_Client_newgroup}
	{BEGIN Ship_Name_newgroup}
	
	[
									{
					text: '',
					style: "group_1"
				},
												{
					text: '',
					style: "group_2"
				},
																{
					colSpan: 4,
					text: {$Ship_Name_grval},
					style: "header_3"
				},
																									],
	{END Ship_Name_newgroup}
	{BEGIN COUNT_ID_box__newgroup}
	
	[
									{
					text: '',
					style: "group_1"
				},
												{
					text: '',
					style: "group_2"
				},
												{
					text: '',
					style: "group_3"
				},
																{
					colSpan: 3,
					text: {$COUNT_ID_box__grval},
					style: "header_4"
				},
																				],
	{END COUNT_ID_box__newgroup}
	{BEGIN SUM_Weight_in_Kg__newgroup}
	
	[
									{
					text: '',
					style: "group_1"
				},
												{
					text: '',
					style: "group_2"
				},
												{
					text: '',
					style: "group_3"
				},
												{
					text: '',
					style: "group_4"
				},
																{
					colSpan: 2,
					text: {$SUM_Weight_in_Kg__grval},
					style: "header_5"
				},
															],
	{END SUM_Weight_in_Kg__newgroup}
	{BEGIN volume_newgroup}
	
	[
									{
					text: '',
					style: "group_1"
				},
												{
					text: '',
					style: "group_2"
				},
												{
					text: '',
					style: "group_3"
				},
												{
					text: '',
					style: "group_4"
				},
												{
					text: '',
					style: "group_5"
				},
																{
					colSpan: 1,
					text: {$volume_grval},
					style:"header_6"
				},
										],
	{END volume_newgroup}

	{BEGIN row_data}
	[
			{
			text: [
									{$Date_value}
							],
			style: "group_1"
		},
			{
			text: [
									''
							],
			style: "group_2"
		},
			{
			text: [
									''
							],
			style: "group_3"
		},
			{
			text: [
									''
							],
			style: "group_4"
		},
			{
			text: [
									''
							],
			style: "group_5"
		},
			{
			text: [
									''
							],
			style: "group_6"
		},
																					],
	{END row_data}


		{BEGIN volume_endgroup}

		[
								{
				text: "",
				style: "group_1"
			},
						{
				text: "",
				style: "group_2"
			},
						{
				text: "",
				style: "group_3"
			},
						{
				text: "",
				style: "group_4"
			},
						{
				text: "",
				style: "group_5"
			},
					
																																	{
				colSpan: 1,
				text: [
					'{mlang_message SUMMARY_FOR} {$jslabel PakingList_Report2 volume } ', 
					{$volume_grval},
					' - ', 
					{$groupvolume_total_cnt}, 
					' {mlang_message RECORDS_TOTAL}'
				],
				style: 'group_6',
			},
						],
	
	
	
	
	
	{END volume_endgroup}
			{BEGIN SUM_Weight_in_Kg__endgroup}

		[
								{
				text: "",
				style: "group_1"
			},
						{
				text: "",
				style: "group_2"
			},
						{
				text: "",
				style: "group_3"
			},
						{
				text: "",
				style: "group_4"
			},
					
																												{
				colSpan: 2,
				text: [
					'{mlang_message SUMMARY_FOR} {$jslabel PakingList_Report2 SUM_Weight_in_Kg_ } ', 
					{$SUM_Weight_in_Kg__grval},
					' - ', 
					{$groupSUM_Weight_in_Kg__total_cnt}, 
					' {mlang_message RECORDS_TOTAL}'
				],
				style: 'group_5',
			},
											],
	
	
	
	
	
	{END SUM_Weight_in_Kg__endgroup}
			{BEGIN COUNT_ID_box__endgroup}

		[
								{
				text: "",
				style: "group_1"
			},
						{
				text: "",
				style: "group_2"
			},
						{
				text: "",
				style: "group_3"
			},
					
																							{
				colSpan: 3,
				text: [
					'{mlang_message SUMMARY_FOR} {$jslabel PakingList_Report2 COUNT_ID_box_ } ', 
					{$COUNT_ID_box__grval},
					' - ', 
					{$groupCOUNT_ID_box__total_cnt}, 
					' {mlang_message RECORDS_TOTAL}'
				],
				style: 'group_4',
			},
																],
	
	
	
	
	
	{END COUNT_ID_box__endgroup}
			{BEGIN Ship_Name_endgroup}

		[
								{
				text: "",
				style: "group_1"
			},
						{
				text: "",
				style: "group_2"
			},
					
																		{
				colSpan: 4,
				text: [
					'{mlang_message SUMMARY_FOR} {$jslabel PakingList_Report2 Ship_Name } ', 
					{$Ship_Name_grval},
					' - ', 
					{$groupShip_Name_total_cnt}, 
					' {mlang_message RECORDS_TOTAL}'
				],
				style: 'group_3',
			},
																					],
	
	
	
	
	
	{END Ship_Name_endgroup}
			{BEGIN Name_Client_endgroup}

		[
								{
				text: "",
				style: "group_1"
			},
					
													{
				colSpan: 5,
				text: [
					'{mlang_message SUMMARY_FOR} {$jslabel PakingList_Report2 Name_Client } ', 
					{$Name_Client_grval},
					' - ', 
					{$groupName_Client_total_cnt}, 
					' {mlang_message RECORDS_TOTAL}'
				],
				style: 'group_2',
			},
																										],
	
	
	
	
	
	{END Name_Client_endgroup}
			{BEGIN Date_endgroup}

		[
		
								{
				colSpan: 6,
				text: [
					'{mlang_message SUMMARY_FOR} {$jslabel PakingList_Report2 Date } ', 
					{$Date_grval},
					' - ', 
					{$groupDate_total_cnt}, 
					' {mlang_message RECORDS_TOTAL}'
				],
				style: 'group_1',
			},
																															],
	
	
	
	
	
	{END Date_endgroup}
	
{END grid_row}










{BEGIN global_summary}
	[
		{
			text: '{mlang_message GLOBAL_SUMMARY} {$global_total_cnt} - {mlang_message RECORDS_TOTAL}',
			colSpan: 6,
			style: 'globalsummary',
		}
	],

	
	
	
	
{END global_summary}
									]
			
			}
		},
		{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};
