Project

General

Profile

Edit Copy Actions

Feature #241

open

Turn Over Report

Added by Anil KV over 1 year ago. Updated 6 months ago.

Status:
Testing Done
Priority:
Normal
Assignee:
Sarath Krishnan
Target version:
Start date:
07/09/2023
Due date:
% Done:

90%

Estimated time:
Owner(Agency):
Travvise
Time Taken(HH):
Module:
Turn Over Report
Tested By:
Code Reviewed By:

Description

Coding Turn Over Report


Add

Subtasks


Add

Related issues

Updated by Anil KV over 1 year ago

Solutions

1) GUI Changes
- Column heading Descrption to Account
-List Grouping -> Sale(Need Each Group Total), Refund(Need Each Group Total), Net Sale, Income(Need Each Group Total), Expense(Need Each Group Total), Net Profit
2) SQL
SELECT MAX(coa.vhr_code) AS vhr_code,
    MAX(coa.vhr_name) AS vhr_name,
    MAX(COALESCE(coa.vhr_display_name, coa.vhr_name)) AS vhr_display_name,
        MAX(tr.vhr_sys_module_name) AS vhr_sys_module_name,
        MAX(coa.sin_chart_of_ac_category) AS sin_chart_of_ac_category,
    SUM(tr.dbl_base_cur_debit) AS dbl_debit, -- Currency base field change
    SUM(dbl_base_cur_credit) AS dbl_credit -- Currency base field change
FROM transaction.tbl_transaction tr
    LEFT JOIN document.tbl_documents doc
        ON tr.fk_documents_id = doc.pk_documents_id
    LEFT JOIN accounts.tbl_chart_of_ac coa
        ON tr.fk_main_ledger_id = coa.pk_chart_of_ac_id
    LEFT JOIN accounts.tbl_account ac
        ON coa.pk_chart_of_ac_id = ac.fk_default_main_ledger_id
WHERE ac.sin_if_sys_account = 0
    AND tr.vhr_sys_module_name IN ('SALE', 'REFUND')
    AND tr.sin_posting_status = 1
    AND tr.sin_transaction_status = 1
    AND tr.sin_document_status = 1
    AND tr.fk_branch_id = 1
    AND tr.fk_department_id = 1
    -- tr.dat_transaction or doc.dat_document between
GROUP BY tr.vhr_sys_module_name, tr.fk_main_ledger_id
ORDER BY vhr_name

*Sale -> if vhr_sys_module_name == 'SALE' and sin_chart_of_ac_category IN (1,2); Credit=Paid; debit = Received; Net = Dr-Cr
*Refund -> if vhr_sys_module_name == 'REFUND' and sin_chart_of_ac_category IN (1,2); Credit=Paid; debit = Received; Net = Dr-Cr
*Net Sale -> Sale Total - REfund Total for each column
***Income and Expense ACCOUNT WISE TOTAL in .cs because Sale and Refund seprated
*Income -> if sin_chart_of_ac_category = 3; Credit=Received, Debit=Paid; Net = Cr-Dr
*Expense -> if sin_chart_of_ac_category = 4; Credit=Received, Debit=Paid; Net = Cr-Dr
*Net Profit -> Income Total + Expense Total for each column

Actions #2

Updated by Anil KV over 1 year ago

  • Status changed from New to Open
  • % Done changed from 0 to 10
Actions #3

Updated by Anil KV over 1 year ago

  • Assignee changed from travvise Admin to Shahil Haris
Actions #4

Updated by Anil KV about 1 year ago

  • Assignee changed from Shahil Haris to travvise Admin
Actions #5

Updated by Anil KV about 1 year ago

  • Assignee changed from travvise Admin to Vivekp V
Actions #6

Updated by Anil KV about 1 year ago

  • Status changed from Open to Ready for Coding
  • % Done changed from 10 to 20
Actions #7

Updated by Junaid M 8 months ago

  • Assignee changed from Vivekp V to Sarath Krishnan
Actions #8

Updated by Anonymous 8 months ago

  • Status changed from Ready for Coding to Coding Started
  • % Done changed from 20 to 30
Actions #9

Updated by Sarath Krishnan 8 months ago

  • Status changed from Coding Started to Coding Done
  • % Done changed from 30 to 60

Updated by Arathy PS 8 months ago

  • Status changed from Coding Done to Testing Started
  • Tested By set to Arathy PS

ISSUE FOUNDED:
1)CORRECT THE VALUES IN THE SALE FIELD

Updated by Arathy PS 7 months ago

  • Status changed from Testing Started to Reopen Bugs
  • % Done changed from 60 to 50

ISSUE FOUNDED
1) ADD AN EXTRA LINE AFTER EACH TOTAL IN PRINT
2) WHEN CURRENCY IS CHANGED DATA ON THE GRID IS INCORRECT

Actions #12

Updated by Sarath Krishnan 6 months ago

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

Updated by Arathy PS 6 months ago

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

Also available in: Atom PDF