跳转至

供应商对账单

汇总供应商对账单涉及的数据表及字段定义。

单据代码: DZ  数据表: 8 张  主表: dm_gls_recon

数据表清单

序号 数据库表 表名 角色 字段数
1 dm_gls_recon 供应商对账单(GLS) 主表/入口 104
2 dm_gls_recon_log 供应商对账单办理记录 关联表 14
3 dm_gls_recon_sap_row 供应商对账单SAP原始行快照 关联表 57
4 dm_gls_recon_contract 供应商对账单合同快照 关联表 36
5 dm_gls_recon_fee_rel 供应商对账单费用明细关系 关联表 32
6 dm_gls_recon_invoice 供应商对账单发票 关联表 28
7 dm_gls_recon_invoice_item 供应商对账单发票明细 关联表 22
8 dm_gls_recon_num 供应商对账单最细核算明细 关联表 74

字段定义

主表 · dm_gls_recon

源码文件: GlsSuppReconTable.java  字段数: 104

字段名 Java 类型 长度/精度 非空 字段说明
bills_id String 64 单据编号
need_flow Integer - 是否需要流程审批
over_limit_ref_nums Integer - 是否可以超过被参照数
tenant_id String 32 租户编号
bills_type String 64 单据类型
stock_type String 32 库存代码
bills_record_type Integer 8 单据记录类型
reference_id String 64 参照单据编号
reference_over Integer 2 参照是否结案
stock_stock_type String 32 库存中心库存代码
stock_record_type Integer 8 库存中心单据记录类型
stock_reference_id String 64 库存中心参照单据编号
stock_reference_over Integer 2 库存中心参照是否结案
system_type Integer 8 单据系统类型
business_type Integer 8 业务类型
price_type Integer 8 价格类型
price_type_receive Integer 8 价格类型(收货)--用于调拨业务
goods_type Integer 8 商品类型
finance_type Integer 8 财务类型
release_id String 64 冲单编号
setdepot_id String 32 发货地编号
getdepot_id String 32 收货地编号
setcompany_id String 32 发货地公司编号
getcompany_id String 32 收货地公司编号
create_date Date - 建立日期
create_username String 32 建立人
create_userid String 32 建立人编号
sure_date Date - 登账日期
sure_username String 32 登账人
sure_userid String 32 登账编号
over_date Date - 结案日期
over_username String 32 结案人
over_userid String 32 结案编号
success_over Integer 2 是否结案
success_sure Integer 2 是否登账
success_sync Integer 2 是否同步成功
count_reference Integer 8 被参照次数
count_release Integer 8 被冲单次数
bills_c_sums BigDecimal 20,6 成本价金额
bills_real_c_sums BigDecimal 20,6 成本价实际金额
bills_group_c_sums BigDecimal 20,6 集团加权成本金额
bills_j_sums BigDecimal 20,6 吊牌价金额
bills_real_j_sums BigDecimal 20,6 吊牌价实际金额
bills_l_sums BigDecimal 20,6 零售现价金额
bills_real_l_sums BigDecimal 20,6 零售现价实际金额
bills_x_sums BigDecimal 20,6 现售价金额
bills_real_x_sums BigDecimal 20,6 现售价实际金额
bills_s_sums BigDecimal 20,6 结算价金额
bills_real_s_sums BigDecimal 20,6 结算价实际金额
bills_x_sums_receive BigDecimal 20,6 收货地现售价金额
bills_real_x_sums_receive BigDecimal 20,6 收货地现售价实际金额
bills_s_sums_receive BigDecimal 20,6 收货地结算价金额
bills_real_s_sums_receive BigDecimal 20,6 收货地结算价实际金额
bills_nums BigDecimal 20,6 结算合计数量
bills_real_nums BigDecimal 20,6 实际数量,或者参考数量合计
bills_tag String 1024 备注
bills_outside_id String 256 外部单号
data_source String 64 数据来源
bills_web_modular String 32 前端模块名称
last_date Date - 最后操作日期
sure_systemdate Date - 登账-系统时间
branch_id String 32 - 机构编号
es_id String 32 ESID
platform_type BillsPlatformType 32 平台类型
platform_bills_id String 64 平台单据编号
bills_handle_type BillsHandleType 32 处理类型
bills_handle_message String 512 处理类型提示信息
bills_event_scheme_id String 64 单据执行事件方案编号
deposit_pec BigDecimal 20,6 - 订金扣减比例
bills_run_event_type String 512 单据执行事件类型
bills_packed Integer 2 单据已装箱
policy_bills_id String 64 特殊政策单号
policy_bills_id_receive String 64 收货方特殊政策单号
version Long - - 数据版本号
po_id String 64 - 成品成品采购订单编号
ref_id String 64 参照上游单号
pre_version Long 3 - 上一版本号
edit_flag_after_sure Integer 3 - 提交后修改标志:0-提交后无修改,1-提交后修改未提交,2-提交后修改提交中
scm_user_group_id String 32 - SCM业务组编号
scm_user_group_type String 32 - SCM业务组类型
currency_id String 16 - 币种编号
tax_ratio_id String 32 - 税率档案编号
tax_ratio BigDecimal 10,6 - 税率值
indepot_sums BigDecimal 20,2 - 入库金额汇总
fee_amount BigDecimal 20,2 - 费用金额汇总
invoice_amount BigDecimal 20,2 - 开票金额汇总
map_acc_sums BigDecimal 20,2 - 应付金额汇总
reconciliation_status String 32 - 对账业务阶段状态
e_sign_status String 32 - 对账单电签状态
invoice_status String 32 - 发票处理状态
payment_link_status String 32 - 付款申请关联状态
supplier_submitted_at Date - - 供应商提交时间
reviewed_by String 64 - 对账员复核人编号
reviewed_at Date - - 对账员复核时间
finance_checked_by String 64 - 财务初审人编号
finance_checked_at Date - - 财务初审时间
signing_method String 32 - 对账单签约方式
source_batch_id String 32 - 来源SAP查询批次
return_reason String 1000 - 最近一次退回原因
bank_name String 128 - 开户银行快照
bank_account_name String 128 - 账户名称快照
bank_account_no String 64 - 银行账号快照
bank_clearing_no String 64 - 联行号快照
bank_location String 128 - 开户行所在地快照
供应商对账单办理记录 · dm_gls_recon_log

