Openbravo Issue Tracking System - Modules
View Issue Details
0026424ModulesService Contract Managementpublic2014-04-29 18:032014-04-30 09:44
maite 
vmromanos 
urgentmajorhave not tried
newopen 
5
 
 
0026424: "Update Invoice Plan" process is not considering pending part of month in case part of last month is invoiced.
When a contract defined as Ending Date different from last day of month is extended, "Update Invoice Plan" process is not considering days between "ending date" and "last day of month" is this last period was already invoiced
0. Define Contract Invoice Schedule as
   * Monthly
   * Invoicing Date-Use contract date=N ; Invoicing Date- day of month=15
   * Invoice services -use contract date=N ; Invoice Services-day of month=1 ; Period=next
   * Invoice date -use contract date=N ; invoice date- day of month= 1 ; Period=next
1. Define Contract with Starting date= 19/10/2013; Ending Date=15/01/2014: Agreement date=26/11/2013 and using previous Contract Invoice Schedule
2. Define Invoice Plan Master record with Starting date=19/10/2013; any product, quantity =1 and any price. Complete contract
3. Access Invoice Plan tab and realize that 4 records have been created. Las one for period from 01/01/2014 to 15/01/2014
4. Run contract Billing Process for starting date=01/12/2013 and ending date=31/12/2013. run "Create invoices" process from Sales Invoice Proposal window.
5. Come back to "Contract" window, edit "Ending Date" to extend contract until 15/06/2014. Run "Update Invoice Plan"
6. Access to Invoice Plan tab and realize that new records have been created from February to June, but period from 16/01/2014 to 31/01/2014 has not been considered

Note: if same steps are followed having this last period Not Invoiced then "Update Invoice Plan" will consider days from 16/01 to 31/01
No tags attached.
Issue History
2014-04-29 18:03maiteNew Issue
2014-04-29 18:03maiteAssigned To => vmromanos
2014-04-29 18:03maiteResolution time => 1401573600
2014-04-29 18:04maiteIssue Monitored: networkb
2014-04-30 09:44vmromanosNote Added: 0066696
2014-04-30 09:44vmromanosCategoryContract Management Infrastructure => Service Contract Management
2014-04-30 09:44vmromanosTypedefect => design defect

Notes
(0066696)
vmromanos   
2014-04-30 09:44   
Changed to design defect as this scenario may require a complex redesign, although I would probably reject the issue.

The process detects that a line for the starting date and product has already been created AND INVOICED (that's the key). If the line is not invoiced yet, the system updates the ending date of the line; but since the line is invoiced we can't update it.

IMHO it has no sense to create the invoice for the last line if you plan to extend it later on. That means that you will send 2 invoices to the customer for the same billing cycle.