Project

General

Profile

Edit Copy Actions

Feature #208

open

Petty Cash Reimbursement

Added by Junaid M over 1 year ago. Updated 3 months ago.

Status:
Reopen Bugs Testing Done
Priority:
Normal
Target version:
Start date:
06/27/2023
Due date:
% Done:

90%

Estimated time:
Owner(Agency):
Travvise
Time Taken(HH):
Module:
Petty Cash Reimbursement
Tested By:
unnikannan S
Code Reviewed By:

Description

Coding Petty Cash Reimbursement


Files

clipboard-202404131125-rglgr.png (228 KB) clipboard-202404131125-rglgr.png unnikannan S, 04/13/2024 11:25 AM

Add

Subtasks


Add

Related issues

Actions #1

Updated by Junaid M over 1 year ago

  • Assignee changed from travvise Admin to Amal Pious

Updated by Anil KV over 1 year ago

Old Work Flow - NOT USE

1) Search Popup load master data in filter options
2) Petty cash account should not change master and search
3) Load only Petty cash Accounts (Cash Type = Petty cash)
4) Payable = Credit - Debit
5) Balance = Payable - Paid Amount    
6) table - cashmanagement.tbl_petty_reimbursement -> Document and Transaction table also
7) No Transaction/Posting
8) Search SQL

SELECT tr.pk_transaction_id,
       tr.fk_branch_id,
       tr.fk_department_id,
       tr.fk_ledger_id,
       tr.dat_transaction,
       tr.vhr_ledg_currency,
       tr.dbl_ledg_cur_debit,
       tr.dbl_ledg_cur_credit,
       tr.dbl_ledg_cur_outstanding,
       tr.dbl_ledg_cur_reserved_amount,
       tr.vhr_base_currency,
           tr.dbl_base_cur_debit,
           tr.dbl_base_cur_credit,
       tr.dbl_base_cur_outstanding,
       tr.dbl_base_cur_reserved_amount,
           tr.vhr_cons_currency,
           tr.dbl_cons_cur_debit,
       tr.dbl_cons_cur_credit,
           tr.dbl_cons_cur_outstanding,
       tr.dbl_cons_cur_reserved_amount,
       tr.int_record_ref_no,
       tr.vhr_reference,
       tr.txt_narration,
       doc.pk_documents_id,
       doc.vhr_document_no
FROM transaction.tbl_transaction tr
     LEFT JOIN document.tbl_documents AS doc
        ON doc.pk_documents_id= tr.fk_documents_id
WHERE tr.sin_posting_status = 1
    AND tr.sin_document_status = 1
    AND tr.sin_transaction_status = 1
    AND dbl_ledg_cur_reserved_amount == 0
        AND ....
ORDER BY tr.dat_transaction

9) Save Case
-> Check Any update the transaction record - if deleted the transaction record(Remove another user), Amount invalid- Outstanding Amount != each amount (Update another user) etc..
-> Update transaction table vhr_record_ref_doc_no, int_record_ref_no(Sequence No), _reserved_amount(3-Outstanding Amount) and *sin_re_store_record = 1*
-> 

10) Update Case
-> insert log table
-> Update Document table
-> Delete a Item then 
   - Check the amount have in outstanding field
   - Restore all values in transaction table vhr_record_ref_doc_no, int_record_ref_no(Sequence No), _reserved_amount(3)- Outstanding Amount and *sin_re_store_record = 0*
-> Check Any update the transaction record - if deleted the transaction record(Remove another user), Amount invalid- Outstanding Amount != each amount (Update another user) etc..
-> Update transaction table vhr_record_ref_doc_no, int_record_ref_no(Sequence No), _reserved_amount(3) - Outstanding Amount and *sin_re_store_record = 1*
-> Delete previous Petty Reimbursement Data  and Insert in cashmanagement.tbl_petty_reimbursement

11) Delete Case
-> Check Payment is Done then not allwed to delete
-> insert data to log table
->Each Item wise checking in transaction table
 - Check the amount have in outstanding field
 - Restore all values in transaction table vhr_record_ref_doc_no, int_record_ref_no(Sequence No), _reserved_amount(3) - Outstanding Amount and *sin_re_store_record = 0*
-> Remove cashmanagement.tbl_petty_reimbursement and Document table
-> Set delete status in document table

12) Get Saved Data

