Sample Job……

 

static void SaleslineMarkupexample(Args _args)

{

    markuptrans     markupTrans;

    markupcode      code = 'Fee';

    amount          markupAmount = 10;

    salesID         so = '00015_036';

    str             transtext = "Markup Transaction Text";

    lineNum         ln= 1;

    salesLine       sLine;

 

 

    sLine = salesLine::find(so, ln);

 

    markupTrans.initFromSalesLine(sLine);

    markupTrans.initValue();

    markupTrans.MarkupCode      = code;

    markupTrans.Value           = markupAmount;

    markuptrans.MarkupCategory  = markupcategory::Fixed;

    markupTrans.Txt             = transtext;

    markupTrans.insert();

 

}

 

G’luck –Preston

 


From: Axapta-Knowledge-Village@yahoogroups.com [mailto:Axapta-Knowledge-Village@yahoogroups.com] On Behalf Of Brandon George
Sent: Tuesday, August 02, 2005 8:50 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Adding a Misc. Charge through Code

 

Hello All!

 

    Does anyone know how I can add a Misc. Charge through code? Say I have a Sales Order and I want to add a Misc. Freight Charge through code to a given Line Item. Does anyone have any code examples on how to do this?

 

thanks,

Brandon




Sharing the knowledge on Axapta.



YAHOO! GROUPS LINKS




Reply via email to