Oke, If I delete sales order which 3 conditions is : not ship + invoiced + Requested Delivery Date < TODAY.
Can you let me know how to do this problem ?
I want delete Sales Order card automatically because I want delete Sales Order which has reservation quantity. If i delete Sales Order which has reservation quantity, so in Bin Content will has enough quantity to sell.
If i delete Sales Order card, it will affect other table or not affect. And if affect, what related table should i delete ?
I reasearching Navision 2009 about 2 months, so i have poor expirence.
I created 1 job in SQL Agent Server for deleting sales order automatically 2 weeks ago, and it was wrong, because not enought related table, but in TEST Database .
You are senior/rich experience about Navision, can you let me know how to do that if i have 1 condition same above reply.
What line is represent a invoiced order in report 299 ?, and if i delete that line, Will be it not invoiced order ?
Because i think that i can delete any order manually.
What line is represent a invoiced order in report 299 ?, and if i delete that line, Will be it not invoiced order ?
The property DataItemTableView on the Sales Header dataitem does the filtering for Sales Header records of type Order: "SORTING(Document Type,No.) WHERE(Document Type=CONST(Order))". The C/AL Code in the OnAfterGetRecord-trigger loops through all Sales Order Lines, and deletes the ones which are completely shipped and invoiced. If all lines of a Sales Order are deleted, then the Sales Header is also deleted.
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
did you try manually deleting first?
It will throw error message that
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Can you let me know how to do this problem ?
Thanks & Best Regards !
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
please refer report 299 - Delete Invoiced Sales Orders (dont run it - it will delete orders which are completely invoiced)
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
This will help you.....
http://mibuso.com/howtoinfo.asp?FileID=15
http://ssdynamics.co.in
SORTING(Document Type,No.) WHERE(Document Type=CONST(Order),Completely Shipped=FILTER(No))
and
Delete(true);
It'll help you.
I want delete Sales Order card automatically because I want delete Sales Order which has reservation quantity. If i delete Sales Order which has reservation quantity, so in Bin Content will has enough quantity to sell.
If i delete Sales Order card, it will affect other table or not affect. And if affect, what related table should i delete ?
Thanks & Best Regards !
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I read report 299, I may be understand about 70%.
So, If I want to add 1 condition which is Requested Delivery Date < TODAY => what need i do ?
Thanks & Best Regards !
Please contact your seniors or partner(if you are a customer) as it is related to deleting the data..
If something goes wrong then you will be thrown out..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I reasearching Navision 2009 about 2 months, so i have poor expirence.
I created 1 job in SQL Agent Server for deleting sales order automatically 2 weeks ago, and it was wrong, because not enought related table, but in TEST Database .
You are senior/rich experience about Navision, can you let me know how to do that if i have 1 condition same above reply.
Thanks & Best Regards !
"Sales Header".SETFILTER("Requested Delivery Date",'<%1',TODAY);
in Sales Header OnPredataItem trigger..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
What line is represent a invoiced order in report 299 ?, and if i delete that line, Will be it not invoiced order ?
Because i think that i can delete any order manually.
Thanks & Best Regards !
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks mohana very much, but I can not resolve that problem.
Thanks & Best Regards !