入库单优化
This commit is contained in:
parent
3533ebc274
commit
91c33e4536
|
|
@ -338,6 +338,7 @@ public class MaterialInbPurchaseApplyPlugin extends AbstractBillPlugIn implement
|
|||
if (newValue != null && zcgj_yssupplier != null) {
|
||||
DynamicObject invoice = (DynamicObject) newValue;
|
||||
int rowIndex = changeData.getRowIndex();
|
||||
DynamicObject dataEntity = changeData.getDataEntity();
|
||||
DynamicObject seller = invoice.getDynamicObject("seller");//发票号码-销售方
|
||||
if (seller != null) {
|
||||
if (seller.getString("number").equals(zcgj_yssupplier.getString("number"))) {
|
||||
|
|
@ -348,6 +349,14 @@ public class MaterialInbPurchaseApplyPlugin extends AbstractBillPlugIn implement
|
|||
} else {
|
||||
this.getModel().setValue("zcgj_freight_invoice", false, rowIndex);//运费发票
|
||||
}
|
||||
DynamicObject invoiceTypeId = invoice.getDynamicObject("invoicetypeid");
|
||||
if (invoiceTypeId != null) {
|
||||
String invoiceTypeIdName = invoiceTypeId.getString("name");
|
||||
if (!invoiceTypeIdName.contains("专")) {
|
||||
this.getModel().setValue("zcgj_invoicetax", BigDecimal.ZERO, rowIndex);
|
||||
this.getModel().setValue("zcgj_oftaxinvoiceamount", dataEntity.get("zcgj_invoiceamount"), rowIndex);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.getModel().setValue("zcgj_freight_invoice", false);//运费发票
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue