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 74 commits into
base: dev
Choose a base branch
from
Open

Refactor dev #13

wants to merge 74 commits into from

Conversation

Bhavan23
Copy link
Collaborator

@Bhavan23 Bhavan23 commented Jan 2, 2025

No description provided.

refactor: update install file path
refactor: single payment code add in bank connector
fix: add filter to the bank account
fix: fetch company bank account details during the API call
fix: rename method action in payload
@Bhavan23 Bhavan23 requested review from l0gesh29 and Navin-S-R January 2, 2025 11:35
@Bhavan23 Bhavan23 marked this pull request as ready for review January 2, 2025 11:38
refactor: pretify message content
refactor: removed unused function 'get_bank_entry_for_payroll'
refactor: optimise payment request overrides code
fix: add condition payment order type
"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?

{
"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.

{
"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",
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.


after_install = ["india_banking.install.after_install"]

before_uninstall = "india_banking.uninstall.before_uninstall"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you put this in array too? Is it supported?

doc_events = {
"Bank": {"on_trash": "india_banking.india_banking.doc_events.bank.bank_on_trash"},
"Bank Account": {
"validate": "india_banking.india_banking.doc_events.bank.validate_ifsc_code"
Copy link
Contributor

Choose a reason for hiding this comment

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

Make a new file for bank_account, as it is a separate doctype.

}

doc_events = {
"Bank": {"on_trash": "india_banking.india_banking.doc_events.bank.bank_on_trash"},
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename this function as disallow_standard_bank_deletion

@@ -8,7 +8,8 @@ frappe.ui.form.on("Bank Connector", {
filters: {
disabled: 0,
is_default: 1,
is_company_account: 1
is_company_account: 1,
company: doc.company,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use the standard linter and rectify the spacing for the entire repository.



def validate_ifsc_code(doc, method=None):
if not IFSC_PATTERN.match(cstr(doc.branch_code)):
Copy link
Contributor

Choose a reason for hiding this comment

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

User often get confused with branch code and IFSC code. Can we set the label as IFSC Code for this field if this app is installed?

chore: rename 'bank_on_trash' to 'disallow_standard_bank_deletion'
fix: update maximum limit for all mode of transfer
chore: rename 'Branch Code' label to 'IFSC Code' in bank account doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants