Code for petty cash name and amount (rough work)

Discussion in 'Free Source Codes' started by RAJESH BHANUSHALI, May 1, 2021.

    

  1. I am making small form list of name and amount.. everything is ok, just could not figure out where i am going wrong.

    This will help in recording name and amount in tally only for unregular cash loan or expenses

    Suggest regarding below code


    [#Menu: petty cash]
    Add : Key Item : Annexure to 1234 :R:Create: COTIBNPDDA
    [Report: COTIBNPDDA]
    Form : COTIBNPDDA
    Object : content
    [Form: COTIBNPDDA]
    Part : FormSubTitle, COTIBNPDDA Part
    FullWidth : No
    Height : 90% Screen
    Background : @@SV_CHEQUE
    SpaceRight : 0.5
    SpaceLeft : 1.5
    Local : Field : Form SubTitle : Info : $$LocaleString:"Annexture to 1234"
    Option : Small Size Form
    [Part: COTIBNPDDA Part]
    Lines : COTIBNPDDA Part
    Repeat : COTIBNPDDA Part : COTIBNPDDA
    Break on : $$IsEmpty:$COTIBNPDDA
    Scroll : Vertical
    Height : 50% Screen
    [Line: COTIBNPDDA Part]
    Fields : COTIBNPDDA Part, amount field
    Local : Field : Default : Delete : Border
    Local : Field : Amount Field:Storage:CMP Amount

    [Field: COTIBNPDDA Part]
    Use : Short Name Field
    Storage : COTIBNPDDA
    Unique : Yes

    [System: UDF]
    COTIBNPDDA : String : 7101
    CMP Amount:Amount:7102
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Make a Aggregate and REPEAT the aggregate.
     



  3. what is aggregate?? :( and where i should place it???
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [System: UDF]
    MyAggr : Aggregate : 7000
    COTIBNPDDA : String : 7101
    CMP Amount:Amount:7102
     



  5. sir have try to done, but still error is the same, will you please review my code where i am lacking.
    i have highlighted part where i have done changes...

    [#Menu: pettycash]
    Add : Key Item : Annexure to 1234 :R:Create: COTIBNPDDA

    [Report: COTIBNPDDA]
    Form : COTIBNPDDA
    Object : content

    [Form: COTIBNPDDA]
    Part : FormSubTitle, COTIBNPDDA Part
    FullWidth : No
    Height : 90% Screen
    Background : @@SV_CHEQUE
    SpaceRight : 0.5
    SpaceLeft : 1.5
    Local : Field : Form SubTitle : Info : $$LocaleString:"Annexture to 1234"
    Option : Small Size Form

    [Part: COTIBNPDDA Part]
    Lines : COTIBNPDDA Part
    Repeat : COTIBNPDDA Part : cotiaggr
    Break on : $$IsEmpty:$COTIBNPDDA
    Scroll : Vertical
    Height : 50% Screen


    [Line: COTIBNPDDA Part]
    Fields : COTIBNPDDA Part, amount field
    Local : Field : Default : Delete : Border
    Local : Field : Amount Field:Storage:CMP Amount

    [Field: COTIBNPDDA Part]
    Use : Short Name Field
    Storage : COTIBNPDDA
    Unique : Yes

    [System: UDF]
    cotiaggr:Aggregate:7100
    COTIBNPDDA : String : 7101
    CMP Amount:Amount:7102
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You have not YET informed...what the problem / error is ???
     



  7. Sir Things are not gettign Saved. after accepting the form
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    What is this Object : Content ???? From where did you get this ??? :confused::confused:

    Make it Object : Company
     



  9. while making object:company

    there is one error "Company Name has no meaningful characters!" and it is also not allowing to enter amount

    i am just doing doing R & D hoping i will get successful somewhere...

    I have got Obect:Content from Object.tdl from tally developer default tdl release
     


  10. BizVim IT Solutions

    BizVim IT Solutions New Member




    ;;; Its Done


    [#Menu:gateway of tally]
    Add : Item : Before: @@LocQuit : Test : Menu : petty cash

    [Menu: petty cash]

    Add : Key Item : Annexure to 1234 :R:Alter: COTIBNPDDA

    [Report: COTIBNPDDA]
    Form : COTIBNPDDA
    Object : Company

    [Form: COTIBNPDDA]
    Part : FormSubTitle, COTIBNPDDA Part
    FullWidth : No
    Height : 90% Screen
    Background : @@SV_CHEQUE
    SpaceRight : 0.5
    SpaceLeft : 1.5
    Local : Field : Form SubTitle : Info : $$LocaleString:"Annexture to 1234"
    Option : Small Size Form

    [Part: COTIBNPDDA Part]
    Lines : COTIBNPDDA Part
    Repeat : COTIBNPDDA Part : cotiaggr
    Break on : $$IsEmpty:$COTIBNPDDA
    Scroll : Vertical
    Height : 50% Screen

    [Line: COTIBNPDDA Part]
    Fields : COTIBNPDDA Part
    Right Field : COTIBNPDDA Amount

    [Field: COTIBNPDDA Part]
    Use : Short Name Field
    Storage : COTIBNPDDA
    Unique : Yes

    [Field: COTIBNPDDA Amount]
    Use : Amount Field
    Storage : CMPAmount
    Format : "NoZero,Decimal:2"
    Align : Right

    [System: UDF]
    cotiaggr : Aggregate : 7800
    COTIBNPDDA : String : 7801
    CMPAmount : Amount : 7802
     



  11. thank you sir, i got my mistak. While defining menu i have to enter it as Alter not Create
     


Share This Page