-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Fix period for customer invoice #106
Fix period for customer invoice #106
Conversation
Hey @sergiocorato, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
Hello @sergiocorato
Moreover, this would cause |
Hello @eLBati
|
For instance using this line
implies that, as So, period_id and date of account.move would be incoherent. |
Perhaps our VAT law is incoherent, but we must comply to it. |
or time.strftime('%Y-%m-%d') | ||
if inv.type in ['in_invoice', 'in_refund']: | ||
date_start = inv.registration_date or inv.date_invoice \ | ||
or time.strftime('%Y-%m-%d') |
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.
could you please define a variable today = time.strftime('%Y-%m-%d')
?
Hey @sergiocorato, Appreciation of efforts, |
done, thanks |
Sorry, @sergiocorato I just tried to better understand the PR but I can't see what this change solves
What do you mean with |
Hi @eLBati, the use case is from dpr 633/72 art. 1. Il contribuente deve annotare entro quindici giorni le fatture emesse, nell'ordine della loro numerazione e con riferimento alla data della loro emissione, in apposito registro. |
With use case I mean something like
|
I have an user which register some invoices on 1° of month with last day of previous month date, so VAT registries are wrong because invoices go in the month of registration. |
On http://2948683-8-0-2b230f.runbot2.odoo-community.org/ just created |
Sorry the misunderstanding, the problem is the period (taxes are based on period, not on dates). I created SAJ/2015/007 with registration date 6th July and emission date 30th Juin, period is wrong (7th). |
On 6 July 2015 at 21:46, Sergio Corato notifications@github.com wrote:
Probably we should make the 'registration date' field visible for supplier |
All is possible, but it's legally register a customer invoice within 15 Sergio Corato 2015-07-09 16:32 GMT+02:00 Lorenzo Battistini notifications@github.com:
|
Please answer my questions
|
I leave it empty always, but some users could want to do that (even if I think it's an ugly practice) |
On 9 July 2015 at 17:28, Sergio Corato notifications@github.com wrote:
|
Yes, I think it's better for a simpler usage too. 2015-07-15 16:39 GMT+02:00 Lorenzo Battistini notifications@github.com:
|
supplier invoices only. See OCA#106 (comment)
Here we are #123 |
…migr Migration of stock_picking_deliver_uos
supplier invoices only. See OCA/l10n-italy#106 (comment)
…_base [REM][intrastat_base] remove because this pr https://github.com/OCA/i…
For supplier invoices the existing code is correct.
For customer invoices, the period has to be taken from date of invoice and after, if missing, from registration date.