刷库修复可出货数量数据异常问题原创
金蝶云社区-htv
htv
10人赞赏了该文章 48次浏览 未经作者许可,禁止转载编辑于2024年08月16日 11:32:50
     if e.BarItemKey=='u_fix_fhtzd' and this.Context.UserName=='xxx':
        fid=str(this.Model.DataObject["id"]);
        sql="select count(1) as jg from T_SAL_DELIVERYNOTICEENTRY_LK where FSBILLID="+fid;
        jg=DBUtils.ExecuteDynamicObject(this.Context,sql,None);
        if int(jg[0][0])>0:
            this.View.ShowMessage("存在下游发货通知单,无法修复")
            return
        sql="exec u_fix_so2fhtzd "+fid;
        jg=DBUtils.ExecuteScalar(this.Context,sql,None);
        this.View.Refresh();
        this.View.ShowMessage("修复完成")


赞 10