Skip to content

Commit

Permalink
Merge pull request #351 from Jzow/master
Browse files Browse the repository at this point in the history
Add business data objects that need to be exported to the finance module
  • Loading branch information
Jzow authored Aug 1, 2024
2 parents 3753c4b + 3f94b6b commit a246cae
Show file tree
Hide file tree
Showing 39 changed files with 1,943 additions and 382 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo;
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright 2024-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CollectionDataExportEnBO {

@ExcelExport(value = "Customer")
private String customerName;

@ExcelExport(value = "Receipt Number")
private String receiptNumber;

@ExcelExport(value = "Sale Receipt Number")
private String saleReceiptNumber;

@ExcelExport(value = "Receivable Arrears")
private BigDecimal receivableArrears;

@ExcelExport(value = "Received Arrears")
private BigDecimal receivedArrears;

@ExcelExport(value = "ThisC ollection Amount")
private BigDecimal thisCollectionAmount;

@ExcelExport(value = "Remark")
private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Copyright 2024-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
public class CollectionExportBO {

private Long id;

@ExcelExport(value = "客户")
private String customerName;

@ExcelExport(value = "单据编号")
private String receiptNumber;

@ExcelExport(value = "单据日期")
private LocalDateTime receiptDate;

@ExcelExport(value = "财务人员")
private String financialPerson;

@ExcelExport(value = "收款账户")
private String collectionAccountName;

@ExcelExport(value = "合计收款")
private BigDecimal totalCollectionAmount;

@ExcelExport(value = "优惠金额")
private BigDecimal discountAmount;

@ExcelExport(value = "实际收款")
private BigDecimal actualCollectionAmount;

@ExcelExport(value = "备注")
private String remark;

@ExcelExport(value = "状态", kv = "0:未审核;1:已审核")
private Integer status;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Copyright 2024-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
public class CollectionExportEnBO {

private Long id;

@ExcelExport(value = "Customer")
private String customerName;

@ExcelExport(value = "Receipt Number")
private String receiptNumber;

@ExcelExport(value = "Receipt Date")
private LocalDateTime receiptDate;

@ExcelExport(value = "Financial Person")
private String financialPerson;

@ExcelExport(value = "Collection Account")
private String collectionAccountName;

@ExcelExport(value = "Total Collection Amount")
private BigDecimal totalCollectionAmount;

@ExcelExport(value = "Discount Amount")
private BigDecimal discountAmount;

@ExcelExport(value = "Actual Collection Amount")
private BigDecimal actualCollectionAmount;

@ExcelExport(value = "Remark")
private String remark;

@ExcelExport(value = "Status", kv = "0-Unaudited;1-Audited;")
private Integer status;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright 2024-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
public class ExpenseExportBO {

private Long id;

@ExcelExport(value = "往来单位/人员")
private String name;

@ExcelExport(value = "单据编号")
private String receiptNumber;

@ExcelExport(value = "单据日期")
private LocalDateTime receiptDate;

@ExcelExport(value = "财务人员")
private String financialPerson;

@ExcelExport(value = "支出账户")
private String expenseAccountName;

@ExcelExport(value = "支出金额")
private BigDecimal expenseAmount;

@ExcelExport(value = "备注")
private String remark;

@ExcelExport(value = "状态", kv = "0-未审核;1-已审核")
private Integer status;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright 2024-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
public class ExpenseExportEnBO {

private Long id;

@ExcelExport(value = "Name")
private String name;

@ExcelExport(value = "Receipt Number")
private String receiptNumber;

@ExcelExport(value = "Receipt Date")
private LocalDateTime receiptDate;

@ExcelExport(value = "Financial Person")
private String financialPerson;

@ExcelExport(value = "Expense Account")
private String expenseAccountName;

@ExcelExport(value = "Expense Amount")
private BigDecimal expenseAmount;

@ExcelExport(value = "Remark")
private String remark;

@ExcelExport(value = "Status", kv = "0-Unaudited;1-Audited;")
private Integer status;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo;
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright 2024-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class IncomeExpenseDataExportEnBO {

@ExcelExport(value = "Receipt Number")
private String receiptNumber;

@ExcelExport(value = "Related Person")
private String relatedPerson;

@ExcelExport(value = "Income Expense")
private String incomeExpenseName;

@ExcelExport(value = "Amount")
private BigDecimal incomeExpenseAmount;

@ExcelExport(value = "Remark")
private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright 2024-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.bo.financial;

import com.wansenai.utils.excel.ExcelExport;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
public class IncomeExportBO {

private Long id;

// supplier or customer or member
@ExcelExport(value = "往来单位/人员")
private String name;

@ExcelExport(value = "单据编号")
private String receiptNumber;

@ExcelExport(value = "单据日期")
private LocalDateTime receiptDate;

@ExcelExport(value = "财务人员")
private String financialPerson;

@ExcelExport(value = "收入账户")
private String incomeAccountName;

@ExcelExport(value = "收入金额")
private BigDecimal incomeAmount;

@ExcelExport(value = "备注")
private String remark;

@ExcelExport(value = "状态", kv = "0-未审核;1-已审核")
private Integer status;
}
Loading

0 comments on commit a246cae

Please sign in to comment.