Openbravo Issue Tracking System - Openbravo ERP  | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0015147 | Openbravo ERP | Z. Others | public | 2010-11-10 11:23 | 2010-12-09 16:07 | 
| Reporter | maite | ||||
| Assigned To | mirurita | ||||
| Priority | urgent | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | 2.50 | ||||
| Target Version | Fixed in Version | ||||
| Merge Request Status | |||||
| Review Assigned To | |||||
| OBNetwork customer | OBPS | ||||
| Web browser | |||||
| Modules | Advanced Payables and Receivables Mngmt | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0015147: Error "paymentrule" is null when using intercompany module | ||||
| Description | When using IntercompanyDocuments module and APR module, you get the following error "null value in column "paymentrule" violates not-null constraint" when trying to process Inter-company Sales Invoice document. As you are using APRM, field paymentrule should not be required.  | ||||
| Steps To Reproduce | 1. Install last version of Intercompany Documents module and APR module 2. Apply APRM dataset 2. Follow http://wiki.openbravo.com/wiki/Projects/intercompanyinvoicing/User_Guide#Definition_of_Inter-company_Document_Types [^] 3. Create Financial Management || Receivables & Payables || Transactions || Financial Account 4. Create Financial Management || Receivables & Payables || Setup || Payment Method || Payment Method , and associate it to the Financial Account 5. Create 2 new Business Partner: BP1 y BP2, and set PaymentMethod for both 6. Go to General Setup || Enterprise || Organization || Organization >> Information for Org A and set BP1 7. Go to General Setup || Enterprise || Organization || Organization >> Information for Org B and set BP2 8. Go to Sales Management || Transactions || Sales Invoice || Header and create "Inter-company Sales Invoice document" for BP1 and Org B 9. Process and you will obtain error "null value in column "paymentrule" violates not-null constraint"  | ||||
| Proposed Solution | The problem is in function "interco_create_invoice". When selecting data from business partner, a COALESCE is performing for "paymentrule" but not for "PaymentRulePO". Due to that, when trying to create Purchase Invoice value is null. COALESCE should also be performed for PaymentRulePO field  | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-11-10 11:23 | maite | New Issue | |||
| 2010-11-10 11:23 | maite | Assigned To | => mirurita | ||
| 2010-11-10 11:23 | maite | OBNetwork customer | => Yes | ||
| 2010-11-10 11:23 | maite | Issue Monitored: networkb | |||
| 2010-11-12 11:34 | mirurita | Status | new => scheduled | ||
| 2010-11-12 11:34 | mirurita | fix_in_branch | => pi | ||
| 2010-11-12 11:36 | hgbot | Checkin | |||
| 2010-11-12 11:36 | hgbot | Note Added: 0032581 | |||
| 2010-11-12 11:36 | hgbot | Status | scheduled => resolved | ||
| 2010-11-12 11:36 | hgbot | Resolution | open => fixed | ||
| 2010-11-12 11:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.interco/rev/a0a27382dca7c4dfd7e1d20fc32fafc0ee635262 [^] | ||
| 2010-11-15 12:22 | adrianromero | Note Added: 0032613 | |||
| 2010-11-15 12:24 | adrianromero | Note Added: 0032614 | |||
| 2010-11-16 16:56 | adrianromero | Note Added: 0032638 | |||
| 2010-11-16 16:56 | adrianromero | Status | resolved => closed | ||
| 2010-12-09 16:07 | anonymous | sf_bug_id | 0 => 3133550 | ||
| Notes | |||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||
| 
		 | 
|||||
		
  | 
	
		
  | 
||||