Solved

namespace 'namespace' already contains a definition for 'type'

  • 3 May 2023
  • 3 replies
  • 124 views

Userlevel 4
Badge

Hello Everyone,
I am facing this error while publishing the customization.
see below:
 

Have tried to troubleshoot but couldn’t resolve it.
Kindly assist,
Thank you all

any kind of response will be highly appreciated.

icon

Best answer by Giri K 3 May 2023, 15:16

View original

3 replies

Hi @development93 

Could you please provide with our ARPaymentEntry_Ext Graph code file.

I will look into this.

Regards,

Aswarya

Userlevel 4
Badge

Hi @development93 

Could you please provide with our ARPaymentEntry_Ext Graph code file.

I will look into this.

Regards,

Aswarya

doesn’t have much code, see available code below.

using System;
.
.
.
using PX.Objects.AR;

namespace PX.Objects.AR
{

public class ARPaymentEntry_Extension : PXGraphExtension<PX.Objects.AR.ARPaymentEntry>
  
  {
    #region Event Handlers

    protected void ARPayment_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
    {
      if(InvokeBaseHandler != null)
        InvokeBaseHandler(cache, e);
      var row = (ARPayment)e.Row;

      if (row != null)
      {
        
        ARAdjust dtObj = PXSelect<ARAdjust, Where<ARAdjust.adjdRefNbr, Equal<Required<ARAdjust.adjdRefNbr>>>>.Select(Base, row.RefNbr);
        
        if (dtObj != null && dtObj.AdjdDocDate <= row.AdjDate)
        {
         if (row.Status == "N" && row.DocType != "PPM")
              {
                row.AdjDate = row.DocDate;
                row.AdjFinPeriodID = row.FinPeriodID;
              }
          }
      }
    }
     #endregion
  }
}














 

Userlevel 4
Badge +1

Hi @development93 

Can you Rename the Graph Extension And Publish once.

Example: ARPaymentEntryExt1 instead of ARPaymentEntry_Extension

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