Project

General

Profile

Edit Copy Actions

Feature #250

open

Customer Productivity Report

Added by Anil KV over 1 year ago. Updated 5 days ago.

Status:
Reopen Bugs Coding Done
Priority:
Normal
Assignee:
Target version:
Start date:
07/09/2023
Due date:
% Done:

70%

Estimated time:
Owner(Agency):
Travvise
Time Taken(HH):
Module:
Customer Productivity Report
Tested By:
unnikannan S
Code Reviewed By:

Description

Coding Customer Productivity Report


Add

Subtasks


Add

Related issues

Actions #1

Updated by Anonymous over 1 year ago

  • Assignee changed from travvise Admin to Karthika V Anand
Actions #2

Updated by Karthika V Anand over 1 year ago

  • Status changed from New to Coding Started
  • % Done changed from 0 to 40
Actions #3

Updated by Karthika V Anand over 1 year ago

  • Status changed from Coding Started to Particialy Coding Done

Updated by Anil KV over 1 year ago

Solutions

1) GUI Change
-Add Status - like ledger Statement
2)SQL
SELECT tr.fk_productivity_mapping_id,
      MAX(ac.vhr_account_code) AS vhr_account_code,
      MAX(ac.vhr_account_name) AS vhr_account_name,
      MAX(ac.vhr_display_name) AS vhr_display_name,
      SUM(CASE WHEN tr.dbl_ledg_cur_credit > 0 THEN tr.dbl_ledg_cur_credit ELSE 0.00 END) AS dbl_sale,--Currency replace based on Input currency
      SUM(CASE WHEN tr.dbl_ledg_cur_debit > 0 THEN tr.dbl_ledg_cur_debit ELSE 0.00 END) AS dbl_refund,--Currency replace based on Input currency
      SUM(tmp.dbl_profit) AS dbl_profit,
      SUM(tmp.dbl_expense) AS dbl_expense
FROM transaction.tbl_transaction AS tr
INNER JOIN accounts.tbl_account AS ac
    ON tr.fk_productivity_mapping_id = ac.pk_account_id
INNER JOIN (SELECT tr.fk_productivity_mapping_id,
        CASE WHEN tr.dbl_ledg_cur_credit > 0 THEN tr.dbl_ledg_cur_credit ELSE 0.00 END AS dbl_profit, --Currency replace based on Input currency
          CASE WHEN tr.dbl_ledg_cur_debit > 0 THEN tr.dbl_ledg_cur_debit ELSE 0.00 END AS dbl_expense--Currency replace based on Input currency
    FROM transaction.tbl_transaction AS tr
        INNER JOIN accounts.tbl_account AS ac
            ON fk_productivity_mapping_id = ac.pk_account_id
    WHERE tr.sin_posting_status = 1 
        AND tr.sin_transaction_status = 1 
        AND tr.sin_document_status = 1
        AND tr.dat_transaction BETWEEN '2023-08-01' AND '2023-08-30'
        AND ac.sin_ac_category IN (3,4) -- Income and Expense account only
        --...
    ) AS tmp
    ON tr.fk_productivity_mapping_id = tmp.fk_productivity_mapping_id
WHERE tr.sin_posting_status = 1 
    AND tr.sin_transaction_status = 1 
    AND tr.sin_document_status = 1
    AND tr.sin_record_type IN (3, 4)
    AND tr.vhr_sys_module_name IN ('SALE', 'REFUND')
    AND tr.dat_transaction BETWEEN '2023-08-01' AND '2023-08-30'
    AND (ac.sin_ac_category = 18 --Cutomer
        OR (ac.sin_ac_category IN (1,2,3,4) AND sin_if_customer = 1) -- COA Act as Customer
        OR (ac.sin_ac_category = 19 AND sin_if_customer = 1) --Supplier act as custmer
        OR (ac.sin_ac_category = 20 AND sin_if_customer = 1) --Employee act as custmer
        OR (ac.sin_ac_category = 21 AND sin_if_customer = 1)) --Commission Agent act as custmer
    --...
GROUP BY tr.fk_productivity_mapping_id
ORDER BY (SUM(tmp.dbl_profit) - SUM(tmp.dbl_expense)) DESC

-- Net = dbl_sale-dbl_refund
--Net Profit = dbl_profit - dbl_expense

Actions #5

Updated by Karthika V Anand over 1 year ago

  • Status changed from Particialy Coding Done to Coding Done
  • % Done changed from 40 to 60

Updated by Seema Mathew over 1 year ago

  • Status changed from Coding Done to Reopen Bugs
  • % Done changed from 60 to 50
  • Tested By set to Seema Mathew

ISSUE FOUNDED****

1.ADD TOTAL AMOUNT IN PRINT

2.ERASER FILTER NOT WORKING

Actions #7

Updated by Karthika V Anand over 1 year ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 60

Updated by Seema Mathew over 1 year ago

TESTING DONE

Actions #9

Updated by Junaid M over 1 year ago

  • Assignee changed from Karthika V Anand to Vivekp V

Updated by unnikannan S over 1 year ago

  • Status changed from Reopen Bugs Coding Done to Reopen Bugs
  • % Done changed from 60 to 50
  • Tested By changed from Seema Mathew to unnikannan S

ISSUE FOUNDED