源码文件: GlsSuppReconLogTable.java  字段数: 14

字段名 Java 类型 长度/精度 非空 字段说明
log_id String 64 办理记录主键
bills_id String 64 正式对账单号
node_code String 32 业务节点编码
node_name String 64 - 业务节点名称
action_code String 32 操作动作
action_result String 32 - 操作结果
operator_id String 64 操作人编号
operator_name String 64 - 操作人名称
operated_at Date - 服务端办理时间
opinion String 1000 - 办理意见
return_reason String 1000 - 退回原因
round_no Integer 10,0 - 审批轮次
bill_version Long 19,0 - 操作时单据版本
tenant_id String 32 多租户编号
供应商对账单SAP原始行快照 · dm_gls_recon_sap_row

源码文件: GlsSuppReconSapRowTable.java  字段数: 57

字段名 Java 类型 长度/精度 非空 字段说明
sap_row_id String 64 正式SAP快照主键
bills_id String 64 归属正式对账单号
source_batch_id String 32 来源SAP查询批次
source_row_no Integer 10,0 来源SAP返回行序号
captured_at Date - 正式快照抓取时间
match_status String 16 - 创建时匹配状态
match_error_code String 64 - 创建时匹配错误码
match_error_message String 1000 - 创建时匹配错误说明
bsart String 4 - 采购订单类型
batxt String 20 - 采购凭证类型描述
ebeln String 10 - 采购凭证号
lifnr String 10 - SAP供应商账号
name1 String 30 - SAP供应商名称
ebelp String 5 - 采购凭证项目编号
etenr String 4 - 交货计划行号
matnr String 18 - SAP物料号
j_3asize String 8 - SAP网格值
menge BigDecimal 20,6 - 合同数量
meins String 3 - 基本计量单位
p_kbetr BigDecimal 20,6 - 订单行项目含税价
f_kbetr BigDecimal 20,6 - 可对账计划行附加费
mwskz String 2 - SAP税码编号
waers String 5 - 货币码
wemng BigDecimal 20,6 - 收货数量或总入库量
bckdz BigDecimal 20,6 - 本次可对账数量
knumv String 10 - 单据条件数
aufnr String 12 - SAP工单号
z_yfze BigDecimal 20,6 - 采购订单预付总额
z_wqyfze BigDecimal 20,6 - 采购订单未清预付额
z_bcyf BigDecimal 20,6 - 采购订单本次结预付额
z_yfrq String 18 - 预付款日期原值
ktmng BigDecimal 20,6 - 目标数量
b_yfze BigDecimal 20,6 - 备料合同预付总额
b_wqyfze BigDecimal 20,6 - 备料合同未清预付额
b_bcyf BigDecimal 20,6 - 备料合同本次结预付额原值
b_yfrq String 18 - 备料合同预付款日期原值
bednr String 10 - 需求跟踪号或备料合同号
banfn String 10 - 采购申请编号
bnfpo String 5 - 采购申请项目编号
menge_a BigDecimal 20,6 - 计算过程辅助变量A
menge_b BigDecimal 20,6 - 计算过程辅助变量B
color String 8 - 颜色编号
zcolor String 100 - 颜色描述
size_code String 8 - 尺码编号
zsize String 100 - 尺码描述
elikz String 1 - 交货完成标识
teco String 1 - 工单技术关闭标识
mtart String 4 - 物料类型
auart String 4 - 销售凭证类型
ekgrp String 3 - 采购组
mblnr String 10 物料凭证编号
mjahr String 4 - 物料凭证年度
buzei String 3 - 会计凭证行项目数
j_3aebsp String 4 - SAP计划行
bktxt String 25 - 凭证抬头文本或送货单号
firstflag String 1 - SAP单字符原始标识
dmbtr BigDecimal 20,6 - 按本位币计的金额
供应商对账单合同快照 · dm_gls_recon_contract

