固定资产调拨后资产编码不变不能保存
金蝶云社区-云小爱
云小爱
0人赞赏了该文章 1273次浏览 未经作者许可,禁止转载编辑于2014年09月24日 10:46:46

cloud3.0+9月23日周补丁问题领域:资产管理-资产调拨
问题描述:
客户要求资产在调拨前的资产编码和调拨后的资产编码相同即调拨动作不会影响资产编码,因此
此补丁增加了资管管理的参数:资产调拨生成卡片、是否允许沿用原卡片编码和资产编码。
此参数选中保存后,在做资产调拨时,
1.资产调入单审核下推生成资产卡片保存仍然提示资产编码重复
2.卡片自动携带的 累计使用期间数、累计折旧期间数 为原卡片手工数据的累计使用期间数、累计折旧期间数,没有计算原卡片录入系统后计提折旧期间和已折旧期间。
例如,原始卡片为7月入账并新增到系统中,7月时卡片的累计使用期间数、累计折旧期间数为10,但9月进行调拨时,入账日期已经变为9月了那么累计使用期间数、累计折旧期间数应该是12,而不是10.(不知是否描述清楚了)
3.资产调入单审核下推生成资产卡片修改了卡片编码保存后会报错,具体如下:

发生时间:10:40:09
错误来源: Kingdee.BOS.ServiceHelper
错误信息:Value cannot be null.
Parameter name: errorInfo
===================================================
调用堆栈:

Server stack trace:
at Kingdee.BOS.Core.Validation.ValidateContext.AddError(Object dataEntity, ValidationErrorInfo errorInfo)
at Kingdee.K3.FIN.FA.App.ServicePlugIn.Card.SaveValidator.Validate(ExtendedDataEntity[] dataEntities, ValidateContext validateContext, Context ctx)
at Kingdee.BOS.App.Core.Validation.ValidationService.Validate(IEnumerable`1 dataEntities, ValidateContext validateContext, AbstractValidator[] validators)
at Kingdee.BOS.App.Core.Validation.ValidationService.TryValidate(IEnumerable`1 dataEntities, ValidateContext validateContext, List`1& errorInfo)
at Kingdee.BOS.App.Core.AbstractOprerationService.TryValidate()
at Kingdee.BOS.App.Core.AbstractOprerationService.Validate()
at Kingdee.BOS.App.Core.AbstractSave.Validate()
at Kingdee.BOS.App.Core.AbstractOprerationService.DoExcete()
at Kingdee.BOS.App.Core.AbstractOprerationService.Excute(DynamicObject[] dataEntities)
at Kingdee.BOS.App.Core.SaveService.Save(Context ctx, BusinessInfo info, DynamicObject[] dataEntities, OperateOption option, String operationNumber)

Exception rethrown at [0]:
at Kingdee.BOS.ServiceHelper.BusinessDataServiceHelper.Save(Context ctx, BusinessInfo businessInfo, DynamicObject dataObject, OperateOption option, String operationNumber)
at Kingdee.BOS.Model.Bill.BillModel.Save(OperateOption option)
at Kingdee.BOS.Business.Bill.Operation.Save.ExecuteBillOperation(OperateOption option)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.Operation(CallBackWfAfterOperation callbackwf, IOperationResult result)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.Execute(InvokeFormOperation4WfParam param, CallBackWfAfterOperation callbackwf)
at Kingdee.BOS.Web.DynamicForm.OperationCaller.InvokeFormOperation(String operationNumber)
at Kingdee.BOS.Business.DynamicForm.BusinessService.ExcuteOperation.DoAction(FormBusinessServiceArgs e)
at Kingdee.BOS.Core.DynamicForm.FormBusinessServiceUtil.InvokeServices(IDynamicFormView view, Object source, IEnumerable`1 services, Int32 actionType, String activeEntity, DynamicObject activeRow, Int32 rowIndex)
at Kingdee.BOS.Web.DynamicForm.BusinessServiceCaller.InvokeFormBusiness(IDynamicFormView view, Object source, List`1 formBusinessServices, Int32 actionType, String entityKey, Int32 row)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.BarItemClick(String parentKey, String barItemKey, BarDataManager bar, Int32 bartype)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.MainBarItemClick(String barItemKey)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormController.MainBarItemClick(String itemKey, JSONArray postDatas)
错误数据: System.Collections.ListDictionaryInternal