Acumatica如何将ArdDocumentRelease项目任务设置为可选?

Acumatica如何将ArdDocumentRelease项目任务设置为可选?,acumatica,Acumatica,我正在尝试发布指定了项目但没有项目任务的发票 8/5/2017 4:20:04 PM Error: Error: Inserting 'GL Transaction' record raised at least one error. Please review the errors. 'Project Task' cannot be empty. PX.Data.PXOuterException: Error: Inse

我正在尝试发布指定了项目但没有项目任务的发票

        8/5/2017 4:20:04 PM Error: 
        Error: Inserting  'GL Transaction' record raised at least one error. Please review the errors. 
        'Project Task' cannot be empty. 

        PX.Data.PXOuterException: Error: Inserting  'GL Transaction' record raised at least one error. Please review the errors. 
           at PX.Data.PXUIFieldAttribute.CommandPreparing(PXCache sender, PXCommandPreparingEventArgs e) 
           at PX.Data.PXCache.OnCommandPreparing(String name, Object row, Object value, PXDBOperation operation, Type table, FieldDescription& description) 
           at PX.Data.PXCache`1.PersistInserted(Object row) 
           at PX.Data.PXCache`1.Persist(PXDBOperation operation) 
           at PX.Data.PXGraph.Persist(Type cacheType, PXDBOperation operation) 
           at PX.Data.PXGraph.Persist() 
           at PX.Objects.GL.JournalEntry.Persist() in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\GL\JournalEntry.cs:line 1190 
           at PX.Data.PXSave`1.d__2.MoveNext() 
           at PX.Data.PXAction`1.d__31.MoveNext() 
           at PX.Data.PXAction`1.d__31.MoveNext() 
           at PX.Data.PXAction`1.PressImpl(Boolean internalCall, Boolean externalCall) 
           at PX.Data.PXAction`1.Press() 
           at PX.Objects.AR.ARReleaseProcess.ReleaseDocProc(JournalEntry je, ARRegister ardoc, List`1 pmBatchList, ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete) in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs:line 4673 
           at PX.Objects.AR.ARDocumentRelease.ReleaseDoc(List`1 list, Boolean isMassProcess, List`1 externalPostList, ARMassProcessDelegate onsuccess, ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete) in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs:line 322 
           at PX.Objects.AR.ARDocumentRelease.ReleaseDoc(List`1 list, Boolean isMassProcess, List`1 externalPostList, ARMassProcessDelegate onsuccess, ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete) in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs:line 351 
           at PX.Objects.AR.ARInvoiceEntry.<>c__DisplayClass31_0.b__0() in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARInvoiceEntry.cs:line 333 
           at PX.Data.PXLongOperation.<>c__DisplayClass18_0.b__0() 
2017年8月5日下午4:20:04错误:
错误:插入“总账交易记录”至少引发一个错误。请检查错误。
“项目任务”不能为空。
PX.Data.PXOuterException:错误:插入“总账交易”记录至少引发一个错误。请检查错误。
在PX.Data.PXUIFieldAttribute.CommandPreparing(PXCache发送方,PXCommandPreparingEventArgs e)
在PX.Data.PXCache.OnCommandPreparing(字符串名称、对象行、对象值、PXDBOperation操作、类型表、字段描述和描述)
在PX.Data.PXCache`1.persisted处(对象行)
在PX.Data.PXCache`1.Persist处(PXDBOperation操作)
在PX.Data.PXGraph.Persist(类型cacheType,PXDBOperation)
在PX.Data.PXGraph.Persist()处
位于F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\GL\JournalEntry.cs中的PX.Objects.GL.JournalEntry.Persist():第1190行
在PX.Data.PXSave`1.d_uuu2.MoveNext()中
在PX.Data.PXAction`1.d_uu31.MoveNext()中
在PX.Data.PXAction`1.d_uu31.MoveNext()中
在PX.Data.PXAction`1.PressImpl(布尔内部调用,布尔外部调用)
在PX.Data.PXAction`1.Press()处
在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs第4673行的PX.Objects.AR.arreleaseeprocess.ReleaseDocProc(JournalEntry je,ARRegister ardoc,List`1 pmBatchList,ARMassProcessReleaseTransactionScopeDelegate on release complete)中
在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs第322行的PX.Objects.AR.ARDocumentRelease.ReleaseDoc(列表'1,布尔isMassProcess,列表'1 externalPostList,ARMassProcessDelegate onsuccess,ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete)中
在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs第351行的PX.Objects.AR.ARDocumentRelease.ReleaseDoc(列表'1,布尔isMassProcess,列表'1 externalPostList,ARMassProcessDelegate onsuccess,ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete)中
在PX.Objects.AR.ARInvoiceEntry.c_uu中,在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARInvoiceEntry.cs:第333行中显示Class31_0.b_u0()
在PX.Data.PXLongOperation.c_uuu显示类18_0.b_u0()
已修复,,,JournalEntry_扩展名:pxGrapherExtension

            protected virtual void GLTran_RowPersisting(PXCache sender, PXRowPersistingEventArgs e, PXRowPersisting del)
            {
                Base.ExceptionHandling.AddHandler<GLTran.taskID>((cache, args) =>
                {
                    args.Cancel = args.NewValue == null && args.Exception is PXSetPropertyException;
                });


                del(sender, e);

                if ((e.Operation & PXDBOperation.Command) == PXDBOperation.Insert || (e.Operation & PXDBOperation.Command) == PXDBOperation.Update)
                {
                    GLTran line = (GLTran)e.Row;
                    PXDefaultAttribute.SetPersistingCheck<GLTran.taskID>(sender, e.Row, PXPersistingCheck.Nothing);
                }

            }