SELECT pcr.pk_petty_reimbursement_id,
       pcr.fk_documents_id,
       pcr.int_record_ref_no,
       tr.pk_transaction_id,
       tr.fk_branch_id,
       tr.fk_department_id,
       tr.fk_ledger_id,
       tr.dat_transaction,
       tr.vhr_ledg_currency,
       tr.dbl_ledg_cur_debit,
       tr.dbl_ledg_cur_credit,
       pcr.dbl_ledg_cur_amount AS dbl_ledg_cur_outstanding,
       tr.dbl_ledg_cur_reserved_amount,
       tr.vhr_base_currency,
       tr.dbl_base_cur_debit,
       tr.dbl_base_cur_credit,
       pcr.dbl_base_cur_amount AS dbl_base_cur_outstanding,
       tr.dbl_base_cur_reserved_amount,
       tr.vhr_cons_currency,
       tr.dbl_cons_cur_debit,
       tr.dbl_cons_cur_credit,
       tr.dbl_cons_cur_outstanding,
       tr.dbl_cons_cur_reserved_amount,
       tr.int_record_ref_no,
       tr.vhr_reference,
       tr.txt_narration,
       doc.pk_documents_id,
       doc.vhr_document_no
FROM cashmanagement.tbl_petty_reimbursement pcr
    INNER JOIN transaction.tbl_transaction tr
        ON tr.int_record_ref_no = pcr.int_record_ref_no 
            AND tr.vhr_record_ref_doc_no = 'PTC/001'
    LEFT JOIN document.tbl_documents AS doc
        ON doc.pk_documents_id= tr.fk_documents_id
WHERE pcr.fk_documents_id = 1
ORDER BY tr.dat_transaction

Actions #3

Updated by Anil KV over 1 year ago

  • Status changed from New to Open
  • % Done changed from 0 to 10

Updated by Anil KV over 1 year ago

New Work Folow

1) Tables -> document.tbl_documents(Master Table), transaction.tbl_transaction_references(Details Table) and transaction.tbl_transaction
2) Model -> MdlTransactionReferences in TransactionModels.cs and Document Models
3) Search SQL
SELECT tr.pk_transaction_id,
       tr.fk_branch_id,
       tr.fk_department_id,
       tr.fk_ledger_id,
       tr.dat_transaction,
       tr.vhr_ledg_currency,
        tr.dbl_ledg_cur_roe,
       tr.dbl_ledg_cur_debit,
       tr.dbl_ledg_cur_credit,
       tr.dbl_ledg_cur_outstanding,
       tr.dbl_ledg_cur_reserved_amount,
       tr.vhr_base_currency,
           tr.dbl_base_cur_debit,
           tr.dbl_base_cur_credit,
       tr.dbl_base_cur_outstanding,
       tr.dbl_base_cur_reserved_amount,
           tr.vhr_cons_currency,
       tr.dbl_cons_cur_roe,
           tr.dbl_cons_cur_debit,
       tr.dbl_cons_cur_credit,
           tr.dbl_cons_cur_outstanding,
       tr.dbl_cons_cur_reserved_amount,
       tr.int_record_ref_no,
       tr.vhr_reference,
       tr.txt_narration,
       doc.pk_documents_id,
       doc.vhr_document_no
FROM transaction.tbl_transaction tr
     LEFT JOIN document.tbl_documents AS doc
        ON doc.pk_documents_id= tr.fk_documents_id
WHERE tr.sin_posting_status = 1
    AND tr.sin_document_status = 1
    AND tr.sin_transaction_status = 1
    AND dbl_ledg_cur_outstanding > 0
        AND ....
ORDER BY tr.dat_transaction

- dblRefDocLedgCurAmount = dbl_ledg_cur_outstanding 
- dbl_ledg_cur_reserved_amount = dblRefDocLedgCurAmount

4) Edited Amount <= Outstanding Amount
5) Load Doc 
SELECT tf.pk_transaction_references_id,
       tf.fk_record_ref_doc_id,
       tf.vhr_record_ref_doc_no,
       tf.int_record_ref_doc_sequence_no,
       tf.str_record_ref_doc_type,
       tf.sin_re_store_record,
       tf.dbl_ref_doc_ledg_cur_debit + tf.dbl_ref_doc_ledg_cur_credit AS dbl_ref_doc_ledg_cur_amount,
       tf.dbl_ledg_cur_reserved_amount,
       tf.dbl_base_cur_reserved_amount,
       tf.vhr_ref_doc_cons_currency,
       tf.dbl_cons_cur_reserved_amount,
       tr.pk_transaction_id,
       tr.fk_branch_id,
       tr.fk_department_id,
       tr.fk_ledger_id,
       tr.dat_transaction,
       tr.vhr_ledg_currency,
       tr.dbl_ledg_cur_roe,
       tr.dbl_ledg_cur_debit,
       tr.dbl_ledg_cur_credit,
       tr.dbl_ledg_cur_outstanding,
       tr.vhr_base_currency,
       tr.dbl_base_cur_debit,
       tr.dbl_base_cur_credit,
       tr.dbl_base_cur_outstanding,
       tr.vhr_cons_currency,
       tr.dbl_cons_cur_roe,
       tr.dbl_cons_cur_debit,
       tr.dbl_cons_cur_credit,
       tr.dbl_cons_cur_outstanding,
       tr.vhr_reference,
       tr.txt_narration,
       doc.pk_documents_id,
       doc.vhr_document_no
