预结算单金额
This commit is contained in:
@@ -174,14 +174,6 @@ public class YxyPrinter extends PrinterHandler implements PrinterImpl {
|
||||
|
||||
printInfoDTO.setOriginalAmount((orderInfo.getOriginAmount().add(orderInfo.getSeatAmount()).add(orderInfo.getPackFee())).toPlainString());
|
||||
if (isPre) {
|
||||
// 设置支付金额为 订单原价-订单优惠金额
|
||||
printInfoDTO.setPayAmount((new BigDecimal(printInfoDTO.getOriginalAmount()).subtract(new BigDecimal(printInfoDTO.getDiscountAmount()))).toPlainString());
|
||||
|
||||
BigDecimal refundAmount = BigDecimal.ZERO;
|
||||
for (OrderDetail orderDetail : detailList) {
|
||||
refundAmount = refundAmount.add(orderDetail.getReturnAmount());
|
||||
}
|
||||
printInfoDTO.setOriginalAmount((orderInfo.getOriginAmount().add(orderInfo.getSeatAmount()).add(orderInfo.getPackFee()).subtract(refundAmount)).toPlainString());
|
||||
printInfoDTO.setPayAmount(printInfoDTO.getOriginalAmount());
|
||||
}
|
||||
printInfoDTO.setPrintTitle(printInfoDTO.getPrintTitle());
|
||||
|
||||
Reference in New Issue
Block a user