protected virtual void GLTran_row persistening(PXCache发送方、pxrowspersisteningeventargs e、pxrowspersistening del)
{
Base.ExceptionHandling.AddHandler((缓存,参数)=>
{
args.Cancel=args.NewValue==null&&args.Exception是PXSetPropertyException;
});
del(发送者,e);
if((e.Operation&PXDBOperation.Command)==PXDBOperation.Insert | |(e.Operation&PXDBOperation.Command)==PXDBOperation.Update)
{
GLTran line=(GLTran)e.Row;
PXDefaultAttribute.SetPersistingCheck(发送方,例如行,PXPersistingCheck.Nothing);
}
}
我试过用ARTran替换上面的代码,但是事件不会绑定到ARTran行。如果在ArdDocumentRelease扩展名:pxGrapherExtension中持久化,还有什么图形控制验证

           8/5/2017 4:38:04 PM Error: 
        Error: Updating  'AR Transactions' record raised at least one error. Please review the errors. 
        'Project Task' cannot be empty. 

        PX.Data.PXOuterException: Error: Updating  'AR Transactions' record raised at least one error. Please review the errors. 
           at PX.Data.PXUIFieldAttribute.CommandPreparing(PXCache sender, PXCommandPreparingEventArgs e) 
           at PX.Data.PXCache.OnCommandPreparing(String name, Object row, Object value, PXDBOperation operation, Type table, FieldDescription& description) 
           at PX.Data.PXCache`1.PersistUpdated(Object row) 
           at PX.Data.PXCache`1.Persist(PXDBOperation operation) 
           at PX.Objects.AR.ARReleaseProcess.Persist() in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs:line 4831 
           at PX.Objects.AR.ARReleaseProcess.ReleaseDocProc(JournalEntry je, ARRegister ardoc, List`1 pmBatchList, ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete) in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs:line 4784 
           at PX.Objects.AR.ARDocumentRelease.ReleaseDoc(List`1 list, Boolean isMassProcess, List`1 externalPostList, ARMassProcessDelegate onsuccess, ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete) in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs:line 322 
           at PX.Objects.AR.ARDocumentRelease.ReleaseDoc(List`1 list, Boolean isMassProcess, List`1 externalPostList, ARMassProcessDelegate onsuccess, ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete) in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs:line 351 
           at PX.Objects.AR.ARInvoiceEntry.<>c__DisplayClass31_0.b__0() in F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARInvoiceEntry.cs:line 333 
           at PX.Data.PXLongOperation.<>c__DisplayClass18_0.b__0() 
2017年8月5日下午4:38:04错误:
错误:更新“应收账款交易记录”至少引发一个错误。请检查错误。
“项目任务”不能为空。
PX.Data.PXOuterException:错误:更新“AR事务”记录至少引发一个错误。请检查错误。
在PX.Data.PXUIFieldAttribute.CommandPreparing(PXCache发送方,PXCommandPreparingEventArgs e)
在PX.Data.PXCache.OnCommandPreparing(字符串名称、对象行、对象值、PXDBOperation操作、类型表、字段描述和描述)
在PX.Data.PXCache`1.PersistUpdated处(对象行)
在PX.Data.PXCache`1.Persist处(PXDBOperation操作)
在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs中的PX.Objects.AR.ARReleaseProcess.Persist()处:第4831行
在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs第4784行的PX.Objects.AR.arreleaseeprocess.ReleaseDocProc(JournalEntry je,ARRegister ardoc,List`1 pmBatchList,ARMassProcessReleaseTransactionScopeDelegate on release complete)中
在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs第322行的PX.Objects.AR.ARDocumentRelease.ReleaseDoc(列表'1,布尔isMassProcess,列表'1 externalPostList,ARMassProcessDelegate onsuccess,ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete)中
在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARDocumentRelease.cs第351行的PX.Objects.AR.ARDocumentRelease.ReleaseDoc(列表'1,布尔isMassProcess,列表'1 externalPostList,ARMassProcessDelegate onsuccess,ARMassProcessReleaseTransactionScopeDelegate onreleasecomplete)中
在PX.Objects.AR.ARInvoiceEntry.c_uu中,在F:\Bld2\AC-FULL61U6-JOB1\sources\WebSites\Pure\PX.Objects\AR\ARInvoiceEntry.cs:第333行中显示Class31_0.b_u0()
在PX.Data.PXLongOperation.c_uuu显示类18_0.b_u0()

从跟踪ARReleaseProcess可能是您要查找的另一个图形。它包含ARTran DAC上的ARTran\u TranType\u RefNbr数据视图