P15GEN2\59518
2025-10-10 9f6890646993d16260d4201d613c092132856127
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package foundation.icall.callout.ai;
 
public enum InvoiceStatus {
    normal("0"),             // 正常
    outOfControl("1"),        // 失控
    invalid("2"),            //作废
    redOffset("3"),            //红冲
    exceptional("4"),        //异常
    abnormal("5"),             //非正常
    redInvoice("6") ,        //红字发票待确认
    partialRedOffset("7"),    //部分红冲
    allRedOffsets("8") ,        //全部红冲
    notKnow("notKnow")
    ;
    
    private String code;
 
    private InvoiceStatus(String code) {
        this.code = code;
    }
    
    
    public String getCode() {
        return code;
    }
 
 
    public static InvoiceStatus parse(String code) {
        for(InvoiceStatus invoiceStatus : InvoiceStatus.values()) {
            if(invoiceStatus.code.equalsIgnoreCase(code)) {
                return invoiceStatus;
            }
        }
        return notKnow;
    }
    
}