How to Fetch total invoice value,taxable value,cgst amt,sgstamt,igstamt

Discussion in 'Free Source Codes' started by Neeru, Mar 8, 2020.

    
  1. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Send full code to nehalsofttech@gmail.com
     


  2. PANKAJ BHONDLE

    PANKAJ BHONDLE Active Member


    Remove if:$PartyLedgername="Gst Payable" ;in line level
     


  3. sattam

    sattam Active Member


    What u want please clarify in details.
    Are you want to remove those vouchers which have class entry or remove those which have not class entry?
     


  4. rony

    rony Member


    Sattam Sir,
    I want to remove those vouchers which have class entry.
     


  5. sattam

    sattam Active Member


    Try This
    Code:
    [System: Formulae]
    myfilter:$$IsEmpty:$ClassName
     


  6. rony

    rony Member


    Sattamji,
    That already suggested by Amit Sir did not work. U also suggested function did not help. I posted my collection also in that this formula is there. If u can modify.
    Thanks
     


  7. sattam

    sattam Active Member


    Dear rony have you tried my recent code?
    earlier I suggest myfilter: $$IsEmpty:##SVClass
    now I suggest
    myfilter:$$IsEmpty:$ClassName

    Both are not same
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    My Filter1 : $$IsEmpty:$TaxAdjustment
     


  9. rony

    rony Member


    Dear Experts,
    I am very much thankful to all specially Amitsir and Sattamji. Both function works, but for Amitsir surprisingly same TDL makes diff result for diff company, where both company configuration R same .In one company Omit Class entry in other don't. Checking why it react diff. Sattamji works for both. Any way I much thankful and highly appreciate your help Thanks again.THANKS, THANKS
     


  10. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    My formula is as per cause.......Sattam's is for CLASS.........so you can combine the two.....by using OR.
     
    Jaydeep Shah likes this.


  11. NSA

    NSA Member


    Dear Experts,

    My Sales Voucher Consist of Both Inventories and Service for Example:
    ----------------------------------------------------------------------------------
    Particulars Qty Rate Amount
    -----------------------------------------------------------------------------------
    8" Hollow Block (Stock Item) 1000 0.500 500

    Transportation Charge (Ledger) 50
    -----------------------------------------------------------------------------------
    Total 550
    -----------------------------------------------------------------------------------

    I was trying to call the inventories and ledger details: I mean, I need the StockItemName for the inventories and the LedgerName for the Accounting Entreies in the Same field. Is there any way to construct like that?

    At present my coding is as below: The inventory details are coming correctly, but no details of Income ledger involved in the sales. Can any one help me?

    Line :pvTfmt DebitDetlsLne

    Repeat : PvTfmt DebitDetlsLne : My Repeat Coll
    [Field : PvTfmt ParticularFld]

    Use : Name Field
    Set as : $valStockItemName
    Set Always : Yes
    FullWidth : Yes
    Style : Small

    [Collection : My Src Coll]
    Type : Vouchers : Voucher Type
    Child of : $$VchTypeSales
    belongs to : yes

    [Collection : My Repeat Coll]
    Source Collection : My Src Coll
    Filter: LedFil
    Walk : Inventory Entries
    By : ValMasterID: $MasterID
    By : valStockItemName : $StockItemName

    Aggr Compute : ValBilledQty : Sum : $BilledQty
    AggrCompute : ValAmount : Sum : $Amount

    Fetch: date,VoucherNumber,PartyLedgerName


    [System: Formulas]
    LedFil: $PartyLedgerName = ##LedgerName
     
    Last edited: Nov 5, 2020


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Enter in Accounting Invoice mode.............
     


  13. NSA

    NSA Member


    Yes. I am getting the inventories details correctly. But the Income Ledger is not coming in the UDF
     


  14. NSA

    NSA Member


    Use : Name Field
    Set as : $valStockItemName
    Set Always : Yes
    FullWidth : Yes
    Style : Small

    Is it correct? I think it can only fetch the inventory item name (Stcok Item Name). To get the income ledger name and value I think I have to refer something else
     


  15. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In the same Field......... 2 different objects are not possible.
     


  16. NSA

    NSA Member


    Thank You Sir,
     


  17. Himanshu-2002

    Himanshu-2002 Active Member


    Create a Collection Which Will Hold Income Ledger Name

    Walk Through The Function and Set your required value in variable and return the same variable in field

    Example:

    [Field: MyField]
    Set as $$MyNewFunc

    [Function: MyNewFunc]
    Variable: AllStockItemString: String
    000: Walk Collection: Inventory Entries
    010: Set: AllStockItemString:##AllStockItemString +$$String:$StockItemName
    020: End walk
    030: Return: ##AllStockItemString
     


  18. Himanshu-2002

    Himanshu-2002 Active Member


    Amit Sir....I think We can achieve this By Using the above method which I post.... Please check if It is wrong..
     


  19. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    What you made above...that can be done........ It is just a STRING..........

    What I understood is that during entry he wants a field to hold a StockItem or LedgerName........ as the case maybe..............

    Anyway in my personal opinion ----- when members ask a query they SUPPOSE that others (query solvers) understand it all.... but sometimes it is not possible to have the idea of the coders to be implanted in problem solvers by just looking at a itsy-bitsy code......... and so it happens, most of the suggestions/solutions are waste of time.
     


  20. NSA

    NSA Member


    Sir,

    I have applied this given function, but now the fields are showing blank.
     


  21. Himanshu-2002

    Himanshu-2002 Active Member


    Sir That is a example Not Solution Plus Please post your applied code So, I can check the mistake in that
     


  22. NSA

    NSA Member


    [Collection : RCP Main Coll]

    Type : Vouchers : Ledger
    Child Of : #LedgerName

    [Function: RCPVoucherwalkFunc]
    Variable: AllStockItemString: String
    000: Walk Collection: RCP Main Coll
    010: Set: AllStockItemString:##AllStockItemString +$$String:$StockItemName
    020: End walk
    030: Return: ##AllStockItemString

    [Field : RCP ParticularFld]

    Use : Name Field
    Set as : $$RCPVoucherwalkFunc
    Set Always : Yes
    FullWidth : Yes
    Style : Small

    Sir, Now I have modified that code like above. Asif now the stock names are coming, but the Inocme Ledgers are not coming.

    My purpose is to make a customer statement as attached:
     

    Attached Files:

    • Doc1.pdf
      File size:
      205.9 KB
      Views:
      26


  23. NSA

    NSA Member


    This "tdlexpert.com" is really helpful sir. Thank you so much for promoting this kind of free education. Really appreciate the people behind this. If you don,t mind, I would like give a small donation for the purpose this free education.
     


  24. Himanshu-2002

    Himanshu-2002 Active Member


    Sir You want to Create a String of Income Ledgers then Create a Collection of Income Ledger and walk Through the Collection And Create that String

    [Collection:SunDebColl]
    Type: Ledgers
    Child of:"Sundry Debtors"
    Belong To: Yes


    [Field: MyField]
    Set as $$MyNewFunc

    [Function: MyNewFunc]
    Variable: AllLedgerString: String
    000: Walk Collection: SunDebColl
    010: Set: AllLedgerString: ##AllLedgerString + $$String:$Name
    020: End walk
    030: Return: ##AllLedgerString
     


  25. Himanshu-2002

    Himanshu-2002 Active Member


    This is again a Example So, Please Modify it According and Try to understand the Function
     


Share This Page