question

sercanmobilist avatar image
sercanmobilist asked David Marginian Deactivated commented

I cannot enter customer and category information while creating an order

I am creating an order like this.

var order:Order = orderConnector!!.createOrder( Order() );

 var li:LineItem =  LineItem()
     li.setPrice(price);
     li.setName(orderName);
     li.setNote("NOTUM")


val let2 =  orderConnector!!.addCustomLineItem(order.getId(), li, false);



I want to add customer and category information to this order I created, but I couldn't.

can you help me ?

Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered sercanmobilist commented

To set the customer you need to call updateOrder (after creation). I am not sure what you mean by category, there is no category to set for a non-Clover inventory item.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sercanmobilist avatar image sercanmobilist commented ·

I have categories that we have created in the Inventory ->Categories menu. Can I match them with the orders I will create?

0 Likes 0 ·
sercanmobilist avatar image sercanmobilist sercanmobilist commented ·

When you enter the customer module, you will see customer cards.

When you click on a user and enter it, it will show you a field called "order history".

That's where I want to say.

0 Likes 0 ·
sercanmobilist avatar image
sercanmobilist answered David Marginian Deactivated commented

https://community.clover.com/questions/29561/add-customer-in-atomic-order.html


I still haven't found the answer.


I'm adding an order.

I want to add the order information I added to the customer. to show in "order history"

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image David Marginian ♦♦ commented ·

I answered you above:

To set the customer you need to call updateOrder (after creation).
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community