Cost Centre wise consolidated sales statement

Discussion in 'Tally Developer' started by Varadha, Jun 14, 2019.

    
  1. Varadha

    Varadha Member


    Dear Sir
    I am trying to develop a report which is a consolodated statement showing sales cost centre wise. i am unable to get total sales cost centre wise it shows only closing balance of each cost centre. I require voucher type wise totals for each cost centre i mean if sales returns are recorded through credit note i should be abloe to get total of such returns cost centre wise kindly advise me. herewith i am attaching my code
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In your collection......you compute...
    SalesAmt : If $$IsSales:$VoucherTypeName Then $Amount Else 0 ... and so on with the other voucher types.
     
    Last edited: Jun 14, 2019


  3. Varadha

    Varadha Member


    Thank you very much sir you are great sir i got the result
     


  4. Varadha

    Varadha Member


    Amit sir one more help i have commission slabs defined at company level. commission is calculated based on collection slabs and their corresponding commission percentage how obtain commission rate based on the slab in which my net collections Fall please help me sir i am attaching modifies code of Incentive report as well incentive slabs code
     

    Attached Files:



  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You can use formula.............

    If Sales-CN > 0 and Sales-CN <= 10000 then (Sales-CN) * .05 Else +
    If Sales-CN > 10000 and Sales-CN <= 50000 then (Sales-CN) * .06 Else +
    If Sales-CN > 50000 and Sales-CN <= 100000 then (Sales-CN) * .07 Else (Sales-CN) * .08
     


  6. Varadha

    Varadha Member


    no sir my commisson percentages should come from incentive slabs table it has to compare my netcollection amount and identify the commission against the slab in which my net commission falls
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    But you do not have any Date/Period constraints in your code.......... on what basis will you apply the slab?? In the current scenario of your code, it will take the average basis since no period/date exists.
     


  8. Varadha

    Varadha Member


    on totals only sir i will add period button later
     


  9. Varadha

    Varadha Member


    i am able to compare sir but not able to fetch commission value from the commission table
     


  10. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    send me your DEMO tally data...to understand your code and working.
     


  11. Varadha

    Varadha Member


    Dear Amit Sir I am sending Modified Code snippets and demo company data for your analysis
     

    Attached Files:



  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You will need to define a Aggregate UDF also.......... in order for that value to be available in your report.
     


  13. Varadha

    Varadha Member


    Aggregate UDF defined in Incentive slabs report with that aggregate udf i constructed collection IncentiveSlabscoll but in uploade file a small wrong was done instead of writting Type:IncentiveSlab:Company it was written as Type:Company:IncentiveSlabs
     


  14. Varadha

    Varadha Member


    thank you for your help sir i could complete my task thanks a lot. Keep helping us
    Regards
    Varadha raju
     


Share This Page