Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add English message return support for the warehouse module #350

Merged
merged 4 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* 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.warehouse;

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

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

@Data
@Builder
public class AllotReceiptExportBO {

private Long id;

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

@ExcelExport(value = "商品信息")
private String productInfo;

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

@ExcelExport(value = "商品数量")
private Integer productNumber;

@ExcelExport(value = "金额合计")
private BigDecimal totalAmount;

@ExcelExport(value = "操作员")
private String operator;

@ExcelExport(value = "状态", kv = "0-未审核;1-已审核")
private Integer status;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* 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.warehouse;

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

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

@Data
@Builder
public class AllotReceiptExportEnBO {

private Long id;

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

@ExcelExport(value = "Product Info")
private String productInfo;

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

@ExcelExport(value = "Quantity")
private Integer productNumber;

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

@ExcelExport(value = "Operator")
private String operator;

@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.warehouse;

import com.wansenai.utils.excel.ExcelExport;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.warehouse;

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 AllotStockDataExportEnBO {

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

@ExcelExport(value = "Transfer Out Warehouse")
private String warehouseName;

@ExcelExport(value = "Transfer In Warehouse")
private String otherWarehouseName;

@ExcelExport(value = "BarCode")
private String barCode;

@ExcelExport(value = "Product Name")
private String productName;

@ExcelExport(value = "Standard")
private String productStandard;

@ExcelExport(value = "Model")
private String productModel;

@ExcelExport(value = "Unit")
private String productUnit;

@ExcelExport(value = "Stock")
private Integer stock;

@ExcelExport(value = "Quantity")
private Integer productNumber;

@ExcelExport(value = "Unit Price")
private BigDecimal unitPrice;

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

@ExcelExport(value = "Remark")
private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* 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.warehouse;

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

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

@Data
@Builder
public class AssembleReceiptExportBO {

private Long id;

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

@ExcelExport(value = "商品信息")
private String productInfo;

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

@ExcelExport(value = "商品数量")
private Integer productNumber;

@ExcelExport(value = "金额合计")
private BigDecimal totalAmount;

@ExcelExport(value = "操作员")
private String operator;

@ExcelExport(value = "状态", kv = "0-未审核;1-已审核")
private Integer status;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* 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.warehouse;

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

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

@Data
@Builder
public class AssembleReceiptExportEnBO {

private Long id;

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

@ExcelExport(value = "Product Info")
private String productInfo;

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

@ExcelExport(value = "Quantity")
private Integer productNumber;

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

@ExcelExport(value = "Operator")
private String operator;

@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.warehouse;

import com.wansenai.utils.excel.ExcelExport;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.warehouse;

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 AssembleStockDataExportEnBO {

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

@ExcelExport("Product Type")
private String type;

@ExcelExport("Warehouse")
private String warehouseName;

@ExcelExport("BarCode")
private String barCode;

@ExcelExport("Product Name")
private String productName;

@ExcelExport("Standard")
private String productStandard;

@ExcelExport("Model")
private String productModel;

@ExcelExport("Unit")
private String productUnit;

@ExcelExport("Stock")
private Integer stock;

@ExcelExport("Quantity")
private Integer productNumber;

@ExcelExport("Unit Price")
private BigDecimal unitPrice;

@ExcelExport("Amount")
private BigDecimal amount;

@ExcelExport("Remark")
private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* 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.warehouse;

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

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

@Data
@Builder
public class DisassembleReceiptExportBO {

private Long id;

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

@ExcelExport(value = "商品信息")
private String productInfo;

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

@ExcelExport(value = "商品数量")
private Integer productNumber;

@ExcelExport(value = "金额合计")
private BigDecimal totalAmount;

@ExcelExport(value = "操作员")
private String operator;

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