-- 配置销售出库单红字（已确认数量、已确认基本数量、未确认数量、未确认基本数量）
IF NOT EXISTS (SELECT 1 FROM t_im_fieldsettingentry WHERE fentryid = 1514100997054894080)
INSERT INTO t_im_fieldsettingentry (fid, fentryid, fseq, ffieldname, ffield, fentryentityid, ffullfield, fisinverse) VALUES(757170965427079168, 1514100997054894080, 28, '物料明细.已确认基本数量', 'joincfmbaseqty', 'billentry', 'billentry.joincfmbaseqty', '1');
IF NOT EXISTS (SELECT 1 FROM t_im_fieldsettingentry WHERE fentryid = 1514100997054894081)
INSERT INTO t_im_fieldsettingentry (fid, fentryid, fseq, ffieldname, ffield, fentryentityid, ffullfield, fisinverse) VALUES(757170965427079168, 1514100997054894081, 29, '物料明细.已确认数量', 'joincfmqty', 'billentry', 'billentry.joincfmqty', '1');
IF NOT EXISTS (SELECT 1 FROM t_im_fieldsettingentry WHERE fentryid = 1514100997054894082)
INSERT INTO t_im_fieldsettingentry (fid, fentryid, fseq, ffieldname, ffield, fentryentityid, ffullfield, fisinverse) VALUES(757170965427079168, 1514100997054894082, 30, '物料明细.未确认基本数量', 'remaincfmbaseqty', 'billentry', 'billentry.remaincfmbaseqty', '1');
IF NOT EXISTS (SELECT 1 FROM t_im_fieldsettingentry WHERE fentryid = 1514100997054894083)
INSERT INTO t_im_fieldsettingentry (fid, fentryid, fseq, ffieldname, ffield, fentryentityid, ffullfield, fisinverse) VALUES(757170965427079168, 1514100997054894083, 31, '物料明细.未确认数量', 'remaincfmqty', 'billentry', 'billentry.remaincfmqty', '1');
