Removing part of Sales Invoice..

yuppicideyuppicide Member Posts: 410
edited 2009-02-27 in Navision Attain
Last question for the day..

We're on Navision 3.10. Having made a few other changes successfully, I was in Sales Invoice Section Designer. I noticed a section called "SalesLine, Footer (4)". This does not get calculated properly.. it supposed to say if customer is a factored account then print information on where their payment should be mailed. Print this information in SalesLine, Footer(4).

I see the C/AL code, so I know what it's supposed to do.

This does not work and never has. Had it not been for me editing my Sales Invoice I would have never even known this existed!

My question is, we don't want it to work. Can we remove this section entirely or can that mess something else up?

It's only text in that section with mailing address for the factor. Opening up the C/AL code i have
OnPreSection()

IF "Sales Invoice Header"."Factor Status" ="Sales Invoice Header"."Factor Status"::Accepted THEN
  CurrReport.SHOWOUTPUT(TRUE)
ELSE
  CurrReport.SHOWOUTPUT(FALSE);
[code]

.. and also some code under this one as well

[code]
CalcSizeStartPos()

SizeStartPos := 0;
FOR Loop := 1 TO 10 DO
  IF MatrixSizeHeading[Loop] = SizeCode.Code THEN
  BEGIN
    SizeStartPos := Loop;
  END;

Comments

  • DenSterDenSter Member Posts: 8,307
    Export the object just to be on the safe side, so you can import it right back should something happen. Once you did that, blow the section away, and never look back
  • yuppicideyuppicide Member Posts: 410
    Yep. Already backed it up just in case.

    But if I delete SalesLine, Footer (4) all that space from the screen disappears. Here's a screen shot:



    Because that Capital Factor information is not being used, that space is wasted on every page when it could be printing more sales line information instead. Thus, we're wasting a lot of paper. Many Invoices go two pages unnecessarily.

    Here's a screen shot with SalesLine, Footer (4) gone. #5 becomes #4.



    You will see that the total size has become smaller and I am unsure if this will affect printing because I don't want it to be too small on 8.5 x 11 paper.

    Should I right click my current SalesLine, Footer (4) and take the SectionHeight and add it to Matrix, Body (2) where I want more sales lines to come? Or do I not need to do that because it will automatically expand to correct paper size?
  • yuppicideyuppicide Member Posts: 410
    Actually, I just went ahead and deleted it.. worked fine. I had a backup anyway, so no loss there.

    Thanks for all the help.
  • DenSterDenSter Member Posts: 8,307
    yuppicide wrote:
    Actually, I just went ahead and deleted it.. worked fine.
    Trial and error, the best teacher :)
Sign In or Register to comment.