源码文件: GlsSuppReconTableSubContract.java  字段数: 36

字段名 Java 类型 长度/精度 非空 字段说明
billsub_id String 128 子单编号
billsub_type Integer 8 子表类型
bills_id String 64 主单编号
tenant_id String 32 租户编号
approval Integer 8 审批
create_date Date - 建立日期
create_username String 32 建立人
create_userid String 32 建立人编号
bills_handle_type BillsHandleType 32 处理类型
bills_handle_message String 512 处理类型提示信息
version Long - - 版本号
pre_version Long 3 - 上一版本号
billsub_tag String 128 - 备注
contract_bills_type String 64 SCM合同单据类型
contract_bills_id String 64 SCM合同单号
sap_contract_id String 16 - SAP合同号
contract_factory_id String 32 - 合同工厂编号
contract_supplier_outside_id String 32 - 合同供应商外部编号
has_deposit_payterm Integer 1,0 - 是否包含预付款条款
contract_due_date Date - - 合同交期
contract_signing_method String 32 - 合同签约方式
teco_group_key String 64 - TECO判定分组键
teco_status String 16 - TECO组判定结果
current_advance_amount BigDecimal 20,2 - 本次预付金额
advance_total_amount BigDecimal 20,2 - 合同预付总额
advance_open_amount BigDecimal 20,2 - 合同预付未清金额
advance_date String 18 - SAP预付款日期原值
prep_triggered Integer 1,0 - 是否触发本次备料
sap_prep_contract_id String 16 - SAP备料合同号
prep_contract_bills_id String 64 - SCM备料订单号
current_prep_amount BigDecimal 20,2 - 本次备料金额合计
prep_total_amount BigDecimal 20,2 - SAP备料总额
prep_open_amount BigDecimal 20,2 - SAP备料剩余金额
attach_sums BigDecimal 20,2 - 合同级附加费金额
attach_source_detail_id String 128 - 附加费来源明细标识
display_group_id String 64 - 附加费归属展示组
供应商对账单费用明细关系 · dm_gls_recon_fee_rel

源码文件: GlsSuppReconTableSubFeeRel.java  字段数: 32

