opening sales voucher directly from main menu

Discussion in 'General Discussions' started by Anshul Garg, Jun 25, 2022.

    
Tags:
  1. Anshul Garg

    Anshul Garg Member


    i am trying to open sales voucher type with specific class type from menu button
    everything is working fine except dispatch details screen is coming different
    please help

    please find below code
    [Menu:Data Entry Screen]
    Title : $$LocaleString:"Data Entry Screen"

    Indent : @@MustardOil
    Item : BLANK
    Key Item : Mustard Oil Loose Igst : L : Call : SetSaleMOilLooseIgst
    Key Item : @@locQuit : Q

    [System:Formula]
    MustardOil:$$LocaleString:"Mustard Oil"


    [Function:SetSaleMOilLooseIgst] ;this fuction is used
    Variable:SvVoucherType,SVCLASS,InvoicingModeFlag

    02:set:SvVoucherType:"Sales"

    04:Set :SVCLASS:"MUSTARD OIL LOOSE LOCAL"
    05:Set : InvoicingModeFlag : Yes

    10:Create Collection:Company Vouchers




    one more thing if the previous open voucher is same as sale than there is no problem with this code
     

    Attached Files:



  2. Anshul Garg

    Anshul Garg Member


    please help.
    Function is not going ahead after create collection until i am escaping the screen.
    please help
     
    Last edited: Jun 27, 2022


Share This Page