hi,
in Sales Invoices, if i input 2 sales lines with same G/L account number, navision automatically sums u these 2 lines.
I would like to change this, but could not find this code which is doing this in Codeunit 80.
can anybody give me a hint hw the above can be done
thanks
0
Comments
This must be a localize thing. If you look at the world wide version, it will not summarize up the lines for you during posting.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
You need to look at
FillInvPostingBuffer(SalesLine : Record "Sales Line";SalesLineACY : Record "Sales Line")
which then calls UpdInvPostingBuffer.
The function UpdInvPostingBuffer combines the lines. Make the changes in that function and you should be set.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
{InvPostingBuffer[2] := InvPostingBuffer[1];
IF InvPostingBuffer[2].FIND THEN BEGIN
InvPostingBuffer[2].Amount := InvPostingBuffer[2].Amount + InvPostingBuffer[1].Amount;
.
.
.
IF NOT InvPostingBuffer[1]."System-Created Entry" THEN
InvPostingBuffer[2]."System-Created Entry" := FALSE;
InvPostingBuffer[2].MODIFY;
END ELSE}
In Belgium they made changes to the posting routine, if the description on the PO line is different the lines will not be summarized. You could do something similar with the line no or some other field.
see also: http://www.mibuso.com/forum/viewtopic.p ... highlight=
(dutch speaking)
W1 version:
Belgian version:
And don't forget to add the field Posting Description to Table 49 and add this field to the primary key of the table.
instead of Posting Description, i inserted Line No. in table 49 keys.
so it will check line no. instead..
also i uncommented the codes which i previously commented..
i think i did everything right..
thankx again 2tje..
:oops:
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book