字段名 Java 类型 长度/精度 非空 字段说明
billsub_id String 128 子单编号
billsub_type Integer 8 子表类型
bills_id String 64 主单编号
tenant_id String 32 租户编号
approval Integer 8 审批
create_date Date - 建立日期
create_username String 32 建立人
create_userid String 32 建立人编号
bills_handle_type BillsHandleType 32 处理类型
bills_handle_message String 512 处理类型提示信息
version Long - - 版本号
pre_version Long 3 - 上一版本号
billsub_tag String 128 - 备注
fee_bills_type String 64 费用单据类型
fee_bills_id String 64 费用单号
fee_detail_id String 128 费用明细标识
system_type Integer 3,0 - 费用正负类型
deduction_type String 16 - 扣款分类
extra_charge_id String 32 - 费用类型编号
sap_contract_id String 16 - 费用来源SAP合同号
contract_bills_type String 64 目标SCM合同单据类型
contract_bills_id String 64 目标SCM合同单号
display_group_id String 64 目标正式展示组编号
material_id String 32 - 费用来源统一物料标识
org_deduct_sums BigDecimal 20,2 - 原始申请金额
acc_sums BigDecimal 20,2 - 当前确认金额
acc_tag String 1024 - 费用明细备注
car_date Date - - 费用业务日期
fee_bills_tag String 1024 - 费用单主单备注
extra_link_flag Integer 1,0 - 是否由对账员额外关联
linked_by String 64 - 额外关联人编号
linked_at Date - - 额外关联时间
供应商对账单发票 · dm_gls_recon_invoice

源码文件: GlsSuppReconTableSubInvoice.java  字段数: 28

字段名 Java 类型 长度/精度 非空 字段说明
billsub_id String 128 子单编号
billsub_type Integer 8 子表类型
bills_id String 64 主单编号
tenant_id String 32 租户编号
approval Integer 8 审批
create_date Date - 建立日期
create_username String 32 建立人
create_userid String 32 建立人编号
bills_handle_type BillsHandleType 32 处理类型
bills_handle_message String 512 处理类型提示信息
version Long - - 版本号
pre_version Long 3 - 上一版本号
billsub_tag String 128 - 备注
invoice_id String 64 发票技术标识
invoice_no String 64 - 发票号码
invoice_type String 32 - 发票类型
invoice_date Date - - 开票日期
seller_name String 256 - 销售方名称
buyer_name String 256 - 购买方名称
invoice_quantity BigDecimal 20,6 - 发票数量汇总
amount_without_tax BigDecimal 20,2 - 不含税金额
tax_amount BigDecimal 20,2 - 税额
amount_with_tax BigDecimal 20,2 - 价税合计
recognition_status String 32 - OCR识别状态
confirmation_status String 32 - 发票确认状态
file_id String 128 - OSS文件标识
file_name String 256 - 上传文件名称
ocr_raw_result String - - OCR原始响应
供应商对账单发票明细 · dm_gls_recon_invoice_item

源码文件: GlsSuppReconTableSubInvoiceItem.java  字段数: 22

字段名 Java 类型 长度/精度 非空 字段说明
billsub_id String 128 子单编号
billsub_type Integer 8 子表类型
bills_id String 64 主单编号
tenant_id String 32 租户编号
approval Integer 8 审批
create_date Date - 建立日期
create_username String 32 建立人
create_userid String 32 建立人编号
bills_handle_type BillsHandleType 32 处理类型
bills_handle_message String 512 处理类型提示信息
version Long - - 版本号
pre_version Long 3 - 上一版本号
billsub_tag String 128 - 备注
invoice_id String 64 所属发票技术标识
line_no Integer 10,0 发票内行号
item_name String 256 - 货物或服务名称
item_unit String 32 - 计量单位
item_quantity BigDecimal 20,6 - 发票明细数量
item_price BigDecimal 20,6 - 发票明细单价
item_tax_ratio BigDecimal 10,6 - 发票明细税率
item_amount BigDecimal 20,2 - 发票明细不含税金额
item_tax_amount BigDecimal 20,2 - 发票明细税额
供应商对账单最细核算明细 · dm_gls_recon_num

