接口传过来的采购订单自动审批

This commit is contained in:
zhangxinah@yonyou.com 2025-05-05 11:07:25 +08:00
parent 79d782329a
commit 4ae4d83444
1 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,7 @@ import nc.vo.pu.m21.rule.vat.setter.country.OrderTaxCountrySetter;
import nc.vo.pu.pub.constant.PUParaValue;
import nc.vo.pu.pub.constant.PUTempTable;
import nc.vo.pu.pub.enumeration.EnumDiscounttaxtype;
import nc.vo.pu.pub.enumeration.POEnumBillStatus;
import nc.vo.pu.pub.enumeration.PricePriority;
import nc.vo.pu.pub.rule.WeightVolumePieceCalc;
import nc.vo.pu.pub.util.BillHelper;
@ -1418,7 +1419,8 @@ public class FillOrderVosRule implements IRule<OrderVO> {
}
headerVO.setNversion(UFDouble.ROUND_DOWN);// 版本
// 单据状态为自由
headerVO.setForderstatus(EnumBillStatus.FREE.toIntValue());
headerVO.setForderstatus(headerVO.getForderstatus() != null &&headerVO.getForderstatus()==3? headerVO.getForderstatus()
:POEnumBillStatus.FREE.toIntValue());
// 制单人
headerVO.setAttributeValue(OrderHeaderVO.BILLMAKER, AppContext.getInstance().getPkUser());
// 制单日期