Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0017132 | Openbravo ERP | 09. Financial management | public | 2011-05-12 09:56 | 2011-05-26 07:44 |
Reporter | RenateNieuwkoop | ||||
Assigned To | eduardo_Argal | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | 3.0RC6.1 | ||||
Target Version | 3.0RC7 | Fixed in Version | 3.0RC7 | ||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | OBPS | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0017132: 3.0RC6.1: Post of withholding errors | ||||
Description | In the BFT there is an exercise for withholding that has been functioning fine sofar. However, now in 6.1 I get an error with the posting. See screenshots. | ||||
Steps To Reproduce | Using the F&B International Group Admin role: Go to the Account Tree screen Select the F&B US, Inc. Account Go to the [Element Value] tab Create a new record Organization = F&B US, Inc., Search Key = 2255, Name = Tax Receivables Withholding, Summary Level checkbox = not selected, Element Level = Subaccount, Account Type = Liability, Account Sign = Debit, Save the record Click on tree icon at the top of the screen Position the 2255 in the tree, in the liabilities folder above the 2260 account: Click the Close button Go to the Tax Category screen Create a new record Organization = F&B US, Inc., Name = US Withholding, Default checkbox = not selected, Save the record. Go to the Business Partner Tax Category screen Create a new record Organization = F&B US, Inc., Name = US Withholding BP, save the record Go to the Tax Rate screen Create a new record Organization = F&B US, Inc., Name = US Withholding Tax Rate 15%, Default checkbox = not selected, Valid from Date = today's date, Cascade checkbox = not selected, Tax Category = US Withholding, Summary Level checkbox = not selected, Parent Tax Rate = blank, Rate = 15.00, Sales/Purchase Type = Purchase Tax, Base Amount = Line Net Amount, Document Tax Amount Calculation = Document based amount by rate, Withholding tax checkbox = selected, Tax Search Key = blank, Business Partner Tax Category = US Withholding BP, Not taxable checkbox = not selected, Country = United States, Destination Country = blank, Tax not deductible checkbox = not selected, Tax deductible checkbox = not selected, Region = FL, Deductable Rate = blank, Destination region = blank, Save the record Go to the [Accounting] tab to select the tax related to withholding: Select F&B US Inc., US/A/US Dollar, Click the selector of the Tax Credit field Organization = F&B US, Inc. Account = 2255 Click the Save button Click the OK button The new created F&B US, Inc.-2255-- account appears in the Tax Credit field Click the save record Enter the vendor: Go to the Business Partner screen Create a new record Organization = F&B US, Inc., Search Key = FFJuices Name = Fruity Fruit Juices, Inc., Business Partner Category = Supplier, Save the record Go to the [Customer] tab Unselect the Customer checkbox Go to the [Vendor/Creditor] tab Create a new record Select the Vendor checkbox Purchase Pricelist = General Purchases (as created in exercise AM1 in Asset Management) PO Payment Method = Wire Transfer, PO Payment Terms = 30 days, PO Financial Account = US Bank - Account 1, Tax Category = US Withholding BP, Save the record Go to the [Location/Address] tab Create a new record Location/Address, click the selector: 1st line = Fruit Tree Lane 12, City = Miami, Country = United States, Region = FL, Click the OK button, Save the record Using the F&B US, Inc - Finance & HR role: Go to the Purchase Invoice screen Create a new record Organization = F&B US East Coast, Transaction Document = US AP Invoice, Business Partner = Fruity Fruit Juices, Inc. Invoice Date = today's date, Accounting Date = today's date, Price List = General Purchases, Currency = USD, Payment Method = Wire Transfer, Payment Terms = 30 days, Save the record Go to the [Lines] tab Create a new record Organization = F&B US East Coast, Product = Lager Beer (by clicking the product selector and removing all filters), Invoice Quantity = 100, Tax = US Withholding Tax Rate 15%, Save the record Go to the main tab and complete the document: Click the Complete button Click the OK button After this, the post button is showing an error | ||||
Proposed Solution | openbravo@por0831:~/workspaces/develOracle/pi/openbravo$ hg diff diff --git a/src/org/openbravo/erpCommon/ad_forms/AcctServer.java b/src/org/openbravo/erpCommon/ad_forms/AcctServer.java --- a/src/org/openbravo/erpCommon/ad_forms/AcctServer.java +++ b/src/org/openbravo/erpCommon/ad_forms/AcctServer.java @@ -656,6 +656,8 @@ m_fact = new Fact[m_as.length]; // AcctSchema Table check boolean isTableActive = false; + try { + OBContext.setAdminMode(true); for (AcctSchema as : m_as) { AcctSchemaTable table = null; OBCriteria<AcctSchemaTable> criteria = OBDao.getFilteredCriteria(AcctSchemaTable.class, @@ -669,6 +671,9 @@ break; } } + } finally { + OBContext.restorePreviousMode(); + } if (!isTableActive) { setMessageResult(conn, vars, STATUS_TableDisabled, "Warning"); return false; | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=3981&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-05-12 09:56 | RenateNieuwkoop | New Issue | |||
2011-05-12 09:56 | RenateNieuwkoop | Assigned To | => eduardo_Argal | ||
2011-05-12 09:56 | RenateNieuwkoop | File Added: 11052011PosterrorWithh1.png | |||
2011-05-12 09:56 | RenateNieuwkoop | Modules | => Core | ||
2011-05-12 09:56 | RenateNieuwkoop | OBNetwork customer | => No | ||
2011-05-13 12:33 | RenateNieuwkoop | OBNetwork customer | No => Yes | ||
2011-05-17 14:18 | dalsasua | Note Added: 0037074 | |||
2011-05-17 14:20 | dalsasua | Note Added: 0037075 | |||
2011-05-17 14:20 | dalsasua | Proposed Solution updated | |||
2011-05-17 14:55 | RenateNieuwkoop | Note Added: 0037077 | |||
2011-05-18 10:37 | dmitry_mezentsev | Target Version | => 3.0RC7 | ||
2011-05-18 11:25 | hgbot | Checkin | |||
2011-05-18 11:25 | hgbot | Note Added: 0037125 | |||
2011-05-18 11:25 | hgbot | Status | new => resolved | ||
2011-05-18 11:25 | hgbot | Resolution | open => fixed | ||
2011-05-18 11:25 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/444c11bbdbff69748ba8295039c572ed2f8a777f [^] | ||
2011-05-19 09:44 | psarobe | Note Added: 0037190 | |||
2011-05-19 09:44 | psarobe | Status | resolved => closed | ||
2011-05-19 09:44 | psarobe | Fixed in Version | => 3.0RC7 | ||
2011-05-26 07:44 | hudsonbot | Checkin | |||
2011-05-26 07:44 | hudsonbot | Note Added: 0037485 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|