Skip to main content
Answer

Override GenerateLotSerial from LSINTran class

  • August 22, 2022
  • 1 reply
  • 99 views

Forum|alt.badge.img

Hi,

How I can override or extend the GenerateLotSerial action in the Inventory Receipt page? 

 

Thanks,

Ev

Best answer by Dioris Aguilar

@edsonvelez64 Try creating a new custom LSINTran like this:
 

public class LSINTranCustom : LSINTran
{
public override IEnumerable GenerateLotSerial(PXAdapter adapter)
{
base.GenerateLotSerial(adapter);
}
}

And create a graph extension for INReceiptEntry overriding the lsselect view with your new custom class:
 

public class INReceiptEntryExt : PXGraphExtension<INReceiptEntry>
{

public LSINTranCustom lsselect;
}

 

1 reply

Dioris Aguilar
Jr Varsity I
Forum|alt.badge.img+2
  • Jr Varsity I
  • Answer
  • August 22, 2022

@edsonvelez64 Try creating a new custom LSINTran like this:
 

public class LSINTranCustom : LSINTran
{
public override IEnumerable GenerateLotSerial(PXAdapter adapter)
{
base.GenerateLotSerial(adapter);
}
}

And create a graph extension for INReceiptEntry overriding the lsselect view with your new custom class:
 

public class INReceiptEntryExt : PXGraphExtension<INReceiptEntry>
{

public LSINTranCustom lsselect;
}