|
问题现象:在用友U8erp系统中用友U8版本号:U8软件的供应链产品线存货核算模块出现如下问题:在[821存货核算]模块中,销售出库单进行单据记账时,不选‘包含未开发票的出库单’选项,筛选出来的单据也包含一些未开发票的,都是以前年度记过帐的请帮忙解答!
原因分析:经检查未发现不选‘包含未开发票的出库单’选项,筛选出来的单据包含一些未开发票的。
解决方案:在用友erp 系统版本U8软件中若该单据确已在以前年度记过帐,执行以下语句即可:updaterdrecordsetcaccounter=‘吴真‘whereidinSELECTrdrecord.idFROMWarehouseINNERJOINRd_StyleRIGHTJOINRdRecordONRd_Style.cRdCode=RdRecord.cRdCodeONWarehouse.cWhCode=RdRecord.cWhCodeINNERJOINRdRecordsONRdRecord.ID=RdRecords.IDINNERJOINInventoryONRdRecords.cInvCode=Inventory.cInvCodeleftjoindispatchlistsonrdrecords.idlsid=dispatchlists.idlsidleftjoindispatchlistondispatchlists.dlid=dispatchlist.dlidleftjoinsalebillvouchssales1ondispatchlists.idlsid=sales1.idlsidleftjoinsalebillvouchsale1onsales1.sbvid=sale1.sbvidleftjoinsalebillvouchssales2onrdrecords.isbsid=sales2.autoidleftjoinsalebillvouchsale2onsales2.sbvid=sale2.sbvidWhereIsnullRdRecords.iQuantity,00AndRdRecord.cAccounterISNULLandsale1.caccounterisnullandsale2.caccounterisnullandsale1.cinvaliderisnullandsale2.cinvaliderisnullandisnullrdrecord.cbustype,‘‘‘委托代销‘andcMonthisnullorrightcMonth,2‘33‘andnotrdrecord.cVouchType=‘32‘orrdrecord.cvouchtype=‘34‘andISNULLSALES1.IDLSID,0=0ANDISNULLRDRECORDS.ISBSID,‘‘=‘‘andRdRecord.cVouchType=‘32‘andnotrdrecords.isbsidisnullORnotsales1.autoidisnullorRdRecord.cVouchType=‘34‘andRdRecord.caccounterisnullandRdRecord.dDate
|
|