How to generate packing slip no

Hi All,

I have to assign a new packing slip no to the product receipt form.

The think is i have a customized packing slip no lists. Once the user click the “Product Receipt” form. That time, i have to assign a packing slip no automatically.

Please guide me which class or method, i have to refer.

Thanks,

Hari

Hi Hari,

based on the Ax Version the class is different which I have mentioned below.

if it is Ax 20012 see the below path and modify according to your logic

Classes—>PurchPackingSlipJournalCreate—>allocateNumAndVoucher

if it is 2009,

Classes → PurchFormletter_Packingslip → allocateNumandVoucher

Regards,

Abbas

Hi,

Thanks for your reply.

Sorry, the method is not firing when i click the post receipt form.

Thanks,

Hari

If it is AX 2012, it will be running in IL.

Hi Kranthi,

Please guide me how to use IL.

Thanks,

Hari

Hi Kranthi,

Thanks for your reply.

I just uncheck the checkbox CIL something like this in file->option->development. But, still the method is not firing.

Please also confirm this method is using for update the post packing slip number when i open the post packing form from the purchase order by clicking the Purchase Order->Receive->Post packing slip form.

Everytime, the post packing slip form is displaying empty. It allows user to enter the packing slip number manually.

Please help me to find the solution.

Thanks,

Hari

It should be done while creating the parm data in

\Classes\PurchFormletterParmDataPackingSlip\createParmTable

purchParmTable = super(_purchTable, _purchLine, _tableRefId, _skipParmSubTable,false,false,_purchSummaryFormLetterId);

_purchSummaryFormLetterId, need to be replaced with your custom product receipt number.