This commit is contained in:
parent
bb9e2129e8
commit
9ad5ee7f87
|
|
@ -60,11 +60,12 @@ public class MaterialInBillSubmitValidatorOp extends AbstractOperationServicePlu
|
||||||
boolean hasNonSpecialInvoice = false;
|
boolean hasNonSpecialInvoice = false;
|
||||||
for (DynamicObject entryEntity : entryEntityCollection) {
|
for (DynamicObject entryEntity : entryEntityCollection) {
|
||||||
DynamicObject invoice = entryEntity.getDynamicObject("zcgj_invoice"); // 发票号码
|
DynamicObject invoice = entryEntity.getDynamicObject("zcgj_invoice"); // 发票号码
|
||||||
|
boolean zcgj_freight_invoice = entryEntity.getBoolean("zcgj_freight_invoice");//运费发票
|
||||||
if (invoice == null) continue;
|
if (invoice == null) continue;
|
||||||
DynamicObject invoiceTypeId = invoice.getDynamicObject("invoicetypeid"); // 发票类型
|
DynamicObject invoiceTypeId = invoice.getDynamicObject("invoicetypeid"); // 发票类型
|
||||||
if (invoiceTypeId == null) continue;
|
if (invoiceTypeId == null) continue;
|
||||||
String invoiceTypeIdName = invoiceTypeId.getString("name");
|
String invoiceTypeIdName = invoiceTypeId.getString("name");
|
||||||
if (!invoiceTypeIdName.contains("专")) {
|
if (!invoiceTypeIdName.contains("专") && !zcgj_freight_invoice) {
|
||||||
hasNonSpecialInvoice = true;
|
hasNonSpecialInvoice = true;
|
||||||
for (DynamicObject entryEntity2 : entryEntity2Collection) {
|
for (DynamicObject entryEntity2 : entryEntity2Collection) {
|
||||||
DynamicObject entryTaxRate = entryEntity2.getDynamicObject("entrytaxrate"); // 税率名称
|
DynamicObject entryTaxRate = entryEntity2.getDynamicObject("entrytaxrate"); // 税率名称
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue