Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor dev #13

Open
wants to merge 75 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 70 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
9fcc39b
refactor: enable payment request creation for adhoc payment.
Bhavan23 Dec 16, 2024
50baba5
refactor: override the payment request's "make_payment_request_function"
Bhavan23 Dec 16, 2024
4dd7187
refactor: remove the overrite payment request.
Bhavan23 Dec 16, 2024
7100cc4
refactor: Create a custom payment field for both payment orders and r…
Bhavan23 Dec 17, 2024
6a982d7
refactor: enable create payment request button in purchase order and …
Bhavan23 Dec 17, 2024
96cb562
refactor: modify payment_order_type option with journal entries
Bhavan23 Dec 17, 2024
2c416db
refactor: add default bank
Bhavan23 Dec 17, 2024
59a753e
refactor: create default mode of transfer
Bhavan23 Dec 17, 2024
4cca4f2
refactor: add default payment type
Bhavan23 Dec 17, 2024
ab6574f
refactor: Place uninstall hooks in a different file.
Bhavan23 Dec 17, 2024
053ec3b
fix: remove payment order copy file
Bhavan23 Dec 17, 2024
18b2562
refactor: take out the bank event and add it to the bank overrite class.
Bhavan23 Dec 17, 2024
ced0555
fix: remove overrides bank and use docevent hooks
Bhavan23 Dec 18, 2024
acc11ad
refactor: payments button label and api path
Bhavan23 Dec 19, 2024
7769578
refactor: remove purchase order and purchase invoice js overrides
Bhavan23 Dec 19, 2024
d4238a0
fix: create default mode of transfers
Bhavan23 Dec 19, 2024
8f6eadf
fix: remove patch file
Bhavan23 Dec 19, 2024
f9d53d5
refactor: remove unused function and imports from utils
Bhavan23 Dec 19, 2024
a130b7e
refactor: remove unused api file
Bhavan23 Dec 19, 2024
f0b8ec8
refactor: format indentation
Bhavan23 Dec 19, 2024
8d247b6
refactor: remove unused file from doc_events
Bhavan23 Dec 19, 2024
bcea160
refactor: create custom fields
Bhavan23 Dec 20, 2024
ca33687
refactor: remove customisation exports
Bhavan23 Dec 20, 2024
5c8068f
refactor: remove bank payment request doc
Bhavan23 Dec 20, 2024
98f6575
safty commit
Bhavan23 Dec 20, 2024
9aa3f2e
refactor: bulk payment code add in bank connector
Bhavan23 Dec 22, 2024
c8190a2
refactor: revamped payment status code in bank connector
Bhavan23 Dec 22, 2024
f2e03d1
fix: convert the request log to look prettier
Bhavan23 Dec 23, 2024
041b86f
fix: handle payment response json validation erro
Bhavan23 Dec 23, 2024
1c0b726
refactor: refactor and optimize
Bhavan23 Dec 24, 2024
62fe81f
typo: remove debugger-throw on payment order validation
Bhavan23 Dec 24, 2024
a12094f
feat: implement workflow enabling/disabling functionality in IndiaBan…
Bhavan23 Dec 24, 2024
a82af1a
safety_commit
Bhavan23 Dec 24, 2024
a8cd08a
fix: change variable name to python snake case
Bhavan23 Dec 27, 2024
7ee6a6c
Merge pull request #12 from aerele/safety-commit-new
Bhavan23 Dec 27, 2024
e28e4c3
refactor: add summarise based on field
Bhavan23 Dec 27, 2024
83a6919
refactor: modify all is party-wise condition to summarise based on c…
Bhavan23 Dec 27, 2024
c360f36
refactor: pretify
Bhavan23 Dec 27, 2024
6e8a23c
feat: update dimension while summarising the payment order
Bhavan23 Dec 27, 2024
62b6087
refactor: add default bankaccount validation
Bhavan23 Dec 27, 2024
818b1b0
refactor: modify SQL query using query builder
Bhavan23 Dec 27, 2024
94af04d
fix: use bank account filter to fetch bank entry
Bhavan23 Dec 27, 2024
7a4f927
refactor: recreate Bank Payment Request with disabled create options
Bhavan23 Dec 27, 2024
0a6f8e3
refactor: prettify the payment request js code
Bhavan23 Dec 27, 2024
32f0851
refactor: remove the bank account fixture workflow
Bhavan23 Dec 27, 2024
0cf8191
refactor: optimise bank doc_events code
Bhavan23 Dec 27, 2024
aab8f6b
fix: remove payment order from accounting dimention hook
Bhavan23 Dec 27, 2024
5f51998
fix: update payment status before reinitiate payment.
Bhavan23 Dec 31, 2024
9fa4b72
refactor: while create api log return name ref
Bhavan23 Jan 2, 2025
71ec851
fix: add summarize based on only draft state
Bhavan23 Jan 3, 2025
660c80d
feat: add pending payment cancel button
Bhavan23 Jan 3, 2025
d13164d
refactor: add custom field update patch
Bhavan23 Jan 3, 2025
dc69f0d
fix: while create payment entry modify filter condition with accounti…
Bhavan23 Jan 3, 2025
b20ba2e
feat: set party field name for share holder and customer party type
Bhavan23 Jan 5, 2025
901ea7b
fix: reload doc once value update
Bhavan23 Jan 5, 2025
316ebd6
refactor: optimise 'validate_summary' method
Bhavan23 Jan 5, 2025
41dea60
refactor: optimise update payment status method
Bhavan23 Jan 5, 2025
ff3f27c
refactor: optimise payment entry py file
Bhavan23 Jan 5, 2025
418623b
refactor: optimise payment request python code
Bhavan23 Jan 5, 2025
f706ad0
refactor: add translate to all message
Bhavan23 Jan 6, 2025
bf6d5c5
fix: while process payment request summarise field extend with paymen…
Bhavan23 Jan 6, 2025
336b5cf
refactor: move "get_bank_balance" function in bank connector
Bhavan23 Jan 6, 2025
a7b871b
refactor: remove unused function from payment_order python file
Bhavan23 Jan 6, 2025
eb16ac0
refactor: stop bank payment request client actions
Bhavan23 Jan 6, 2025
848611f
refactor: stop bank payment request client actions
Bhavan23 Jan 6, 2025
c1a3410
typo: use js multiline string syntax instead of useing "`"
Bhavan23 Jan 6, 2025
c26fa4b
fix: add payment create_payment_entry function in payment order
Bhavan23 Jan 6, 2025
bb6dc91
fix: update Approved status as completed
Bhavan23 Jan 6, 2025
d0e1781
fix: remove doc.reload avoid data loss
Bhavan23 Jan 6, 2025
80b9214
feat: add payment in the background useing enable_payment_in_the_back…
Bhavan23 Jan 6, 2025
d949117
style: format codebase with linter
Bhavan23 Jan 7, 2025
60fee11
refactor: enable mode of transfer while installing
Bhavan23 Jan 7, 2025
8cb72e6
refactor: add translate to message
Bhavan23 Jan 7, 2025
c1113a4
fix: include payload with summary row details for payment reference
Bhavan23 Jan 7, 2025
206933e
feat: In the log doc, add a button to display the failure reason.
Bhavan23 Jan 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 0 additions & 68 deletions india_banking/api.py

