-
Notifications
You must be signed in to change notification settings - Fork 27
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
Tax Payable #223
base: version-15
Are you sure you want to change the base?
Tax Payable #223
Conversation
@basawaraj-fosserp Would love to discuss this at our next meeting |
check_run/tests/setup.py
Outdated
for tax in taxes: | ||
si.append("taxes", tax) | ||
si.save() | ||
si.submit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add at least one Credit Note to reflect returned items and a Journal Entry to reflect a write off.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@basawaraj-fosserp Adjacent, potentially overlapping use case: commissions payable. Potentially appropriate for Sales Partner (Supplier) or Sales Person (Employee or Supplier) as party types. Also potentially freight payable. |
There's one TODO left as of 6/4/24, which is to pull in the supplier default payment terms and payment due date. Normally this would have a a "days after month end" style of payment, we can use 25 days for testing purposes. |
outstanding amount is not updated some other warnings need to be defeated
* ci: remove cypress, fix hrms install, conform * ci: fix mypy error
* gl entry not created * replace super class validate
…up.before_test' (#231) * changes to added one credit note in setup.py * remove outstanding > 0 condition to take return entry in sales invoice * chech run creditnote test * compatible chnages to v15
outstanding amount is not updated some other warnings need to be defeated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just a couple of questions
check_run/overrides/sales_invoice.py
Outdated
|
||
|
||
class CheckRunSalesInvoice(SalesInvoice): | ||
# TODO: update due date in taxes with validate hook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a TODO that I do not know if you want to do now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fproldan I think this can be removed, but I will add a test to ensure it's working.
def on_submit(self): | ||
for row in self.taxes: | ||
if row.party and row.party_type: | ||
row.outstanding_amount = row.tax_amount |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why here the outstanding_amount
(and only this) is getting set again on_submit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fproldan @agritheory
I have removed the code mentioned by @fproldan and did some testing. Without this code, the calculation of the outstanding amount is also working perfectly.
We can remove this on_submit function from the overridden file.
Todos as of 6/18/24:
|
#218
Sales Taxes and Charges, before being paid via Check Run (Outstanding Amount is $8.12)
Example Check Run
Example config (Sales Invoices and JEs allowed, other doctypes shouldn't be)
Example Payment Entry / output of Check Run
Satisfied Sales Tax Payable (Outstanding Amount is $0.00)