SELECT * FROM FAM_CredenceBill WHERE BusinessBillCode='单据编号' SELECT * FROM FAM_CredenceBillDetail WHERE PARENTBILLCODE='凭证单号'
修改未审核的单据状态
/*汉字部分需要替换为单据正确数据*/
UPDATE FAM_TransferBill SET CanUpdate=0,CanDelete=0,IsChecked=1,Sys4CheckTime='审核时间',CheckUserCode='审核人员编号',Acc4CheckUserName='审核人员名称' WHERE Code='单据编号'
同步更新门店单据状态
/*汉字部分需要替换为单据正确数据*/
exec sys_sYNCPushtoShop_InsertAsSql 门店编号,'UPDATE FAM_TransferBill SET CanUpdate=0,CanDelete=0,IsChecked=1,Sys4CheckTime=''审核时间'',CheckUserCode=''审核人员编号'',Acc4CheckUserName=''审核人员名称'' WHERE Code=''单据编号''',0,10