fix: 补充金蝶税率编码映射全量税率档案(2/5/8/999)

This commit is contained in:
刘泉佳
2026-11-05 16:14:45 +08:00
parent 3ea247f053
commit b603fa9b38
3 changed files with 18 additions and 2 deletions
@@ -149,17 +149,23 @@ public class BfiProperties {
private Material material = new Material();
/**
* 金蝶税率编码映射(A102-2 财务应付单分录 taxrateid_number):税率数值 -> 金蝶税率.编码(如 9 -> V9),
* 键为税率数值文本(如 "9"、"6.5"),推送时按分录税率查表;未维护该税率时直接拦截报错;
* 金蝶税率编码映射(应付/应收/收票单分录 taxrateid_number):税率数值 -> 金蝶税率.编码(如 9 -> V9),
* 键为税率数值文本(如 "9"、"6.5"),全量对齐金蝶税率档案(V0~V13 及不涉及税率 V999),
* 推送时按分录税率查表;未维护该税率时直接拦截报错;
* 分录无税率(计费方案未配置税率组/残差组/手动结算合计费用行)时税率与税率编码均不送
*/
private Map<String, String> taxrate = new LinkedHashMap<>() {{
put("0", "V0");
put("1", "V1");
put("2", "V2");
put("3", "V3");
put("5", "V5");
put("6", "V6");
put("8", "V8");
put("9", "V9");
put("13", "V13");
// 不涉及税率(金蝶税率档案 V999),常规税率取不到该值,保留兜底
put("999", "V999");
}};
/**