Thanks,
 
 It seems as if this will work, but currently I am getting a strange error, where I can't really find much information on:
 
Error: Currency code 'USD' with triangulation No after the 6/14/2005 has no exchange rate.
 
I have no real idea what this means, and what it is talking about. Does anyone recognize this error message? Does anyone have a clue as to what it could be?
 
thanks!
 
-Brandon


From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anil Ozay
Sent: Tuesday, June 14, 2005 2:06 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Re: Placing a Sales Order through code

Hi Brandon.. This code is creating for Sales Order. I didn't test it
but I think it will run.

Good Luck ;)

void CreateSalesOrder()
{
     

      SalesTable               salesTable;
      SalesLine                   salesLine;
      NumberSeq                numberSeq;
      NumberSequenceReference  numberSequenceReference;
      ;
     
      numberSequenceReference = NumberSeqReference::findReference
(typeId2ExtendedTypeId(typeid(SalesId))) ;
      numberSeq = NumberSeq::newGetNumFromCode
(numberSequenceReference.NumberSequence) ;
     
      ttsbegin;
      salesTable.SalesId = numberSeq.num() ;
      salesTable.OrderAccount = "3027" ;
      salesTable.initFromCustTable();
      salesTable.SalesType = SalesType::Sales ;
      salesTable.SalesStatus = SalesStatus::Backorder ;
      salesTable.insert();

      salesLine.SalesId = salesTable.SalesId ;
      salesLine.ItemId = "LI-0001";
      salesLine.SalesQty = 1 ;
      salesLine.createLine(false,true,true,false,false,true);
      numberSeq.used();

      ttscommit;
}


Anil Ozay

Anadolu Bilisim A.S.
Istanbul / TURKEY
[EMAIL PROTECTED]


--- In Axapta-Knowledge-Village@yahoogroups.com, "Brandon George"
<[EMAIL PROTECTED]> wrote:
> Hello Everyone!

>     We currently already have our website shopping cart, and also
have some
> partners that do Batch Ordering with us. Anyway, what I am wanting
to do is
> take the Web Orders and also the Batch Orders that come in at night
and
> place them within Axapta.

> I was not for sure if anyone had some good examples of placing an
Order
> through code. I assume there is already a class that I can use that
does
> this.

> Anyway, any help would be great!

> thanks,
> Brandon George




Sharing the knowledge on Axapta.



Sharing the knowledge on Axapta.



Yahoo! Groups Links

Reply via email to