ADD NEW CITY

Discussion in 'Free Source Codes' started by ASHOK, Dec 22, 2019.

    
  1. ASHOK

    ASHOK Member


    [System : UDF]
    udfLedCity : String : 20001 ;; Ledger City

    ; City Master

    [#Menu : Accounts Info.]
    Add : Key Item : After : @@locLedgers : "City" : Y : Menu : VIT City Menu

    [Menu : VIT City Menu]
    Title : $$LocaleString:"City Master"
    Indent : "Single City"
    Item : BLANK
    Key Item : @@locCreate : C : Create Collection : List of ExtractCostCategories : @Allowed AND $$Allow:Create:AccountsMasters
    Key Item : @@locDisplay : D : Display Collection : List of ExtractCostCategories : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Display:AccountsMasters
    Key Item : @@locAlter : A : Alter Collection : List of ExtractCostCategories : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Alter:AccountsMasters
    Item : BLANK
    ;Indent : "Multiple City"
    ;Item : BLANK
    ;Key Item : @@locCreate : R : Create : Multi Cost Category : @Allowed AND $$Allow:Create:AccountsMasters
    ;Key Item : @@locDisplay : I : Display Collection : Multi Cost Category : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Display:AccountsMasters
    ;Key Item : @@locAlter : T : Alter Collection : Multi Cost Category : @Allowed AND $$NumCostCategories > 0 AND $$Allow:Alter:AccountsMasters
    ;Item : BLANK
    Key Item : @@locQuit : Q
    Allowed : $$IsAccountingOn:$$CurrentSimpleCompany

    [#Collection : List of ExtractCostCategories]
    Title : $$LocaleString:"List of Cities"
    Filter : NoPrimary

    [#Collection : Cost Category]
    Title : $$LocaleString:"List of Cities"
    Filter : NoPrimary

    [System : Formula]
    NoPrimary : $Name <> $$PrimaryCostCategory

    [#Report : SCostCategory]
    Title : $$LocaleString:"Select City"
    Local : Field: MV Title : Info : $$LocaleString:"Name of City"

    [System : Formula]
    MultCostCatCreateModeFormat : $$LocaleString:"Multi City %s %s"

    [#Report : Cost Category]
    Title : $$LocaleString:"City" + @@ModeName + @@SubModeName

    [#Form : Cost Category]
    Delete : Top Parts : CSTCAT Behaviour

    [#Form : Multi Cost Category]
    Width : 100% Screen

    [#Part : MCSTCAT Body]
    Delete : Lines : MCSTCAT Secondary Titles

    [#Line : MCSTCAT Main Titles]
    Delete : Right Fields : MCSTCAT Allocation Title

    [#Field : MCSTCAT Name Title]
    Info : $$LocaleString:"Name of City"

    [#Line : MCSTCAT Body]
    Delete : Right Fields : CSTCAT ForRevenue, CSTCAT ForNonRevenue

    [Collection : MyCity]
    Type : Cost Category
    Fetch : *
    IsOdbcTable : Yes

    ; Ledger

    [#Part : LED Mailing Address]
    Add : Bottom Line : Before : LEDState : lnCityUDF

    [#Field : LED Mailing Address]
    Set Always : Yes

    [Line : lnCityUDF]
    Field : Medium Prompt,fldCityUDF
    Local : Field : Medium Prompt : Set as : "City"
    Local : Field : Medium Prompt : Inactive : NOT @@IsDebtorCreditor

    [Field : fldCityUDF]
    Use : Name Field
    Storage : udfLedCity
    Max : 40
    Table : Cost Category,Not Applicable
    Show Table : Always
    Key : Create Cost Category
    Style : Small Bold
    Inactive : NOT @@IsDebtorCreditor
     
    auruem, Vashisth and Frz like this.


  2. nasir

    nasir Member


    how can i fetch these field in report and invoice in print out
     


  3. tejeet

    tejeet Member


    dear ashokji

    can you develop code for me for mode / terms of payment in order details in invoice , just like above city tdl, when we come to field of mode / terms of payment - table of terms of payment should pop up & we have select any one from the pop up table collection , just like above city tdl , we should able to add / display / alter table contain eg table of collection should have following 1) strictly 100% advance 2) strictly within 30 days etc
     


  4. aliasgar khanrahim

    aliasgar khanrahim New Member


    I need a code for a Category for Ledger Master and Categorised it in Trial Balance.
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Dear Tejeet,

    The code you need is not that hard and quite easily doable by you. You should stop asking others and make some efforts of your own. This will give you confidence and also boost your coding skills. Try doing it........

    The one you need is not very complicated. Take your baby steps in this.......be confident.
     


Share This Page