
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: '#C0C0C0'
		},
		nbgroup_1: {
			fillColor: '#C0C0C0'
		},
		header_1: {
			fillColor: '#C0C0C0',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_gestion: {
			fillColor: '#C0C0C0',
			fontSize: 15,
			bold: true
		},
		group_gestion: {
			fillColor: '#C0C0C0'
		},

			group_2: {
			fillColor: '#FFFFE0'
		},
		nbgroup_2: {
			fillColor: '#FFFFE0'
		},
		header_2: {
			fillColor: '#FFFFE0',
			fontSize: 15,
			bold: true
		},
		/* new style styles */
		header_estado_Pago: {
			fillColor: '#FFFFE0',
			fontSize: 15,
			bold: true
		},
		group_estado_Pago: {
			fillColor: '#FFFFE0'
		},

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

																										
{
	table: {
	
				
		location: 'top',
		
		
		widths: [
								"*", 
					 ],	
		
	
		body: [
				
				[
																{
	cellId: 'c2',
	col:0,
	row:0,
			
		
	//	static colspan/rowspan
		
			
			
	
			"stack": [
		
				
			{"text":"{$jspagetitlelabel Reporte_de__pagos 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":"Página %current% / %total%","hidden":"{$item_hide_print_pages}","isHtml":true,"page_indicator":true},
				
		  ],
  "border": [ false, false, false, false ],
              "alignment": 'left',
     
      
      },

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

																


{BEGIN grid_row}
			{BEGIN gestion_newgroup}
		[
						{
				colSpan: 10,
				text: ['{$jslabel Reporte_de__pagos gestion } ', {$gestion_grval}],
				style: 'header_1',
			}
		],

				{END gestion_newgroup}
			{BEGIN estado_Pago_newgroup}
		[
						{
				text: [''],
				style: 'group_1',
			},
						{
				colSpan: 9,
				text: ['{$jslabel Reporte_de__pagos estado_Pago } ', {$estado_Pago_grval}],
				style: 'header_2',
			}
		],

				[
								{
					text: [''],
					style: 'group_1',
				},
								{
					text: [''],
					style: 'group_2',
				},
																																				{
						text: '{$jslabel Reporte_de__pagos id_Pago }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel Reporte_de__pagos fecha_Pago }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel Reporte_de__pagos nro_derecho }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel Reporte_de__pagos CI }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel Reporte_de__pagos SOCIO }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel Reporte_de__pagos nro_Acciones }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel Reporte_de__pagos total_bs }',
						style: 'blackshade'
					},
																			{
						text: '{$jslabel Reporte_de__pagos utilidad_gestion }',
						style: 'blackshade'
					},
											],
				{END estado_Pago_newgroup}
	
			{BEGIN row_data}
		[
						{
							text: '',
							style: 'group_1',
			},
						{
							text: '',
							style: 'group_2',
			},
			
																									{
					text: {$id_Pago_value},
					alignment: '{$id_Pago_align}',
				},
															{
					text: {$fecha_Pago_value},
					alignment: '{$fecha_Pago_align}',
				},
															{
					text: {$nro_derecho_value},
					alignment: '{$nro_derecho_align}',
				},
															{
					text: {$CI_value},
					alignment: '{$CI_align}',
				},
															{
					text: {$SOCIO_value},
					alignment: '{$SOCIO_align}',
				},
															{
					text: {$nro_Acciones_value},
					alignment: '{$nro_Acciones_align}',
				},
															{
					text: {$total_bs_value},
					alignment: '{$total_bs_align}',
				},
															{
					text: {$utilidad_gestion_value},
					alignment: '{$utilidad_gestion_align}',
				},
									],
		{END row_data}
	
					{BEGIN estado_Pago_endgroup}

				[
											{
					text: [''],
					style: 'group_1',
				},
							
						{
				colSpan:9,
				text: ['Resumen de {$jslabel Reporte_de__pagos estado_Pago } ', 
					{$estado_Pago_grval},
					' - ', 
					{$groupestado_Pago_total_cnt}, 
					' Registros totales'],
				style: 'group_2',
			},
					],
			
				[
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									'Sum ',
						
				],
							style: 'group_2',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_2',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_2',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_2',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_2',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_2',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_2',
			
						},
									{
				text: [
				
									{$groupestado_Pago_totaltotal_bs_sum},
						
				],
							style: 'group_2',
			
							alignment: '{$total_bs_align}',
						},
									{
				text: [
				
									''
						
				],
							style: 'group_2',
			
						},
					],
		
		
		
		
		{END estado_Pago_endgroup}
							{BEGIN gestion_endgroup}

				[
			
						{
				colSpan:10,
				text: ['Resumen de {$jslabel Reporte_de__pagos gestion } ', 
					{$gestion_grval},
					' - ', 
					{$groupgestion_total_cnt}, 
					' Registros totales'],
				style: 'group_1',
			},
					],
			
				[
									{
				text: [
				
									'Sum ',
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
									{
				text: [
				
									{$groupgestion_totaltotal_bs_sum},
						
				],
							style: 'group_1',
			
							alignment: '{$total_bs_align}',
						},
									{
				text: [
				
									''
						
				],
							style: 'group_1',
			
						},
					],
		
		
		
		
		{END gestion_endgroup}
			
{END grid_row}

		[
								{
				text: '{$jslabel Reporte_de__pagos gestion }',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos estado_Pago }',
				style: 'blackshade'
			},
																																																															{
				text: '{$jslabel Reporte_de__pagos id_Pago }',
				alignment: '{$id_Pago_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos fecha_Pago }',
				alignment: '{$fecha_Pago_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos nro_derecho }',
				alignment: '{$nro_derecho_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos CI }',
				alignment: '{$CI_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos SOCIO }',
				alignment: '{$SOCIO_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos nro_Acciones }',
				alignment: '{$nro_Acciones_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos total_bs }',
				alignment: '{$total_bs_align}',
				style: 'blackshade'
			},
											{
				text: '{$jslabel Reporte_de__pagos utilidad_gestion }',
				alignment: '{$utilidad_gestion_align}',
				style: 'blackshade'
			},
							],










{BEGIN global_summary}
	[
		{
			text: 'Resumen global {$global_total_cnt} - Registros totales',
			colSpan: 10,
			style: 'globalsummary',
		}
	],

		[
							{
			text: [
							'Sum ',
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							'',
						],
			style: 'globalsummary',

					},
							{
			text: [
			
							{$global_totaltotal_bs_sum},
						],
			style: 'globalsummary',

			 
			alignment: '{$total_bs_align}',
					},
							{
			text: [
			
							'',
						],
			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};
