{
	"name": "form/nc/report/form/pallet-label/pallet-label.json",
	"layout": {
		"component": "nc-col",
		"attribute": {
			"id": "pallet-label",
			"class": ["nc-margin-right", "nc-align-top"],
			"width": "auto"
		},
		"element": [
			{
				"component": "nc-row",
				"attribute": {
					"info": "141/200mm",
					"height": "calc(100vh - 30em)",
					"style": "min-height: 25em; max-height: 50em;",
					"print-height": "100%",
					"print-width": "100%",
					"v-show": "rec.show_barcode",
					"width": "50vw"
				},
				"element": [
					{
						"component": "nc-rect",
						"attribute": {
							"class": ["nc-align-top"]
						},
						"element": [
							{
								"component": "nc-row",
								"attribute": {
									"height": "89/141"
								},
								"element": [
									{
										"component": "nc-col",
										"attribute": {
											"class": ["nc-align-top"],
											"width": "138/220"
										},
										"element": [
											{
												"component": "nc-label-textarea",
												"text": "Toimitusosoite",
												"attribute": {
													"input-style": "line-height:100%; font-size:60px; padding:0.5px; fit-text: grow",
													"model": "rec.ord.delivery_address",
													"rows": "5",
													"v-on:change": "rec.pdf_update_trigger++"
												}
											}
										]
									},
									{
										"component": "nc-line-v"
									},
									{
										"component": "nc-col",
										"attribute": {
											"height": "100%",
											"width": "auto"
										},
										"element": [
											{
												"component": "nc-row",
												"attribute": {
													"class": ["nc-align-top"],
													"height": "50%"
												},
												"element": [
													{
														"component": "nc-label-textarea",
														"text": "Myyntitilaus",
														"attribute": {
															"input-style": "font-size:48px; text-align:center; align-self:center; padding: 0em; fit-text: fit",
															"model": "rec.order_id",
															"rows": "1",
															"v-on:change": "rec.pdf_update_trigger++"
														}
													}
												]
											},
											{
												"component": "nc-line"
											},
											{
												"component": "nc-row",
												"attribute": {
													"class": ["nc-align-top"],
													"height": "50%"
												},
												"element": [
													{
														"component": "nc-label-textarea",
														"text": "Lähetyslista",
														"attribute": {
															"input-style": "font-size:48px; text-align:center; align-self:center; padding: 0em; fit-text: fit",
															"model": "rec.dispatch_note_id",
															"rows": "1",
															"v-on:change": "rec.pdf_update_trigger++"
														}
													}
												]
											}
										]
									}
								]
							},
							{
								"component": "nc-line"
							},
							{
								"component": "nc-row",
								"attribute": {
									"height": "52/141"
								},
								"element": [
									{
										"component": "nc-col",
										"attribute": {
											"class": ["nc-center-h"],
											"style": "padding:4px;",
											"width": "138/220"
										},
										"element": [
											{
												"component": "nc-barcode",
												"attribute": {
													"format": "code128",
													"code-width": "4",
													"scale-x": "4",
													"scale-y": "100",
													"model": "rec.dispatch_note_id"
												}
											}
										]
									},
									{
										"component": "nc-line-v"
									},
									{
										"component": "nc-col",
										"attribute": {
											"height": "100%",
											"width": "auto"
										},
										"element": [
											{
												"component": "nc-row",
												"attribute": {
													"class": ["nc-align-top"],
													"height": "50%"
												},
												"element": [
													{
														"component": "nc-col",
														"attribute": {
															"class": ["nc-center-h", "nc-center-v"],
															"height": "100%",
															"width": "50%"
														},
														"element": [
															{
																"component": "nc-span",
																"text": "{{rec.pallet}}",
																"attribute": {
																	"style": "line-height:80px; font-size:80px;"
																}
															}
														]
													},
													{
														"component": "nc-col",
														"attribute": {
															"class": ["nc-center-v"],
															"height": "100%",
															"width": "auto"
														},
														"element": [
															{
																"component": "nc-span",
																"text": " / {{rec.pallet_count}}",
																"attribute": {
																	"style": "line-height:100px;font-size:50px;"
																}
															}
														]
													}
												]
											},
											{
												"component": "nc-line"
											},
											{
												"component": "nc-row",
												"attribute": {
													"class": ["nc-center-v", "nc-center-h"],
													"height": "50%",
													"style": "padding:6px"
												},
												"element": [
													{
														"component": "nc-image",
														"attribute": {
															":src": "rec.printing ? rec.logo_path_print : rec.logo_path_local",
															"height": "30",
															"image-style": "object-fit:contain;",
															"width": "190"
														}
													}
												]
											}
										]
									}
								]
							}
						]
					}
				]
			},
			{
				"component": "nc-row",
				"attribute": {
					"height": "calc(100vh - 21em)",
					"print-height": "100%",
					"print-width": "100%",
					"v-show": "!rec.show_barcode",
					"width": "50vw"
				},
				"element": [
					{
						"component": "nc-rect",
						"attribute": {
							"class": ["nc-align-top"]
						},
						"element": [
							{
								"component": "nc-row",
								"attribute": {
									"height": "115.6/141"
								},
								"element": [
									{
										"component": "nc-col",
										"attribute": {
											"class": ["nc-align-top"],
											"width": "179.4/220"
										},
										"element": [
											{
												"component": "nc-label-textarea",
												"text": "Toimitusosoite",
												"attribute": {
													"input-style": "line-height: 100%; font-size: 80px; padding: 0.5px; fit-text: grow",
													"model": "rec.ord.delivery_address",
													"rows": "5"
												}
											}
										]
									},
									{
										"component": "nc-line-v"
									},
									{
										"component": "nc-col",
										"attribute": {
											"height": "100%",
											"width": "auto"
										},
										"element": [
											{
												"component": "nc-row",
												"attribute": {
													"class": ["nc-align-top"],
													"height": "50%"
												},
												"element": [
													{
														"component": "nc-label-textarea",
														"text": "Myyntitilaus",
														"attribute": {
															"container-style": "",
															"input-style": "font-size:36px; align-self:flex-start; padding: 0em; transform: translateY(2em) rotate(-90deg); fit-text: fit",
															"rows": "1",
															"model": "rec.order_id"
														}
													}
												]
											},
											{
												"component": "nc-line"
											},
											{
												"component": "nc-row",
												"attribute": {
													"class": ["nc-align-top"],
													"height": "50%"
												},
												"element": [
													{
														"component": "nc-label-textarea",
														"text": "Lähetyslista",
														"attribute": {
															"container-style": "",
															"input-style": "font-size:36px; align-self:flex-start; padding: 0em; transform: translateY(2em) rotate(-90deg); fit-text: fit",
															"rows": "1",
															"model": "rec.dispatch_note_id"
														}
													}
												]
											}
										]
									}
								]
							},
							{
								"component": "nc-line"
							},
							{
								"component": "nc-row",
								"attribute": {
									"height": "12.7/141"
								},
								"element": [
									{
										"component": "nc-col",
										"attribute": {
											"width": "1.2/10"
										},
										"element": [
											{
												"component": "nc-label",
												"text": "Merkki:",
												"attribute": {
													"model": "rec.ord.your_reference",
													"style": "align-self: center"
												}
											}
										]
									},
									{
										"component": "nc-col",
										"attribute": {
											"width": "4/10"
										},
										"element": [
											{
												"component": "nc-input",
												"attribute": {
													"input-style": "font-weight:bold; font-size:20px; fit-text: fit; padding: 0em",
													"model": "rec.ord.json_data.mark",
													"style": "align-self: center"
												}
											}
										]
									},
									{
										"component": "nc-line-v"
									},
									{
										"component": "nc-col",
										"attribute": {
											"width": "1.2/10"
										},
										"element": [
											{
												"component": "nc-label",
												"text": "Viite:",
												"attribute": {
													"model": "rec.ord.your_reference",
													"style": "align-self: center"
												}
											}
										]
									},
									{
										"component": "nc-col",
										"attribute": {
											"width": "auto"
										},
										"element": [
											{
												"component": "nc-input",
												"attribute": {
													"input-style": "font-weight:bold; font-size:20px; fit-text: fit; padding: 0em",
													"model": "rec.ord.your_reference",
													"style": "align-self: center"
												}
											}
										]
									}
								]
							},
							{
								"component": "nc-line"
							},
							{
								"component": "nc-row",
								"attribute": {
									"height": "12.7/141"
								},
								"element": [
									{
										"component": "nc-col",
										"attribute": {
											"width": "1.2/10"
										},
										"element": [
											{
												"component": "nc-label",
												"text": "Til. Nro.:",
												"attribute": {
													"model": "rec.ord.company_reference_number",
													"style": "align-self: center"
												}
											}
										]
									},
									{
										"component": "nc-col",
										"attribute": {
											"width": "4/10"
										},
										"element": [
											{
												"component": "nc-input",
												"attribute": {
													"input-style": "font-weight:bold; font-size:20px; fit-text: fit; padding: 0em",
													"model": "rec.ord.company_reference_number",
													"style": "align-self: center"
												}
											}
										]
									},
									{
										"component": "nc-line-v"
									},
									{
										"component": "nc-col",
										"attribute": {
											"width": "1.2/10"
										},
										"element": [
											{
												"component": "nc-label",
												"text": "Tilaaja:",
												"attribute": {
													"model": "rec.co.name",
													"style": "align-self: center"
												}
											}
										]
									},
									{
										"component": "nc-col",
										"attribute": {
											"width": "auto"
										},
										"element": [
											{
												"component": "nc-input",
												"text": "Tilaaja",
												"attribute": {
													"input-style": "font-weight:bold; font-size:20px; fit-text: fit; padding: 0em",
													"model": "rec.co.name",
													"style": "align-self: center"
												}
											}
										]
									}
								]
							}
						]
					}
				]
			}
		]
	}
}
