gaoluyang
3 天以前 d39e4f7d839167c16425086dfa2f8747bccfdff9
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package cn.iocoder.yudao.module.erp.controller.admin.purchase.vo.statement;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
 
@Schema(description = "管理后台 - 供应商往来 Response VO")
@Data
public class ErpSupplierStatementRespVO {
 
    @Schema(description = "供应商编号")
    private Long supplierId;
 
    @Schema(description = "供应商名称")
    private String supplierName;
 
    @Schema(description = "汇总")
    private Summary summary;
 
    @Schema(description = "采购订单流水")
    private List<OrderRow> orders;
 
    @Schema(description = "来票流水")
    private List<InvoiceRow> invoices;
 
    @Schema(description = "付款流水")
    private List<PaymentRow> payments;
 
    @Schema(description = "往来汇总")
    @Data
    public static class Summary {
 
        @Schema(description = "累计采购额")
        private BigDecimal totalPurchaseAmount;
 
        @Schema(description = "累计开票额")
        private BigDecimal totalInvoiceAmount;
 
        @Schema(description = "累计付款额")
        private BigDecimal totalPaymentAmount;
 
        @Schema(description = "未付余额(开票 - 付款)")
        private BigDecimal unpaidAmount;
 
    }
 
    @Schema(description = "采购订单流水")
    @Data
    public static class OrderRow {
 
        private Long id;
        private String no;
        private LocalDateTime orderTime;
        private BigDecimal orderAmount;
        private BigDecimal invoicedAmount;
        private BigDecimal uninvoicedAmount;
        private Integer status;
        private Integer inStatus;
 
    }
 
    @Schema(description = "来票流水")
    @Data
    public static class InvoiceRow {
 
        private Long id;
        private String no;
        private String invoiceNo;
        private LocalDateTime invoiceTime;
        private BigDecimal invoiceAmount;
        private BigDecimal paidAmount;
        private BigDecimal remainingPayable;
        private Integer paymentStatus;
        private Long purchaseOrderId;
        private String purchaseOrderNo;
 
    }
 
    @Schema(description = "付款流水")
    @Data
    public static class PaymentRow {
 
        private Long id;
        private String no;
        private LocalDateTime paymentTime;
        private BigDecimal paymentAmount;
        private Integer status;
        private Long invoiceId;
        private String invoiceNo;
 
    }
 
}