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 -> "未知发票"; + }; + } }