餐位费 显示单价
This commit is contained in:
@@ -194,7 +194,7 @@ public class YxyPrinter extends PrinterHandler implements PrinterImpl {
|
|||||||
printInfoDTO.setPrintTitle(printInfoDTO.getPrintTitle());
|
printInfoDTO.setPrintTitle(printInfoDTO.getPrintTitle());
|
||||||
if (orderInfo.getSeatNum() != null && orderInfo.getSeatAmount().compareTo(BigDecimal.ZERO) > 0) {
|
if (orderInfo.getSeatNum() != null && orderInfo.getSeatAmount().compareTo(BigDecimal.ZERO) > 0) {
|
||||||
printInfoDTO.setSeatNum(orderInfo.getSeatNum().toString());
|
printInfoDTO.setSeatNum(orderInfo.getSeatNum().toString());
|
||||||
printInfoDTO.setSeatAmount(orderInfo.getSeatAmount().toPlainString());
|
printInfoDTO.setSeatAmount(orderInfo.getSeatAmount().divide(BigDecimal.valueOf(orderInfo.getSeatNum()), 2, RoundingMode.DOWN).toPlainString());
|
||||||
}
|
}
|
||||||
if (orderInfo.getPackFee().compareTo(BigDecimal.ZERO) > 0) {
|
if (orderInfo.getPackFee().compareTo(BigDecimal.ZERO) > 0) {
|
||||||
printInfoDTO.setPackFee(orderInfo.getPackFee().toPlainString());
|
printInfoDTO.setPackFee(orderInfo.getPackFee().toPlainString());
|
||||||
|
|||||||
Reference in New Issue
Block a user