

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for fin_payment_advance_refund_transfer_apply_detail
-- ----------------------------
DROP TABLE IF EXISTS `fin_payment_advance_refund_transfer_apply_detail`;
CREATE TABLE `fin_payment_advance_refund_transfer_apply_detail`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID主键',
  `item_no` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '行号',
  `po_code` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采购订单号',
  `po_item_no` varchar(6) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单行号',
  `app_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预付款申请单号',
  `app_item_no` varchar(6) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预付款申请单行',
  `purchaser` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '采购员',
  `po_num` decimal(11, 2) NULL DEFAULT NULL COMMENT '订单数量',
  `factory_code` varchar(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单行工厂编码',
  `material_code` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料编码',
  `material_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '物料描述',
  `tax_code` varchar(5) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '税率代码',
  `tax_desc` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '税率描述',
  `it_price` decimal(20, 6) NULL DEFAULT NULL COMMENT '含税单价',
  `nt_price` decimal(20, 6) NULL DEFAULT NULL COMMENT '未税单价',
  `it_amount` decimal(20, 6) NULL DEFAULT NULL COMMENT '订单含税金额',
  `prepayment_amount_inclusive_tax` decimal(20, 0) NULL DEFAULT NULL COMMENT '已付预付款含税金额',
  `payment_condition_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '付款条件编码',
  `payment_condition_desc` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '付款条件描述',
  `customs_broker` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报关公司',
  `summary` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '摘要',
  `refer_purchase_order` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参考订单号（转单时必填）',
  `refer_purchase_order_item` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参考订单行号（转单时必填）',
  `payment_change_number` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预付款变更编号',
  `payment_change_id` bigint(20) NULL DEFAULT NULL COMMENT '预付款变更id',
  `data_key` varchar(80) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '预付款单号_预付款行号',
  `the_regist_tax_amount` decimal(20, 6) NULL DEFAULT NULL COMMENT '本次登记含税金额',
  `cant_regist_tax_amount` decimal(20, 6) NULL DEFAULT NULL COMMENT '可登记含税金额',
  `prepaid_tax_amount` decimal(20, 6) NULL DEFAULT NULL COMMENT '已付预付款含税金额',
  `already_apply_amount` decimal(20, 6) NULL DEFAULT NULL COMMENT '已冲账含税金额',
  `regist_tax_amount` decimal(20, 6) NULL DEFAULT NULL COMMENT '已登记含税金额',
  `delete_flag` int(1) NULL DEFAULT NULL COMMENT '0未删除1已删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 112 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