This file was deleted.

105 changes: 105 additions & 0 deletions india_banking/default.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
DEFAULT_MODE_OF_TRANSFERS = [
{
"mode": "IMPS",
"minimum_limit": 0,
"maximum_limit": 200000,
"start_time": "0:00:00",
"end_time": "23:59:59",
"disabled": 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is every mode of transfer, by default disabled?

"priority": "1",
},
{
"mode": "RTGS",
"minimum_limit": 200000,
"maximum_limit": 50000000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make 50 Crore as the upper limit, beyond that LEI number is required.

"start_time": "0:00:00",
"end_time": "23:59:59",
"disabled": 1,
"priority": "1",
},
{
"mode": "NEFT",
"minimum_limit": 0,
"maximum_limit": 100000000000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make 50 Crore as the upper limit, beyond that LEI number is required.

"start_time": "0:00:00",
"end_time": "23:59:59",
"disabled": 1,
"priority": "1",
},
{
"mode": "A2A/FT/Internal",
"minimum_limit": 0,
"maximum_limit": 0,
"start_time": "0:00:00",
"end_time": "23:59:59",
"disabled": 1,
"priority": "1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is account specific. Please bring in that key here. And do the following priority.

  1. A2A
  2. IMPS
  3. RTGS
  4. NEFT

by default. Let the user re-order as per their need.

},
]

STD_BANK_LIST = [
"Yes Bank",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove Yes Bank as of now. Reorder this in alphabetical order.

"HDFC Bank",
"ICICI Bank",
"Axis Bank",
"Kotak Mahindra Bank",
]

DEFAULT_WORKFLOW_STATE = [
"Pending",
"Approved",
]

DEFAULT_WORKFLOW_ACTIONS = ["Approve", "Reject"]

DEFAULT_WORKFLOW_LIST = [
{
"doctype": "Workflow",
"document_type": "Bank Account",
"workflow_name": "Bank Account Approval",
"workflow_state_field": "workflow_state",
"is_active": 1,
"states": [
{
"allow_edit": "All",
"doc_status": "0",
"parent": "Bank Account Approval",
"parentfield": "states",
"parenttype": "Workflow",
"state": "Pending",
"update_value": "Pending",
},
{
"allow_edit": "Accounts Manager",
"doc_status": "0",
"parent": "Bank Account Approval",
"parentfield": "states",
"parenttype": "Workflow",
"state": "Approved",
"update_value": "Approved",
},
],
"transitions": [
{
"state": "Pending",
"action": "Approve",
"next_state": "Approved",
"allowed": "Accounts Manager",
"allow_self_approval": 1,
"parent": "Bank Account Approval",
"parentfield": "transitions",
"parenttype": "Workflow",
},
{
"action": "Reject",
"next_state": "Pending",
"allowed": "Accounts Manager",
"allow_self_approval": 1,
"parent": "Bank Account Approval",
"parentfield": "transitions",
"parenttype": "Workflow",
"state": "Approved",
},
],
}
]
73 changes: 0 additions & 73 deletions india_banking/fixtures/workflow.json

This file was deleted.

16 changes: 0 additions & 16 deletions india_banking/fixtures/workflow_action_master.json

This file was deleted.

20 changes: 0 additions & 20 deletions india_banking/fixtures/workflow_state.json

This file was deleted.

Loading