源码文件: GlsSuppReconTableSubNum.java  字段数: 74

字段名 Java 类型 长度/精度 非空 字段说明
billsub_id String 128 子单编号
billsub_type Integer 8 子单类型
bills_id String 64 主单编号
clothing_id String 32 商品编码
style_id String 32 款式编码
color_id String 8 颜色编码
size_id String 8 尺码编码
size_order Integer 4 尺码次序
tenant_id String 32 租户编号
approval Integer 8 审批
acc_jcost BigDecimal 20,6 成本价
acc_group_jcost BigDecimal 20,6 集团加权成本价
acc_jprice BigDecimal 20,6 吊牌价
acc_lprice BigDecimal 20,6 零售现价
acc_fsums BigDecimal 20,6 实销金额
acc_xprice BigDecimal 20,6 现价
acc_xprice_receive BigDecimal 20,6 (收货)现价
acc_discount BigDecimal 20,6 折扣
acc_sprice BigDecimal 20,6 结算价
acc_sprice_receive BigDecimal 20,6 收货结算价
acc_nums BigDecimal 20,6 - 结算数量
real_nums BigDecimal 20,6 - 实际数量,或者参考数量
ref_nums BigDecimal 20,6 被参照数量
rel_nums BigDecimal 20,6 被冲单数量 零售是被参照退货数量
acc_sums BigDecimal 20,6 结算金额
acc_sums_receive BigDecimal 20,6 收货结算金额
acc_tag String 128 备注
create_date Date - 建立日期
create_username String 32 建立人
create_userid String 32 建立人编号
platform_type BillsPlatformType 32 平台类型
platform_bills_id String 64 平台单据编号
platform_goods_id String 64 平台货号
bills_handle_type BillsHandleType 32 处理类型
bills_handle_message String 512 处理类型提示信息
price_type Integer 8 明细价格类型
version Long - - 乐观锁版本字段
po_id String 64 - 成品采购订单编号
pre_version Long 3 - 上一版本号
item_row_id String 8 - 明细主行号
item_sub_row_id String 8 - 明细子行号
sap_row_id String 64 正式SAP原始行快照主键
recon_contract_id String 128 正式合同快照子表编号
sap_contract_id String 16 - SAP合同号
sap_make_id String 16 - SAP工单号
mblnr String 10 SAP物料凭证号
source_row_no Integer 10,0 来源SAP返回行序号
matched_sku_id String 32 命中的统一SKU编号
display_group_id String 64 正式展示归集组编号
matched_detail_id String 128 命中的SCM合同明细标识
pdm_material_supp_id String 32 - PDM供应商物料编号
scm_acc_sprice BigDecimal 20,6 - SCM合同明细结算价
scm_unit_ratio BigDecimal 20,6 - SCM合同明细单位比例
sap_compare_price BigDecimal 20,6 - SAP价格核对值
scm_compare_price BigDecimal 20,6 - SCM归一化价格核对值
contract_nums BigDecimal 20,6 - SCM合同数量
contract_sums BigDecimal 20,2 - SCM合同金额
contract_total_indepot_nums BigDecimal 20,6 - SCM合同累计入库数量
indepot_nums BigDecimal 20,6 - 本次入库数量
indepot_sums BigDecimal 20,2 - 本次入库金额
attach_sums BigDecimal 20,2 - 展示组附加费
prep_triggered Integer 1,0 - 是否触发本次备料计算
prep_contract_bills_id String 64 - SCM备料订单号
prep_material_id String 32 - SCM备料物料编号
prep_item_row_id String 8 - SCM备料订单明细行号
prep_acc_sprice BigDecimal 20,6 - SCM备料订单结算价
prep_unit_ratio BigDecimal 20,6 - SCM备料订单单位比例
current_prep_amount BigDecimal 20,2 - 本次备料金额
contract_due_date Date - - 合同交期
supp_delivery_no String 64 - 供应商送货单号
supp_delivery_date Date - - 供应商送货日期
delay_days Integer 10,0 - 延期自然日数
delay_deduction_rate BigDecimal 10,6 - 延期扣款比例
quality_opinion String 1000 - 质检意见