Update invoice header.

icapilla
Member Posts: 30
Good afternoon,
my problem is as follows:
I will bring the shipping lines of an invoice. when I do this, the process modifies fields in the header of the invoice.
then try to register the invoice, I get an error, this error is because it does not update the header of the page, someone could help me, does not serve to give the F5 button (Update) must be in code.
Sorry for my bad English.
my problem is as follows:
I will bring the shipping lines of an invoice. when I do this, the process modifies fields in the header of the invoice.
then try to register the invoice, I get an error, this error is because it does not update the header of the page, someone could help me, does not serve to give the F5 button (Update) must be in code.
Sorry for my bad English.
0
Comments
-
Can you be more clear?
From where did you use Get Shipment Lines function?0 -
I use codeunit 64 (function "CreateInvLines"), this brings the lines of sending the invoice to bill, in my case this function modifies some fields in the header of the invoice, and get an error log because the has not updated the header.
I need to know how to update the header by code. I've tried to make a currpage.update before the call to register, but does not update.
I know there is a button (F5) to update, but not for me.
Thanks for advance.0 -
I mean to ask whether you are calling function from header actions or line actions?
http://dynamicsuser.net/blogs/mark_brummel/archive/2009/12/16/tip-25-update-header-page-from-the-line-page.aspx
http://dynamicsuser.net/blogs/tomblog/archive/2011/07/01/Showing-Totals-for-Sub-Pages-in-Microsoft-Dynamics-NAV-2009.aspx0 -
Thank you very much
Yesterday I tried to make the first link you sent me and did not understand because it worked, but putting the sentence 2 times.
WShell.SendKeys ("{F5} ');
WShell.SendKeys ("{F5} ');
It works ... I understand that, but it works!.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions