{
	"name": "table/external/ksef/order/terms_of_payment.json",
	"table_name": "terms_of_payment",
	"table_prefix": "top",
	"record_type": [""],
	"local_table": "terms_of_payment",
	"local_record_type": "",
	"default_field": "table/prf/default_field.json",
	"format": {
		"date": "%Y-%m-%d",
		"datetime": "%Y-%m-%dT%H:%M:%SZ"
	},
	"field": [
		{
			"field_name": "payment_terms_code",
			"local_field": "terms_of_payment_id",
			"field_type": "text",
			"info": "Payment terms identifier code"
		},
		{
			"field_name": "description",
			"local_field": "name",
			"field_type": "text",
			"info": "Payment terms description"
		},
		{
			"field_name": "payment_due_date",
			"local_field": "json_data.due_date",
			"field_type": "date",
			"info": "Payment due date from invoice"
		},
		{
			"field_name": "payment_duration",
			"local_field": "net_days",
			"field_type": "integer",
			"info": "Payment duration in days"
		},
		{
			"field_name": "discount_percent",
			"local_field": "discount_percent",
			"field_type": "double",
			"info": "Early payment discount percentage"
		},
		{
			"field_name": "discount_days",
			"local_field": "discount_days",
			"field_type": "integer",
			"info": "Days for early payment discount"
		},
		{
			"field_name": "payment_means",
			"local_field": "json_data.payment_means",
			"field_type": "text",
			"info": "Payment method code (card, transfer, cash, etc.)"
		},
		{
			"field_name": "bank_account",
			"local_field": "json_data.bank_account",
			"field_type": "text",
			"info": "Bank account number for payment"
		},
		{
			"field_name": "split_payment",
			"local_field": "json_data.split_payment",
			"field_type": "boolean",
			"info": "Polish split payment (mechanizm podzielonej płatności)"
		}
	]
}
