I would like to know the best Navision way to achieve the following:
From the Sales Order please select Sales History, then Posted Invoices.
The Posted Invoices selection displays the Invoice Lines Subform (Sales Invoice Line as SourceTable).
The customer would like to see the 'Ship-to Name' field display in the Invoice Lines Subform. The Ship-to Name field is in the Sales Invoice Header table however, and NOT in the SourceTable Sales Invoice Line.
Does anyone have any ideas? I've completed similar tasks and have worked on this...but some posts made me wary of working with this Subform.
Any help is greatly appreciated. Have a great day.
gad1
0
Answers
Lots of possibilities
RIS Plus, LLC
That would be the easiest for sure.
Dave
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
David: In regards to the two options...for the flowfield, will the performance issues be local to that form only?
If so I'll do that, because I haven't touched any codeunits just yet, and will take the decreased speed if it's just with that form. Thoughts?
Take care - gad1
I agree from a performance standpoint it would be best to add the field to the table and populate it in the posting routines. It's redundant though, and you need to check if your header lets you modify the field on the header after posting, so you can have that update the lines as well.
RIS Plus, LLC
"I agree from a performance standpoint it would be best to add the field to the table and populate it in the posting routines. It's redundant though, and you need to check if your header lets you modify the field on the header after posting, so you can have that update the lines as well."
Is there a C/AL sample existing on a table in the Navision database (every one) that you can point me to as a reference?
For instance, in Table 36 Sales Header: In the Sell-to Customer No. - OnValidate() trigger, I see something like
"Sell-to Customer Name" := Cust.Name;
Is it something like this that you're referring to?
Thx - gad1
The codeunit 80 Sales-Post is called with the Sales header and the fields are transfered to the Sales Invoice Header and we need to take one to the line so its as easy as this find the code below, and Insert one line of code befor the Insert:
Then add the new field to the Form
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
http://www.costcontrolsoftware.com/Direct%20Purchasing.htm
it already has the coding done for you, and it gives them a very well integrated drop ship ability, the ability to have resources on PO's a Sales Order history file, and more, for probably what it will cost to have just this change done, that is being suggested above.
this addes the ship-to code to the sales line.
Just an idea anyways, and no I don't work for the company, we just use the add-on, so as I was looking at your problem, at first I didn't understand what was wrong, since my database has the ship-to code there already.
it displays using a variable, the vendor name, based on the requsition line you are on for the item. You should be able to do the same thing with the ship-to code for the posted invoice line in the form you are working with.
Hi themave
We had offered this as a solution, but variables and flowfields have an overhead on the server, with the static field, you can filter and search it will be faster, it can be added to a report if required with futher no coding.
So we have 3 solutions for Ship-to Name:
Lookup to a variable
Flowfield from the header
Static Field
Each will take about the same time to action, with the static field if you want to populate the history, you can do this via a two level report.
I am assuming that Gad1 is a new developer, but it would be nice if this was in signatures so we can give appropriate replys.
Gad1
As your earlier question about performance, to test this, save the item list form with a new number, add a few flowfields, there are a lot on the item table, but these are only calculated as you view the form, Hide and show the fields and page up and down as a test.
Warning Note:
If any flowfields are editable, remove them from the list, because if you alter the value you will corrupt the data, the budget values are editable flowfields.
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
So we have 3 solutions for Ship-to Name:
'Lookup to a variable'
Also yes I am a new developer but am picking up things quickly. There's just a lot to do, and it's rarely the same.
But that's a-ok. Have a great day, I'll mark this as solved.
gad1
newer developer