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

feat: add Partly Paid status in Invoices #27310

Closed
wants to merge 16 commits into from

Conversation

pruthvi145
Copy link
Contributor

@pruthvi145 pruthvi145 commented Sep 2, 2021

Behaviour

If a part of the invoice amount has been received, Partly Paid state will be shown (instead of Unpaid). If any scheduled payment (as specified in the Payment Schedule table) is pending beyond it's due date, the Overdue state will be shown.

Documentation

https://docs.erpnext.com/docs/v13/user/manual/en/accounts/purchase-invoice/edit?wiki_page_patch=a8b85aba51
https://docs.erpnext.com/docs/v13/user/manual/en/accounts/sales-invoice/edit?wiki_page_patch=709cb5df15

@pruthvi145 pruthvi145 changed the title feat: add Partially Paid state feat: add Partly Paid state Sep 2, 2021
@coveralls
Copy link

coveralls commented Sep 2, 2021

Coverage Status

Coverage increased (+0.04%) to 51.655% when pulling 0246d43 on resilient-tech:feat-partially-paid into 058d983 on frappe:develop.

@olamide2
Copy link

olamide2 commented Sep 5, 2021

cool

@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #27310 (324b74c) into develop (190c2d8) will increase coverage by 0.03%.
The diff coverage is 85.18%.

@@             Coverage Diff             @@
##           develop   #27310      +/-   ##
===========================================
+ Coverage    54.51%   54.54%   +0.03%     
===========================================
  Files         1333     1333              
  Lines        70731    70737       +6     
===========================================
+ Hits         38556    38586      +30     
+ Misses       32175    32151      -24     
Impacted Files Coverage Δ
erpnext/controllers/accounts_controller.py 83.58% <0.00%> (-0.07%) ⬇️
...xt/accounts/doctype/sales_invoice/sales_invoice.py 75.42% <94.73%> (+0.12%) ⬆️
...ounts/doctype/purchase_invoice/purchase_invoice.py 81.35% <100.00%> (-0.03%) ⬇️
...t/payroll/doctype/payroll_period/payroll_period.py 65.45% <0.00%> (-5.46%) ⬇️
.../report/stock_projected_qty/stock_projected_qty.py 87.01% <0.00%> (-1.30%) ⬇️
...xt/stock/report/stock_analytics/stock_analytics.py 92.07% <0.00%> (-1.00%) ⬇️
erpnext/support/doctype/issue/issue.py 63.59% <0.00%> (-0.98%) ⬇️
erpnext/payroll/doctype/salary_slip/salary_slip.py 83.42% <0.00%> (-0.81%) ⬇️
...ype/account/chart_of_accounts/chart_of_accounts.py 78.62% <0.00%> (-0.69%) ⬇️
erpnext/healthcare/utils.py 31.76% <0.00%> (-0.50%) ⬇️
... and 16 more

@ankush
Copy link
Member

ankush commented Sep 14, 2021

@pruthvi145 please sort the imports with isort or setup pre-commit: https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#linting

You can ignore errors that are not from your change... we will take care of them 😅

@pruthvi145
Copy link
Contributor Author

pruthvi145 commented Sep 14, 2021

@pruthvi145 please sort the imports with isort or setup pre-commit: https://github.com/frappe/erpnext/wiki/Pull-Request-Checklist#linting

You can ignore errors that are not from your change... we will take care of them 😅

Done! I have sorted for all files(2).

@sagarvora sagarvora added the squash Meant to tell reviewers that this PR should be squashed into a single commit while merging. label Sep 15, 2021
Copy link
Collaborator

@barredterra barredterra left a comment

Choose a reason for hiding this comment

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

Tested, looks good to me. Thanks for your work, @pruthvi145!

I think we should add a unit test for Partly Paid status to make this PR complete.

barredterra
barredterra previously approved these changes Sep 20, 2021
@sagarvora sagarvora changed the title feat: add Partly Paid state feat: add Partly Paid status in Invoices Sep 20, 2021
},
{
"fieldname": "scan_barcode",
"fieldtype": "Data",
"label": "Scan Barcode",
"options": "Barcode"
"label": "Scan Barcode"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"label": "Scan Barcode"
"label": "Scan Barcode",
"options": "Barcode"

@@ -15,6 +15,7 @@ frappe.listview_settings['Sales Invoice'] = {
"Unpaid and Discounted": "orange",
"Overdue and Discounted": "red",
"Overdue": "red",
"Partly Paid": "yellow",
Copy link
Member

@nextchamp-saqib nextchamp-saqib Sep 21, 2021

Choose a reason for hiding this comment

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

Suggested change
"Partly Paid": "yellow",
"Partly Paid": "yellow",
"Partly Paid and Discounted": "yellow",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport version-13-hotfix squash Meant to tell reviewers that this PR should be squashed into a single commit while merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark Sales Invoice as Overdue when first payment becomes overdue
7 participants