{
	"name": "table/manager/bookkeeping/bookkeeping_voucher_row.json",
	"table_name": "bookkeeping_voucher_row",
	"table_prefix": "bkvr",
	"main_table": "bookkeeping_voucher",
	"record_type": ["voucher"],
	"default_order": [{
		"field": "voucher_number",
		"order": ">"
	}],
	"save_script": [],
	"field": [{
			"field_length": 40,
			"field_name": "debet_account_id",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "account_id",
				"linked_record_type": "voucher",
				"linked_table": "bookkeeping_account",
				"linking_record_type": "voucher"
			}],
			"not_allowed_value": [
				""
			]
		},
		{
			"field_length": 40,
			"field_name": "kredit_account_id",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "account_id",
				"linked_record_type": "voucher",
				"linked_table": "bookkeeping_account",
				"linking_record_type": "voucher"
			}],
			"not_allowed_value": [
				""
			]
		},
		{
			"field_name": "row_value",
			"field_type": "double"
		},
		{
			"field_name": "description",
			"field_type": "text"
		},
		{
			"field_name": "info",
			"field_type": "text"
		},
		{
			"field_length": 40,
			"field_name": "invoice_id",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "order_id",
				"linked_record_type": "",
				"linked_table": "order",
				"linking_record_type": ""
			}]
		},
		{
			"field_name": "row_number",
			"field_type": "integer"
		},
		{
			"field_length": 40,
			"field_name": "voucher_id",
			"foreign_key": [{
				"link_type": "prevent delete",
				"linked_field": "voucher_id",
				"linked_record_type": "",
				"linked_table": "bookkeeping_voucher",
				"linking_record_type": ""
			}],
			"not_allowed_value": [
				""
			]
		}
	],
	"extra_field": [{
			"field_name": "json_data.account_id",
			"field_type": "varchar",
			"field_length": 40
		},
		{
			"field_name": "json_data.debet_price",
			"field_type": "double"
		},
		{
			"field_name": "json_data.kredit_price",
			"field_type": "double"
		},
		{
			"field_length": 40,
			"field_name": "json_data.account_number"
		},
		{
			"field_name": "json_data.state"
		},
		{
			"field_length": 140,
			"field_name": "json_data.transfer_id"
		},
		{
			"field_length": 160,
			"field_name": "json_data.cost_center"
		},
		{
			"field_length": 40,
			"field_name": "json_data.accounts_payable_paym_id"
		},
		{
			"field_length": 80,
			"field_name": "json_data.customer_project"
		},
		{
			"field_length": 40,
			"field_name": "json_data.invoice_payment_id"
		},
		{
			"field_length": 40,
			"field_name": "json_data.accounts_payable_id"
		},
		{
			"field_length": 40,
			"field_name": "json_data.voucher_row_id"
		},
		{
			"field_name": "json_data.transfer_state"
		},
		{
			"field_length": 80,
			"field_name": "json_data.project_id"
		},
		{
			"field_length": 40,
			"field_name": "json_data.modifier_id"
		},
		{
			"field_name": "json_data.firm_id"
		}
	],
	"default_field": "table/default_field.json",
	"delete_field": [
		"invoice_payment_id"
	]
}