3dak Client

Mandantor.AddOrder Method (Contact, Contact)

Adds new Order to the Database

[Visual Basic]
Public Function AddOrder( _ 
   ByVal Contact As Contact, _ 
   ByVal Contact As Contact _ 
) As Order
[C#]
public Order AddOrder(
   Contact Contact,
   Contact Contact
);
[C++]
public: Order* AddOrder(
   Contact* Contact,
   Contact* Contact
);
[JScript]
public function AddOrder(
   Contact Contact,
   Contact Contact
): Order;

Parameters

ShippingContact
Contact containing Data about Customer the Shipment is delivered to
BillingContact
Contact containing Data of Customer who will get the Bill.

Return Value

New Order Object for Transaction

Remarks

Price is set to 0 due to the fact that no OrderItems are yet provided. OrderItems have to be added to the Order afterwards. Shipping and Billing Contact are freshly saved to the Database. If not same Object 2 Datarows are created.

Exceptions

Exception TypeCondition
InvalidCredentialExceptionIndicates that no Authorization Context was provided

See Also

Mandantor Class | ppm3dakClient.Shop Namespace | Mandantor.AddOrder Overload List