This commit is contained in:
xuhaihui 2025-11-20 18:15:49 +08:00
parent bb9e2129e8
commit 9ad5ee7f87
1 changed files with 2 additions and 1 deletions

View File

@ -60,11 +60,12 @@ public class MaterialInBillSubmitValidatorOp extends AbstractOperationServicePlu
boolean hasNonSpecialInvoice = false;
for (DynamicObject entryEntity : entryEntityCollection) {
DynamicObject invoice = entryEntity.getDynamicObject("zcgj_invoice"); // 发票号码
boolean zcgj_freight_invoice = entryEntity.getBoolean("zcgj_freight_invoice");//运费发票
if (invoice == null) continue;
DynamicObject invoiceTypeId = invoice.getDynamicObject("invoicetypeid"); // 发票类型
if (invoiceTypeId == null) continue;
String invoiceTypeIdName = invoiceTypeId.getString("name");
if (!invoiceTypeIdName.contains("")) {
if (!invoiceTypeIdName.contains("") && !zcgj_freight_invoice) {
hasNonSpecialInvoice = true;
for (DynamicObject entryEntity2 : entryEntity2Collection) {
DynamicObject entryTaxRate = entryEntity2.getDynamicObject("entrytaxrate"); // 税率名称