This commit is contained in:
parent
bb9e2129e8
commit
9ad5ee7f87
|
|
@ -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"); // 税率名称
|
||||
|
|
|
|||
Loading…
Reference in New Issue