{
	"name": "table/external/4d/manager/order/sales_order_code.json",
	"table_name": "sales_order_code",
	"table_prefix": "soc",
	"main_table": "account",
	"record_type": ["sales"],
	"local_table": "order_code",
	"local_record_type": "sales",
	"table_number": 24,
	"field": [
		{
			"field_length": 24,
			"field_name": "ar_account_id",
			"field_number": 8,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "account_id",
					"linked_table": "account"
				}
			],
			"local_field": "json_data.ar_account_id",
			"nullable": true
		},
		{
			"field_length": 90,
			"field_name": "change_id",
			"field_number": 22,
			"local_field": "modify_id"
		},
		{
			"field_name": "commission__unit",
			"field_number": 14,
			"local_field": "json_data.commission__unit"
		},
		{
			"field_name": "commission_percent",
			"field_number": 13,
			"local_field": "json_data.commission_percent"
		},
		{
			"field_length": 160,
			"field_name": "cost_center",
			"field_number": 18,
			"local_field": "json_data.cost_center"
		},
		{
			"field_length": 40,
			"field_name": "creator_id",
			"field_number": 23,
			"local_field": "create_user"
		},
		{
			"field_length": 80,
			"field_name": "customer_project",
			"field_number": 20,
			"local_field": "json_data.customer_project"
		},
		{
			"field_length": 24,
			"field_name": "discount_account_id",
			"field_number": 9,
			"foreign_key": [
				{
					"link_type": "prevent delete",
					"linked_field": "account_id",
					"linked_table": "account"
				}
			],
			"local_field": "json_data.discount_account_id",
			"nullable": true
		},
		{
			"field_length": 40,
			"field_name": "export_code",
			"field_number": 6,
			"local_field": "json_data.export_code"
		},
		{
			"field_name": "firm_id",
			"field_number": 12,
			"local_field": "json_data.firm_id"
		},
		{
			"field_name": "info",
			"field_number": 5,
			"local_field": "info"
		},
		{
			"field_name": "marketing_support__unit",
			"field_number": 16,
			"local_field": "json_data.marketing_support__unit"
		},
		{
			"field_name": "marketing_support_percent",
			"field_number": 15,
			"local_field": "json_data.marketing_support_percent"
		},
		{
			"field_length": 40,
			"field_name": "modifier_id",
			"field_number": 24,
			"local_field": "json_data.modifier_id"
		},
		{
			"field_length": 80,
			"field_name": "name",
			"field_number": 2,
			"local_field": "name"
		},
		{
			"field_name": "new_code_date",
			"field_number": 27,
			"local_field": "json_data.new_code_date"
		},
		{
			"field_length": 40,
			"field_name": "new_code_id",
			"field_number": 26,
			"local_field": "json_data.new_code_id"
		},
		{
			"field_length": 80,
			"field_name": "project_id",
			"field_number": 21,
			"local_field": "json_data.project_id"
		},
		{
			"constraint": ["unique"],
			"field_length": 90,
			"field_name": "record_id",
			"field_number": 17,
			"local_field": "record_id"
		},
		{
			"field_length": 24,
			"field_name": "sales_account_id",
			"field_number": 3,
			"foreign_key": [
				{
					"default_link": true,
					"link_type": "prevent delete",
					"linked_field": "account_id",
					"linked_table": "account"
				}
			],
			"local_field": "account_id",
			"nullable": true
		},
		{
			"constraint": ["unique"],
			"field_length": 12,
			"field_name": "sales_order_code_id",
			"field_number": 1,
			"local_field": "order_code_id"
		},
		{
			"field_length": 24,
			"field_name": "target",
			"field_number": 7,
			"local_field": "json_data.target"
		},
		{
			"field_length": 24,
			"field_name": "target_group",
			"field_number": 11,
			"local_field": "json_data.target_group"
		},
		{
			"field_length": 120,
			"field_name": "transfer_id",
			"field_number": 19,
			"local_field": "json_data.transfer_id"
		},
		{
			"field_name": "transfer_state",
			"field_number": 25,
			"local_field": "json_data.transfer_state"
		},
		{
			"field_length": 40,
			"field_name": "vat_code",
			"field_number": 10,
			"local_field": "json_data.vat_code"
		},
		{
			"field_name": "vat_percentage",
			"field_number": 4,
			"local_field": "vat_percent"
		}
	],
	"default_field": "table/default_field.json"
}
