Question

Modification to PRPayGroupPeriod causes errors

  • 30 October 2023
  • 0 replies
  • 10 views

/*

  I added a customization project with a single code file:

*/

using PX.Data.ReferentialIntegrity.Attributes;
using PX.Data;
using PX.Objects.Common.Attributes;
using PX.Objects.GL.Attributes;
using PX.Objects.GL;
using PX.Objects.PR;
using PX.Objects;
using System.Collections.Generic;
using System;

/*

  This field was already added to the database table with a default constraint value of false.

*/
namespace PX.Objects.PR
{
  public class PRPayGroupPeriodExt : PXCacheExtension<PX.Objects.PR.PRPayGroupPeriod>
  {
    #region SwipeAndConfirmationLock
    [PXDBBool()]
    [PXDefault(false)]
    [PXUIField(DisplayName="Swipe And Confirmation Lock")]
    public virtual bool SwipeAndConfirmationLock { get; set; }
    public abstract class swipeAndConfirmationLock: PX.Data.BQL.BqlBool.Field<swipeAndConfirmationLock> { }
    #endregion
  }
}

/*

   When navigating to Paychecks and Adjustments the following error occurs:

   Error: An error occurred during processing of the field Swipe And Confirmation Lock: Object reference not set to an instance of an object..

  I do not want to modify any screens at this time.  There are no other customizations on the instance of Acumatica.

  Any ideas?  

*/


0 replies

Be the first to reply!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved