mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-30 01:38:43 +08:00 
			
		
		
		
	✨ ERP:采购入库 100%
This commit is contained in:
		| @@ -68,8 +68,8 @@ public class ErpPurchaseInRespVO { | |||||||
|     @Schema(description = "定金金额,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "7127") |     @Schema(description = "定金金额,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "7127") | ||||||
|     private BigDecimal otherPrice; |     private BigDecimal otherPrice; | ||||||
|  |  | ||||||
|     @Schema(description = "本次收款,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "7127") |     @Schema(description = "本次付款,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "7127") | ||||||
|     private BigDecimal payPrice; |     private BigDecimal refundPrice; | ||||||
|     @Schema(description = "本次欠款,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |     @Schema(description = "本次欠款,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") | ||||||
|     private BigDecimal debtPrice; |     private BigDecimal debtPrice; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -32,9 +32,9 @@ public class ErpPurchaseInSaveReqVO { | |||||||
|     @Schema(description = "其它金额,单位:元", example = "7127") |     @Schema(description = "其它金额,单位:元", example = "7127") | ||||||
|     private BigDecimal otherPrice; |     private BigDecimal otherPrice; | ||||||
|  |  | ||||||
|     @Schema(description = "本次收款,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "7127") |     @Schema(description = "本次付款,单位:元", requiredMode = Schema.RequiredMode.REQUIRED, example = "7127") | ||||||
|     @NotNull(message = "本次收款不能为空") |     @NotNull(message = "本次付款不能为空") | ||||||
|     private BigDecimal payPrice; |     private BigDecimal refundPrice; | ||||||
|  |  | ||||||
|     @Schema(description = "附件地址", example = "https://www.iocoder.cn") |     @Schema(description = "附件地址", example = "https://www.iocoder.cn") | ||||||
|     private String fileUrl; |     private String fileUrl; | ||||||
|   | |||||||
| @@ -107,9 +107,9 @@ public class ErpPurchaseInDO extends BaseDO { | |||||||
|     /** |     /** | ||||||
|      * 本次收款,单位:元 |      * 本次收款,单位:元 | ||||||
|      * |      * | ||||||
|      * payPrice = totalPrice + otherPrice - debtPrice |      * refundPrice = totalPrice + otherPrice - debtPrice | ||||||
|      */ |      */ | ||||||
|     private BigDecimal payPrice; |     private BigDecimal refundPrice; | ||||||
|     /** |     /** | ||||||
|      * 本次欠款,单位:元 |      * 本次欠款,单位:元 | ||||||
|      */ |      */ | ||||||
|   | |||||||
| @@ -143,7 +143,7 @@ public class ErpPurchaseInServiceImpl implements ErpPurchaseInService { | |||||||
|         purchaseIn.setTotalPrice(purchaseIn.getTotalPrice().subtract(purchaseIn.getDiscountPrice())); |         purchaseIn.setTotalPrice(purchaseIn.getTotalPrice().subtract(purchaseIn.getDiscountPrice())); | ||||||
|         // 计算应收金额 |         // 计算应收金额 | ||||||
|         BigDecimal allPrice = purchaseIn.getTotalPrice().add(purchaseIn.getOtherPrice()); |         BigDecimal allPrice = purchaseIn.getTotalPrice().add(purchaseIn.getOtherPrice()); | ||||||
|         purchaseIn.setDebtPrice(allPrice.subtract(purchaseIn.getPayPrice())); |         purchaseIn.setDebtPrice(allPrice.subtract(purchaseIn.getRefundPrice())); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     private void updatePurchaseOrderInCount(Long orderId) { |     private void updatePurchaseOrderInCount(Long orderId) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV