退款单
This commit is contained in:
@@ -271,12 +271,13 @@ public class PrintConfig implements ApplicationRunner {
|
|||||||
*/
|
*/
|
||||||
public void refundOrderHandler(String printTitle, String operator, String refundAmount, String refundReason, String refundType,
|
public void refundOrderHandler(String printTitle, String operator, String refundAmount, String refundReason, String refundType,
|
||||||
OrderInfo orderInfo, List<OrderDetail> detailList) {
|
OrderInfo orderInfo, List<OrderDetail> detailList) {
|
||||||
sendOrderPrintMsg(orderInfo.getShopId(), orderInfo.getId(), null, PrinterHandler.PrintTypeEnum.RETURN_ORDER + "", detailList, operator);
|
|
||||||
//前台退菜单
|
//前台退菜单
|
||||||
if ("退菜单".equals(printTitle)) {
|
if ("退菜单".equals(printTitle)) {
|
||||||
|
sendOrderPrintMsg(orderInfo.getShopId(), orderInfo.getId(), null, PrinterHandler.PrintTypeEnum.RETURN_ORDER + "", detailList, operator);
|
||||||
getPrintMachine(orderInfo.getShopId(), PrinterHandler.PrintTypeEnum.RETURN_ORDER).forEach(machine ->
|
getPrintMachine(orderInfo.getShopId(), PrinterHandler.PrintTypeEnum.RETURN_ORDER).forEach(machine ->
|
||||||
getPrinter(machine.getBrand()).returnOrderPrint(printTitle, operator, refundAmount, refundReason, refundType, orderInfo, machine, detailList));
|
getPrinter(machine.getBrand()).returnOrderPrint(printTitle, operator, refundAmount, refundReason, refundType, orderInfo, machine, detailList));
|
||||||
} else if ("退款单".equals(printTitle)) {
|
} else if ("退款单".equals(printTitle)) {
|
||||||
|
sendOrderPrintMsg(orderInfo.getShopId(), orderInfo.getId(), null, PrinterHandler.PrintTypeEnum.REFUND_ORDER + "", detailList, operator);
|
||||||
getPrintMachine(orderInfo.getShopId(), PrinterHandler.PrintTypeEnum.REFUND_ORDER).forEach(machine -> {
|
getPrintMachine(orderInfo.getShopId(), PrinterHandler.PrintTypeEnum.REFUND_ORDER).forEach(machine -> {
|
||||||
PrinterHandler printer = getPrinter(machine.getBrand());
|
PrinterHandler printer = getPrinter(machine.getBrand());
|
||||||
machine.setVolumeSwitch(0);
|
machine.setVolumeSwitch(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user