Here I have a condition where I needed to display status
As 'Complete' if the order is fully shipped, and if the sales order is partially shipped then the status must be 'Picked' and if the order is just raised or Open then the status must be 'Open'.
I written the Al code for sales order which is open,
But I want for fully shipped and partially shipped,
This code is for order which is open that I written:
Yes it's good now, but how can I get all orders whether it is fully or partially shipped or open?
In this code I am getting message for order for complete shipped but I also have partially shipped and open sales order not getting message for that, so how can I get message for all conditions simultaneously?
This is my final code
What is the Order Date of the 2nd Sales Order?
Did you create Item Type lines?
Does Quantity Shipped field has a value except 0?
Yes , I think so there is some problem in if loop,
I created new order and fully shipped that it showed status complete and when I create new order and only partially shipped not getting 'Picked' status message,but I was getting this mess on previous order which was partially shipped.
Is your Order fully invoiced or not?
It will show complete if all the lines are fully shipped.
Are all your lines fully shipped?
Yes I get that, but not the complete shippede part?
Rec,salesline.setrange("Completely shipped", false)
Here when the all quantity get shipped I should get Complete status right? But not getting it.
The completely shipped and invoiced orders will be deleted and moved to posted sales shipments/invoices.
if the order is only shipped and not invoiced then they will still be in Sales Orders.
I am not following exactly what is the issue but you may have to change the code based on your requirement.
Hey, Thanks for this one,
But completely shipped sales order will be on posted sales invoice right?, in that case the above code for completely shipped orders is not working for me, the message is still showing when I didn't shipped any orders or posted,
So please can you help in that?
Please try something like this.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156