From 9aa97824261f37ca0177db29db3fd8eae34d1249 Mon Sep 17 00:00:00 2001 From: dengwc Date: Sun, 7 Apr 2024 17:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E6=98=8E=E7=BB=86=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=98=A0=E5=B0=84=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order_record/LyOrderRecordExtensionFactory.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/chint/domain/factoriy/order_record/LyOrderRecordExtensionFactory.java b/src/main/java/com/chint/domain/factoriy/order_record/LyOrderRecordExtensionFactory.java index 12eb5dbf..96f296c1 100644 --- a/src/main/java/com/chint/domain/factoriy/order_record/LyOrderRecordExtensionFactory.java +++ b/src/main/java/com/chint/domain/factoriy/order_record/LyOrderRecordExtensionFactory.java @@ -226,7 +226,7 @@ public class LyOrderRecordExtensionFactory implements OrderRecordExtensionFactor .setRoomRate(String.valueOf(lyOrderHotelRecord.getTotalRoomPrice())) //房费(订单总额减总服务费) .setNoTaxAmt("") //不含税价 .setTaxAmt("") //税费 - .setInvoiceType("") //供应商发票类型 + .setInvoiceType(readInvoiceType(lyOrderHotelRecord.getCustomerInvoiceType())) //供应商发票类型 .setInvoiceFee("") //开票手续费 .setCustodayFee("") //托管费 .setNoTaxCusFee("") //托管费不含税 @@ -623,4 +623,12 @@ public class LyOrderRecordExtensionFactory implements OrderRecordExtensionFactor }; } + //供应商发票类型 + public String readInvoiceType(Integer type) { + return switch (type) { + case 0 -> "增值税普通发票"; + case 1 -> "增值税专用发票"; + default -> "未知发票"; + }; + } }