-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #351 from Jzow/master
Add business data objects that need to be exported to the finance module
- Loading branch information
Showing
39 changed files
with
1,943 additions
and
382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
core/domain/src/main/java/com/wansenai/bo/financial/CollectionDataExportEnBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
57 changes: 57 additions & 0 deletions
57
core/domain/src/main/java/com/wansenai/bo/financial/CollectionExportBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
57 changes: 57 additions & 0 deletions
57
core/domain/src/main/java/com/wansenai/bo/financial/CollectionExportEnBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
51 changes: 51 additions & 0 deletions
51
core/domain/src/main/java/com/wansenai/bo/financial/ExpenseExportBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
51 changes: 51 additions & 0 deletions
51
core/domain/src/main/java/com/wansenai/bo/financial/ExpenseExportEnBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
core/domain/src/main/java/com/wansenai/bo/financial/IncomeExpenseDataExportEnBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
52 changes: 52 additions & 0 deletions
52
core/domain/src/main/java/com/wansenai/bo/financial/IncomeExportBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.