Skip to main content
Solved

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


Michael Ndungi
Varsity I
Forum|alt.badge.img

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.

Best answer by Giri K

Hi @development93 

Can you Rename the Graph Extension And Publish once.

Example: ARPaymentEntryExt1 instead of ARPaymentEntry_Extension

View original

Hi @development93 

Could you please provide with our ARPaymentEntry_Ext Graph code file.

I will look into this.

Regards,

Aswarya


Michael Ndungi
Varsity I
Forum|alt.badge.img
AswaryaGowda wrote:

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
  }
}














 


Forum|alt.badge.img+1
  • Pro I
  • May 3, 2023

Hi @development93 

Can you Rename the Graph Extension And Publish once.

Example: ARPaymentEntryExt1 instead of ARPaymentEntry_Extension


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings