Hi baran



I use the following code to generate auto delivery note from picking
list registration.





    SalesFormLetter salesFormletterMMS;

                ParmId         parmId;           

    salesFormLetterMMS =
SalesFormLetter::construct(DocumentStatus::PackingSlip,true);

    parmId              = salesFormLetterMMS.parmId();



               salesFormLetterMMS.createFromLines(true);

               salesFormLetterMMS.multiForm(true);



              salesFormLetterMMS.getLast();

             salesFormLetterMMS.parmId(parmId);

             salesFormLetterMMS.transDate(systemdateGet());



                            


salesFormLetterMMS.setMapPickingListMMS(salesPickingListJournalTable.Sal
esId,salesPickingListJournalTable.PickingListId);





****** this is the map of inventtransid and quantity. I pass this on to
classes salesQuantity etc when salesformletter is run I change the
quantity of the line to the quantity in the map and if inventtransid is
not there in the map then I delete the line.



            ok =
SalesFormletter::callPrintersettingsFormletter(salesFormLetterMMS);



            if (ok)

            {

                salesFormLetterMMS.saveLast();


salesFormLetterMMS.update(salesPickingListJournalTable,systemdateget(),S
alesUpdate::PickingList,AccountOrder::None,NoYes::No,NoYes::Yes);

            }

            else

                infolog.add(Exception::Warning,"Delivery note has not
been processed");

        }

    }



  _____ 

From: baran_sasmaz [mailto:[EMAIL PROTECTED]
Sent: Thursday, 8 July 2004 12:24 a.m.
To: [EMAIL PROTECTED]
Subject: [development-axapta] Fwd: Automation of packing slip?



--- In [EMAIL PROTECTED], Baran Sasmaz
<[EMAIL PROTECTED]> wrote:
Hi,

I ask u how to handle the routine of packing slip.

I ve created a dispatch plan related to the "sales line".
Sales department enters sales line related dispatch lines (for all
trucks).
The weightbridge calculates the empty and full weight of each truck
and enters the net weight to the related dispatch line.

Sales dept. and weightbridge have diff. systems. I ve integrated the
systems by transferring data through excel.

My question is how to automatically generate a packing slip (from
code) just after a dispatched truck information comes to my ax
system. Is there any class? I have the sales line related "deliver
now" info (== net weight) that comes from the weightbridge.

Has anyone a sample code that ll help me?

Thanks in advance.

Baran

           
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

[Non-text portions of this message have been removed]
--- End forwarded message ---







Yahoo! Groups Sponsor

ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129u6b1aa/M=295196.4901138.6071305.3001176/
D=groups/S=1705006764:HM/EXP=1089290493/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com>


<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=289070791>



  _____ 

Yahoo! Groups Links

*      To visit your group on the web, go to:
      http://groups.yahoo.com/group/development-axapta/
       
*      To unsubscribe from this group, send an email to:
      [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
       
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .



[Non-text portions of this message have been removed]



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to