入库单优化提交校验

This commit is contained in:
xuhaihui 2025-12-29 18:25:12 +08:00
parent 4ea564dc5d
commit 2fa35aca26
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import java.math.BigDecimal;
/** /**
* 入库单提交操作校验插件 * 入库单提交操作校验插件
* 说明1:校验存在发票时看无运费发票按钮是否开启不开启校验含运费金额开启只校验金额 * 说明1:校验存在发票时看无运费发票按钮是否开启不开启校验含运费金额开启只校验金额
* 2:上传的发票中含有普票时提交时校验入库单明细中必须有增值税0%的税率 * 2:上传的发票中含有普票时提交时校验入库单明细中必须有增值税0%的税率废弃
*/ */
public class MaterialInBillSubmitValidatorOp extends AbstractOperationServicePlugIn { public class MaterialInBillSubmitValidatorOp extends AbstractOperationServicePlugIn {
public void onPreparePropertys(PreparePropertysEventArgs e) { public void onPreparePropertys(PreparePropertysEventArgs e) {
@ -76,9 +76,9 @@ public class MaterialInBillSubmitValidatorOp extends AbstractOperationServicePlu
} }
} }
} }
if (hasNonSpecialInvoice && zeroTaxRateEntryCount == 0) { /* if (hasNonSpecialInvoice && zeroTaxRateEntryCount == 0) {
this.addFatalErrorMessage(extendedDataEntity, "系统检测到上传的发票中存在普通发票入库单明细中凡是涉及普票的物资”税率名称“请选择”增值税0%”!!"); this.addFatalErrorMessage(extendedDataEntity, "系统检测到上传的发票中存在普通发票入库单明细中凡是涉及普票的物资”税率名称“请选择”增值税0%”!!");
} }*/
if (!zcgj_no_invoice && entryEntity2Collection != null && entryEntity2Collection.size() > 0) { if (!zcgj_no_invoice && entryEntity2Collection != null && entryEntity2Collection.size() > 0) {