{
	"name": "table/manager/product/reclamation.json",
	"table_name": "reclamation",
	"table_prefix": "rcl",
	"record_type": [""],
	"default_order": [{
		"field": "reclamation_id",
		"order": ">"
	}],
	"save_script": [],
	"calculated_field": [],
	"field": [{
			"field_name": "calculation_type",
			"field_type": "integer"
		},
		{
			"field_name": "company_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "company_id",
				"linked_record_type": "",
				"linked_table": "company",
				"linking_record_type": ""
			}],
			"length": 40
		},
		{
			"field_name": "created_from",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "creation_date",
			"field_type": "date"
		},
		{
			"field_name": "credit_note_due_date",
			"field_type": "date"
		},
		{
			"field_name": "currency_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "currency_id",
				"linked_record_type": "",
				"linked_table": "currency",
				"linking_record_type": ""
			}],
			"length": 20
		},
		{
			"field_name": "customer_description",
			"field_type": "text"
		},
		{
			"field_name": "customer_handler",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "customer_order_number",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "customer_reclamation",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "customer_reclamation_date",
			"field_type": "date"
		},
		{
			"field_name": "dispatch_note_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "order_id",
				"linked_record_type": "dispatch_note",
				"linked_table": "order",
				"linking_record_type": ""
			}],
			"length": 40
		},
		{
			"field_name": "employee_description",
			"field_type": "text"
		},
		{
			"field_name": "exchange_rate",
			"field_type": "double"
		},
		{
			"field_name": "failed_amount",
			"field_type": "double"
		},
		{
			"field_name": "fault_caused_by",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "fault_found_in_end_check",
			"field_type": "integer"
		},
		{
			"field_name": "fault_found_resource_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "resource_id",
				"linked_record_type": "",
				"linked_table": "resource",
				"linking_record_type": ""
			}],
			"length": 40
		},
		{
			"field_name": "fault_found_work_phase",
			"field_type": "integer"
		},
		{
			"field_name": "fault_made_date",
			"field_type": "date"
		},
		{
			"field_name": "fault_made_work_phase",
			"field_type": "integer"
		},
		{
			"field_name": "fault_reason",
			"field_type": "varchar",
			"length": 80
		},
		{
			"field_name": "fault_type",
			"field_type": "varchar",
			"length": 80
		},
		{
			"field_name": "fault_made_resource_id",
			"field_type": "varchar",
			"foreign_key": [{
				"default_link": true,
				"link_type": "prevent delete",
				"linked_field": "resource_id",
				"linked_record_type": "",
				"linked_table": "resource",
				"linking_record_type": ""
			}],
			"length": 40
		},
		{
			"field_name": "finished_date",
			"field_type": "date"
		},
		{
			"field_name": "freight_charges",
			"field_type": "double"
		},
		{
			"field_name": "freight_payer",
			"field_type": "varchar",
			"length": 80
		},
		{
			"field_name": "handler_description",
			"field_type": "text"
		},
		{
			"field_name": "info",
			"field_type": "text"
		},
		{
			"field_name": "material_self_cost",
			"field_type": "double"
		},
		{
			"field_name": "measures",
			"field_type": "text"
		},
		{
			"field_name": "measures_to_avoid_faults",
			"field_type": "text"
		},
		{
			"field_name": "no_found_phase_self_cost",
			"field_type": "integer"
		},
		{
			"field_name": "order_measures",
			"field_type": "varchar",
			"length": 80
		},
		{
			"field_name": "other_charges",
			"field_type": "double"
		},
		{
			"field_name": "paid_compensation",
			"field_type": "double"
		},
		{
			"field_name": "person_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "person_id",
				"linked_record_type": "",
				"linked_table": "person",
				"linking_record_type": ""
			}],
			"length": 40
		},
		{
			"field_name": "product_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "product_id",
				"linked_record_type": "",
				"linked_table": "product",
				"linking_record_type": ""
			}],
			"length": 80
		},
		{
			"field_name": "production_lot",
			"field_type": "varchar",
			"length": 40
		},
		{
			"constraint": ["primary key", "unique"],
			"field_name": "reclamation_id",
			"field_type": "varchar",
			"length": 40,
			"not_allowed_value": [""]
		},
		{
			"field_name": "reclamation_state",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "reclamation_type",
			"field_type": "varchar",
			"length": 40
		},
		{
			"field_name": "rejected_amount",
			"field_type": "double"
		},
		{
			"field_name": "repair_amount",
			"field_type": "double"
		},
		{
			"field_name": "repair_hours",
			"field_type": "double"
		},
		{
			"field_name": "repair_purchase_charges",
			"field_type": "double"
		},
		{
			"field_name": "repair_purchase_order_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "order_id",
				"linked_record_type": "purchase",
				"linked_table": "order",
				"linking_record_type": ""
			}],
			"length": 40
		},
		{
			"field_name": "repair_unit_price",
			"field_type": "double"
		},
		{
			"field_name": "sales_order_id",
			"field_type": "varchar",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "order_id",
				"linked_record_type": "sales",
				"linked_table": "order",
				"linking_record_type": ""
			}],
			"length": 40
		},
		{
			"field_name": "sales_price",
			"field_type": "double"
		},
		{
			"field_name": "show_type",
			"field_type": "integer"
		},
		{
			"field_name": "special_permission_date",
			"field_type": "date"
		},
		{
			"field_name": "special_permission_giver",
			"field_type": "varchar",
			"length": 80
		},
		{
			"field_name": "total_charges",
			"field_type": "double"
		},
		{
			"field_name": "way_of_delivery",
			"field_type": "varchar",
			"length": 80
		},
		{
			"field_name": "work_cumul_self_cost",
			"field_type": "double"
		}
	],
	"extra_field": [{
			"field_length": 120,
			"field_name": "json_data.transfer_id",
			"field_type": "varchar"
		},
		{
			"field_length": 80,
			"field_name": "json_data.customer_project"
		},
		{
			"field_name": "json_data.compensate_work_self_cost"
		},
		{
			"field_length": 60,
			"field_name": "json_data.purchase_way_of_delivery"
		},
		{
			"field_name": "json_data.firm_id"
		},
		{
			"field_length": 40,
			"field_name": "json_data.supplier_id"
		},
		{
			"field_length": 80,
			"field_name": "json_data.customer_pays_freights"
		},
		{
			"field_name": "json_data.incorrect_material_used"
		},
		{
			"field_length": 80,
			"field_name": "json_data.purchase_repair_action"
		},
		{
			"field_length": 80,
			"field_name": "json_data.supplier_pays_freights"
		},
		{
			"field_name": "json_data.subcontract_self_cost"
		},
		{
			"field_name": "json_data.compensate_material"
		},
		{
			"field_length": 20,
			"field_name": "json_data.purchase_order_id"
		},
		{
			"field_length": 80,
			"field_name": "json_data.purchase_our_reference"
		},
		{
			"field_name": "json_data.compensation_due_date"
		},
		{
			"field_name": "json_data.supplier_total_sum"
		},
		{
			"field_name": "json_data.transfer_state"
		},
		{
			"field_length": 40,
			"field_name": "json_data.modifier_id"
		},
		{
			"field_name": "json_data.purchase_description"
		},
		{
			"field_length": 100,
			"field_name": "json_data.purchase_product_id"
		},
		{
			"field_name": "json_data.supplier_text_address"
		},
		{
			"field_length": 40,
			"field_name": "json_data.fault_made_resource_id"
		},
		{
			"field_name": "json_data.compensate_subcontract"
		},
		{
			"field_name": "json_data.repair_price_total"
		},
		{
			"field_name": "json_data.print_to_report"
		},
		{
			"field_name": "json_data.purchase_row_number"
		},
		{
			"field_length": 80,
			"field_name": "json_data.project_id"
		},
		{
			"field_name": "json_data.compensate_delivery"
		},
		{
			"field_length": 80,
			"field_name": "json_data.purchase_return"
		},
		{
			"field_length": 40,
			"field_name": "json_data.handler_id"
		},
		{
			"field_name": "json_data.compensate_other_charges",
			"field_type": "double"
		},
		{
			"field_length": 80,
			"field_name": "json_data.return"
		},
		{
			"field_name": "json_data.repair_price__unit",
			"field_type": "double"
		},
		{
			"field_name": "json_data.compensate_repair_charges",
			"field_type": "double"
		},
		{
			"field_name": "json_data.purchase_order_amount",
			"field_type": "double"
		},
		{
			"field_name": "json_data.purchase_delivery_action"
		}
	],
	"default_field": "table/default_field.json",
	"field_change": [{
			"name": "reclamation_state",
			"old_name": ["state"]
		},
		{
			"name": "reclamation_type",
			"old_name": ["type"]
		}
	]
}