Options

Number of Shipments to Print

elToritoelTorito Member Posts: 191
Hi,

when i have an order and i go to "Post/Ship" then it Prints me out 1 Shipment Report.

Exists any config for define the number of copies to print ?
If answer is no, what is the better method for print Shipment Copies ?

Momentanly if we need more than one copie, we must go to Posted Shipments and Print out the number of copies we need, but i think is more nice when it's possible print out directly more than once copy from the order form.

Perhaps a new Menu Item with Link to the Posted Shipment Report?
Here is the Problem when nothing was shipped ... hmmm :-k

Any Tipps for solution our problem?, i hope it was understand.

Thanks.

Peter
(Oo)=*=(oO)

Comments

  • Options
    philippegirodphilippegirod Member Posts: 191
    Navision use a system to have a predefined nb of copies for invoices... probably can we use the same system for shipment ?
    One line to add to the report 208 :
    On the DataItem CopyLoop, on the PreDataItem trigger :
    CopyLoop - OnPreDataItem()
    //To have the nb of copies from the customer BEGIN
    NoOfLoops := ABS(NoOfCopies) + Cust."Invoice Copies" + 1;
    //NoOfLoops := 1 + ABS(NoOfCopies);
    //To have the nb of copies from the customer END
    CopyText := '';
    SETRANGE(Nombre,1,NoOfLoops);
    
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • Options
    elToritoelTorito Member Posts: 191
    Navision use a system to have a predefined nb of copies for invoices... probably can we use the same system for shipment ?
    One line to add to the report 208 :

    Yes that is right, but problem is if you need 4 Shipment copies and 1 invoice, perhaps for ship items out of land.

    Other Idea perhaps is add an Field for Number of Shipment Copies to the Customer Card? Hmm.

    I Way that i find good but i think is not practiable is, when posting the shipment or invoice, that navision ask at same time how much numbers of copies are needed for print after post.

    Well. I Think for the moment is your solution nice. I will go to ask our vendors if they can alive if i change it so.

    Thanks.
    (Oo)=*=(oO)
  • Options
    philippegirodphilippegirod Member Posts: 191
    If you add a field to have the Nb of Invoices and Nb of Shipments, this a is very simple solution to make... let me have a look on the possibiliites to have when posting, the nb of invoices and shipments.
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • Options
    philippegirodphilippegirod Member Posts: 191
    Other Solution...
    in the CodeUnit 82 replace the next code
    PrintReport(ReportUsage : Integer)
    ReportSelection.RESET;
    ReportSelection.SETRANGE(Usage,ReportUsage);
    ReportSelection.FIND('-');
    REPEAT
      ReportSelection.TESTFIELD("Report ID");
      CASE ReportUsage OF
        ReportSelection.Usage::"S.Invoice":
          REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesInvHeader);
        ReportSelection.Usage::"S.Cr.Memo":
          REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesCrMemoHeader);
        ReportSelection.Usage::"S.Shipment":
          REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesShptHeader);
        ReportSelection.Usage::"S.Ret.Rcpt.":
          REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,ReturnRcptHeader);
      END;
    UNTIL ReportSelection.NEXT = 0;
    
    By this one :
    PrintReport(ReportUsage : Integer)
    ReportSelection.RESET;
    ReportSelection.SETRANGE(Usage,ReportUsage);
    ReportSelection.FIND('-');
    REPEAT
      ReportSelection.TESTFIELD("Report ID");
      CASE ReportUsage OF
        ReportSelection.Usage::"S.Invoice":
          REPORT.RUN(ReportSelection."Report ID",TRUE,FALSE,SalesInvHeader);
        ReportSelection.Usage::"S.Cr.Memo":
          REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,SalesCrMemoHeader);
        ReportSelection.Usage::"S.Shipment":
          REPORT.RUN(ReportSelection."Report ID",TRUE,FALSE,SalesShptHeader);
        ReportSelection.Usage::"S.Ret.Rcpt.":
          REPORT.RUN(ReportSelection."Report ID",FALSE,FALSE,ReturnRcptHeader);
      END;
    UNTIL ReportSelection.NEXT = 0;
    

    Explanations : the REPORT.RUN fonction as the next parameters :
    1 : ID of the report
    2 : Using of the request window (True or False)
    3 : Using of the System printer (TRUE or False)
    4 : Record to print

    I have replaced the parameter 2 by TRUE (instead of FALSE) to ask the sytem to show the request window before printing. Be carefull, the user will have every time this request window... (for Invoice and Shipment)
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • Options
    madmmadm Member Posts: 92
    although our shipments have been heavily modified, we control the no of copies of the delivery note via :

    posted shipments > print > options > no of copies

    not sure if this is standard functionality
  • Options
    philippegirodphilippegirod Member Posts: 191
    Yes, it is a standard but..... you don't have the Request form of the report when you use the "Post and Print" function.
    My candle burns by both ends, it will not last the night,
    But oh my foes and oh my friends, it gives a lovely light
  • Options
    madmmadm Member Posts: 92
    Yes, it is a standard but..... you don't have the Request form of the report when you use the "Post and Print" function.

    although there isnt the request form in the post and print function, this function takes into account the setting in the request form.

    So we change it via the posted shipments form, and this then affects the post and print function,
Sign In or Register to comment.