1.SHOW DATA US PER CONSIDER (FILTER)
2.SHOW ACT US CLIENT A/C (SUPPLIER,COA,AGENT,EMPLOYEE)
3.NO DATA FROM PROFIT,EXPENSE LIST FIELD
4.DONT SHOW WHILE CHOOSING ALL BRANCH DETAILS FOR DATA IN PRINT SHOW US BRANCH :ALL

Updated by Vivekp V over 1 year ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 60

ISSUE FIXED

1.SHOW DATA US PER CONSIDER (FILTER)
2.SHOW ACT US CLIENT A/C (SUPPLIER,COA,AGENT,EMPLOYEE)
3.NO DATA FROM PROFIT,EXPENSE LIST FIELD
4.DONT SHOW WHILE CHOOSING ALL BRANCH DETAILS FOR DATA IN PRINT SHOW US BRANCH :ALL

Updated by unnikannan S over 1 year ago

  • Status changed from Reopen Bugs Coding Done to Reopen Bugs
  • % Done changed from 60 to 50

ISSUE FOUNDED

1.SHOW DATAS AS ON THE CUSTOMER/FOP FIELD ADDED CUSTOMERS,ACT AS CLIENTS
2.NO DATA FROM SALES MODULE

Updated by Vivekp V about 1 year ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 60

ISSUE FIXED

1.SHOW DATAS AS ON THE CUSTOMER/FOP FIELD ADDED CUSTOMERS,ACT AS CLIENTS
2.NO DATA FROM SALES MODULE

Updated by unnikannan S about 1 year ago

  • Status changed from Reopen Bugs Coding Done to Reopen Bugs
  • % Done changed from 60 to 50

ISSUE FOUNDED

1.SHOW CASH SALE DOCUMENTS DATA IN CASE (IF THE FOP IS NOT AN ACT AS CLIENT ACCOUNT)

Updated by Vivekp V about 1 year ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 60

ISSUE FIXED

1.SHOW CASH SALE DOCUMENTS DATA IN CASE (IF THE FOP IS NOT AN ACT AS CLIENT ACCOUNT)

Updated by unnikannan S about 1 year ago

  • Status changed from Reopen Bugs Coding Done to Reopen Bugs
  • % Done changed from 60 to 50

ISSUE FOUNDED

1.SHOWING LEDGER ACCOUNTS (INCOME/EXPENSE) DATA FROM RECEIPT THAT NOT RELATED WITH THE PRODUCTIVITY OF THE CUSTOMER

Updated by Vivekp V about 1 year ago

ISSUE FIXED

1.SHOWING LEDGER ACCOUNTS (INCOME/EXPENSE) DATA FROM RECEIPT THAT NOT RELATED WITH THE PRODUCTIVITY OF THE CUSTOMER

Updated by Vivekp V about 1 year ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 60

ISSUE FIXED

1.SHOWING LEDGER ACCOUNTS (INCOME/EXPENSE) DATA FROM RECEIPT THAT NOT RELATED WITH THE PRODUCTIVITY OF THE CUSTOMER

Updated by unnikannan S about 1 year ago

TESTING DONE

Updated by unnikannan S 12 months ago

  • Status changed from Reopen Bugs Coding Done to Reopen Bugs
  • % Done changed from 70 to 50

ISSUE FOUNDED

1.ADJUST COLUMN LENGTH FOR CODE AND NAME

Updated by Vivekp V 12 months ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 70

ISSUE FIXED

1.ADJUST COLUMN LENGTH FOR CODE AND NAME

Updated by unnikannan S 12 months ago

TESTING DONE

Updated by unnikannan S 12 months ago

  • Status changed from Reopen Bugs Coding Done to Reopen Bugs
  • % Done changed from 70 to 50

ISSUE FOUNDED

1.MISSING DATA FROM SALE IN LIST

Updated by Vivekp V 12 months ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 70

ISSUE FIXED

1.MISSING DATA FROM SALE IN LIST fixed (sale customer sin record type changed from 49 to 3 that change was needed to be done in report query)

Actions #25

Updated by unnikannan S 6 months ago

  • Status changed from Reopen Bugs Coding Done to Testing Done
  • % Done changed from 70 to 90

Updated by Arathy PS about 1 month ago

  • Status changed from Testing Done to Reopen Bugs
  • Assignee changed from Vivekp V to Nawal Sidique
  • % Done changed from 90 to 50

ISSUE FOUND - FIXED
---------------------
1. Not showing profit of a sale.
2. Incorrect profit amount of sale.
3. Not showing total sale amount of sale done from sale tab module.
4. Not showing total refund amount of refund done from refund tab module.
5. Not showing profit of a refund.
6. Wrong data showing when currency of the document is changed and searched using that currency.

Actions #27

Updated by Nawal Sidique about 1 month ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 70

Updated by Arathy PS 12 days ago

  • Status changed from Reopen Bugs Coding Done to Reopen Bugs
  • % Done changed from 70 to 50

ISSUE FOUND - FIXED
--------------------
1. Not showing a customer which has done AR sharing in a sale in the grid (only master customer is showing with his share not the AR shared customer and that amount)

Actions #29

Updated by Nawal Sidique 8 days ago

  • Status changed from Reopen Bugs to Reopen Bugs Coding Done
  • % Done changed from 50 to 70
Edit Copy Actions

Also available in: Atom PDF