FROM transaction.tbl_transaction_references tf
    INNER JOIN transaction.tbl_transaction tr
        ON tf.fk_transaction_id = tr.pk_transaction_id 
    LEFT JOIN document.tbl_documents AS doc
        ON tr.fk_documents_id = doc.pk_documents_id
WHERE tf.fk_record_ref_doc_id = 1
ORDER BY tr.dat_transaction

6) Posting - Total Amount
Petty Cash *** Dr 
Petty Cash *** Cr

7) Internal Matching the Doc Dr and Selected docs and Inter Matching Selected Docs Dr and Cr
-Pending
8) Get Matched Document and Amount -> Document Cr Side matched Against Doc and Amount
-Pending

Actions #5

Updated by Amal Pious over 1 year ago

  • Status changed from Open to Coding Started
  • % Done changed from 10 to 40
Actions #6

Updated by Amal Pious over 1 year ago

  • Status changed from Coding Started to Particialy Coding Done

Updated by Seema Mathew over 1 year ago

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

ISSUE FOUNDED****
1.SAVING ERROR
2.ADDED PETTY CASH CLEARING FROM UI

Actions #8

Updated by Amal Pious 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

3. CALCULATION ERROR IN OUTSTANDING AMT, BALANCE AMOUNT

4.NOT CLEARING DOCUMENT NO WHILE CLICKING NEW TAB, MISSING DATAS WHILE CHOOSING EDIT MODE FROM DOCUMENT SEARCH

Actions #10

Updated by Seema Mathew over 1 year ago

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

Updated by unnikannan S over 1 year ago

Seema Mathew wrote in #note-9:

3. CALCULATION ERROR IN OUTSTANDING AMT, BALANCE AMOUNT

4.NOT CLEARING DOCUMENT NO WHILE CLICKING NEW TAB, MISSING DATAS WHILE CHOOSING EDIT MODE FROM DOCUMENT SEARCH
5.ERROR WHILE CLEARING DATE AND SAVE
6.SHOWING AMOUNT IN QAR,AND USD WHILE SWITCHING INTO NEW TAB

Actions #12

Updated by Amal Pious 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

Updated by unnikannan S about 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.RE-DIRECT ISSUE NOT FIXED
2.ADD MANDATORY FIELDS IN DOC AND POSTING STATUS AND CHANGE TO BY:
3.ERROR WHILE DELETING DOCUMENT (42883: procedure sp_delete_document(bigint, integer, bigint, character varying[], unknown) does not exist)
4.SHOW PAID AMOUNT AND BALANCE IN UI
5.ADD A RESPONSIBLE ACCOUNT FIELD IN DROP DOWN
6.ADD INFO MESSAGE AS BLUE
7.MISSING PETTY CASH A/C ADDED IN SEARCH FIELD NOT SHOWN IN UI
8.CHANGE ERROR MESSAGE TO SELECT ANY PETTY CASH A/C FOR REIMBURSE

Actions #15

Updated by Anil KV about 1 year ago

  • Assignee changed from Amal Pious to Aparna Mathew
Actions #16

Updated by Aparna Mathew about 1 year ago

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

Updated by unnikannan S about 1 year ago

TESTING DONE

Updated by unnikannan S about 1 year ago

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

ISSUE FOUNDED

1.MISSING PETTY CASH CURRENCY CODE
2.CONSIDER OUTSTANDING AMOUNT AFTER MATCHED

Actions #19

Updated by Aparna Mathew about 1 year ago

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

Updated by unnikannan S about 1 year ago

TESTING DONE

Updated by unnikannan S about 1 year ago

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

ISSUE FOUNDED

1.MISSING PRECISION VALUE WHILE RELOADING DOC
2.CLEAR UNDER SCORE FROM DELETED INFO MESSAGE

Actions #22

Updated by Aparna Mathew about 1 year ago

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

Updated by unnikannan S 11 months ago

TESTING DONE

Updated by unnikannan S 11 months ago

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

ISSUE FOUNDED

1.Error On Save (42703: column tf.int_record_ref_doc_sequence_no does not exist)

Actions #25

Updated by Aparna Mathew 11 months ago

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

Updated by unnikannan S 11 months ago

Actions #27

Updated by Aparna Mathew 11 months ago

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

Updated by unnikannan S 11 months ago

TESTING DONE

Updated by unnikannan S 6 months ago

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

ISSUE FOUNDED

1.Allowing Save Without Data In The List

Actions #30

Updated by Aparna Mathew 6 months ago

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

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 unnikannan S 5 months ago

  • Status changed from Testing Done to Reopen Bugs
  • % Done changed from 90 to 50

ISSUE FOUNDED

1.Not Showing Print

Actions #33

Updated by Aparna Mathew 5 months ago

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

Updated by unnikannan S 3 months ago

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

Updated by Arathy PS 3 months ago

  • Assignee changed from Aparna Mathew to Augustin Jose
Edit Copy Actions

Also available in: Atom PDF