Commit Graph
857 Commits
Author SHA1 Message Date
Nicolas Malin 895c9856b3 Cleaning forms code is needed after setting default-value in list-options and entity-options, patch related to OFBIZ-6524 and follows the resolution of OFBIZ-6490 and OFBIZ-6489. Thanks Gil Portenseigne for this effort
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686674 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 21:58:05 +00:00
Jacques Le Roux 5c7f0b1fcb This closes "Replace bsh code with Groovy code" https://issues.apache.org/jira/browse/OFBIZ-6332 with all its subtasks and more.
jleroux: I suspected it was only a matter of replacing "${bsh" by "${groovy" in *.xml. But I had not the guts to get into 11(!) sub tasks. 
So, in Eclipse, I simply did a S/R in *.xml and compared parts of my changes with some Pierre's most "complex" patches respectively product, ebaystore, projectmgr and scrum. 
They were totally similar (just revisions number changed) so here is the whole. 

I will later improve these changes by removing HTML entities when possible, this is a bit more delicate because in some cases the XML schema are not complete (or/and for other still obscure to me reasons) and if you simply replace HTML entities by simple code (eg &Amp; by &) you get issues in logs when the XML parser cross them...

Note: only menus, screen and forms are changed here.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682118 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 20:39:43 +00:00
Jacques Le Roux 246236e3cc A patch from Pierre Smits "Add a basic VAT report with frequency setting" https://issues.apache.org/jira/browse/OFBIZ-6225
This is a 1st stage, we will add more later, notably totals as a 1st step and then a more complete report but still basic

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674587 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 22:48:01 +00:00
Adrian Crum 771e10f1c4 First pass at extracting grid widget from the form widget. This commit has a lot of duplicate code - future commits will reduce and reuse the duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654670 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 17:18:24 +00:00
Nicolas Malin ddc01156ab Convert old simple CRUD service on BillingAccount to entity-auto (OFBIZ-5963).
Clean service definition with using auto-fields-entity and clean editBillingAccount screen :
    display correctly the customer billing party
    hidden billingAccountId and contactMechId on create process
    add new service createBillingAccountAndRole (the screen present the partyId field but didn't propage the value on billingAccountRole)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651912 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 00:37:06 +00:00
Adrian Crum d5d4b3bbec Fixed a bug in the Find Invoice screen where the invoice currency was being ignored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1629426 13f79535-47bb-0310-9956-ffa450edef68
2014-10-04 17:25:27 +00:00
Ashish Vijaywargiya f4fc6c4962 Applied bug fix from jira issue - OFBIZ-3537 - Not all sales invoice item types are showing in listInvoiceItems screen.
Thanks Arun Patidar for the contribution.  

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626409 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 10:08:51 +00:00
Anil Patel ea115c8f81 [OFBIZ-3879] Patch from the jira issue resolves the problem. Now start rendering invoice only if valid data if found in the database.
Code needs reformatting.
Thanks Deepak Dixit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626399 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 08:49:07 +00:00
Jacopo Cappellato ecfc14a6bc ${bsh: to ${groovy: scriptlet conversions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1613432 13f79535-47bb-0310-9956-ffa450edef68
2014-07-25 13:28:20 +00:00
Jacopo Cappellato 3b4e2b7ec5 Fixed miscellaneous errors spotted while reviewing the logs generated by the ArtifactInfo tool.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610918 13f79535-47bb-0310-9956-ffa450edef68
2014-07-16 07:16:15 +00:00
Jacopo Cappellato 50f4fa4135 Applied another contribution from Anahita Goljahani to OFBIZ-5592: UX improvement - aligment Chart of Account.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610355 13f79535-47bb-0310-9956-ffa450edef68
2014-07-14 08:45:21 +00:00
Jacques Le Roux 90204837e7 Better to reuse what I introduced in r1547719, did not read my comment enough, amount can be null...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606228 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 21:03:21 +00:00
Jacques Le Roux 1de1e504c0 Fixes a bug I introduced with r1547719, simplifies another case
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606225 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 20:59:48 +00:00
Jacopo Cappellato 96ddaf1818 Applied fix from OFBIZ-3551: Patch to only show organization's custom time periods at trialbalance screen dropdown; thanks to Willem Janssen for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605707 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 08:54:08 +00:00
Jacopo Cappellato 5daa29eeab Applied patch from OFBIZ-5592: made more consistent the Chart of Accounts screen in Global GL Settings with the one in Organisational GL Settings.
Thanks to Pierre Smits for the contribution (and to Anahita Goljahani for the tests).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603434 13f79535-47bb-0310-9956-ffa450edef68
2014-06-18 12:50:41 +00:00
Jacopo Cappellato ce58b9e0c4 Usability improvement for management of manual Gl transactions (OFBIZ-5559): thanks to Anahita Goljahani for the patch and to Pierre Smits for the tests and review.
Main changes introduced:
* new "Not available" data types that can be applied when transaction, account and resource type are not specified
* fixed some screens that were still displaying the account pk rather than the account code
* misc enhancements to the editing of manual transactions and chart of accounts
 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589623 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 07:39:46 +00:00
Jacopo Cappellato 52c7659c23 Moved two util methods for billing accounts from the "accounting" to the "order" component and removed duplicated code from the order component that was there to avoid a cyclic dependency between the two components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1582774 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 15:05:23 +00:00
Jacques Le Roux 51d95c4023 A patch from Willem Janssen for "Show party names in Agreement list" https://issues.apache.org/jira/browse/OFBIZ-5593
In the findAgreement screen partyIdFrom and partyIdTo columns show only the ID's, not the names.
Attached to this issue a small patch that implements to show the names in the search result screen in the same way as in the findInvoices screen.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1581063 13f79535-47bb-0310-9956-ffa450edef68
2014-03-24 21:02:41 +00:00
Jacques Le Roux 4d9e447e11 Adds the conventional comment <!-- if this isn't there then with all fields empty no query will be done --> to "noConditionFind" fields. It's not quite obvious, so the more there are the better
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576278 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 10:53:37 +00:00
Hans Bakker fcba881889 some missing files from commit 1573884
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574400 13f79535-47bb-0310-9956-ffa450edef68
2014-03-05 09:20:26 +00:00
Hans Bakker f19c64ed29 adding budget services, screens and forms
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1573884 13f79535-47bb-0310-9956-ffa450edef68
2014-03-04 06:32:14 +00:00
Jacques Le Roux 9758212aa3 A patch from Simon Maskell for "Fixed Asset Depreciation Method missing list-name from form ListFixedAssetDepMethods in FixedAssetForm" https://issues.apache.org/jira/browse/OFBIZ-5499
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560205 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 21:41:34 +00:00
Adrian Crum 222733911b Fixed a bug in the FixedAssetTransactions. Patch contributed by Simon Maskell - https://issues.apache.org/jira/browse/OFBIZ-5488.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1558373 13f79535-47bb-0310-9956-ffa450edef68
2014-01-15 13:19:51 +00:00
Jacques Le Roux 777b0ec794 I made a mistake in r1527171. When I removed the call to GetInvoiceItemTypes.groovy in InvoiceScreens.xml I did not notice it was also generating the AccountOrganizationAndClass list.
This fixes it by renaming GetInvoiceItemTypes.groovy to GetAccountOrganizationAndClass.groovy and removing the now useless invoiceItemTypes list inside it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547742 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 09:29:59 +00:00
Jacques Le Roux eba5ff475c Fixes an issue when no amount have been specified while creating an invoice item
Better groovy scriplets (elvis operator)
I believe using BigDecimal for both fields quantity and total can't hurt
Increases size of both fields quantity and total 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547719 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 07:24:26 +00:00
Jacques Le Roux 83c6338646 Fixes an issue reported by Christian Carlow at "Invoice Item type drop down empty when creating new invoice item" https://issues.apache.org/jira/browse/OFBIZ-5415
jleroux: Rather than what proposed Christian I used the same best practice than in r1527171

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547717 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 06:55:59 +00:00
Jacopo Cappellato 3874109539 A pretty important refactoring of some GL data and code that fixes a series of long standing gaps, errors and design issues affecting account balances and the closure of fiscal periods (some of them introduced by me when I initially wrote the first version of these business logics; at that time I didn't have a clear and deep enough understanding of these accounting rules sigh…).
This new version is cleaner (less code, less redundancy of information), correct and it also resolves some pretty relevant issues (including some db deadlock errors) affecting performance in instances with medium/high number of GL postings.
Here is a list of changes introduced in this commit:
* removed the postedBalance field from GlAccount and GlAccountOrganization: this was a wrong design; the field in GlAccount was not used by the applications; the field in GlAccountOrganization was used but not consistently
* added openingBalance field to GlAccountHistory: now this entity has full information about an account in a financial period after the period closed (opening and ending balance, posted debits and credits); now the endingBalance is computed correctly both for Debits and Credits accounts
* updated demo data for the data model changes mentioned above
* the business logic to compute the account balances is now implemented in a service (computeGlAccountBalanceForTimePeriod) and reused consistently
* removed several FIXME/TODO comments now that the new code addresses the related gaps and issues
* removed some old, incorrect or no more used artifacts: getGlAcctgOrgWithPostedBalanceSplit (service), getNetBalance (utily methods)
* refactored the TrialBalanceReport and GlAccountTrialBalance reports and related pdf versions: the new versions have cleaner code and show the correct balances both for debits and credits
* fixed a series of Groovy compilation issues due to missing imports


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1530273 13f79535-47bb-0310-9956-ffa450edef68
2013-10-08 13:49:19 +00:00
Jacques Le Roux 26285fdb52 Fixes an issue with InvoiceItemTypes reported by Christian on dev ML following proposed Nicolas's solution.
I did not get further enough to add missing labels, like InvoiceItemType.description.SINVOICE_HEAD_ADJ, etc.
So when missing the default English description set in data seed is used

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527171 13f79535-47bb-0310-9956-ffa450edef68
2013-09-28 09:24:33 +00:00
Jacques Le Roux 53ccd2ceb7 Fixes "Overview of routings does not paginate" https://issues.apache.org/jira/browse/OFBIZ-5322 and more
Actually it does paginate but the value is not dependent on widget property widget.form.defaultViewSize which default value is 20. It uses a default value of 50 which is defined by

<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="3"/>

You can easily test it using https://localhost:8443/manufacturing/control/FindRouting?VIEW_SIZE=3

This is legacy from pre Apache era. I found 143 cases where a default-value is defined in screens for VIEW_SIZE.

I did not look into details for the 143 cases but I believe most are also legacy.
There are few default values: 10, 20, 30, 50, 500 and even an extreme case of 10000 for InventoryItemTotalsExport!
There is only one comment for LookupBulkAddProducts which is also legacy: <!-- 10 rows seems more appropriate given screen size, etc. -->

I suggest to OOTB replace all those by the widget.form.defaultViewSize value.
Things will then be consistent and easily changeable on a global scale using the widget property.
Or if really needed forcing the default-value as it's done now.

So this would be applied on the 143 cases (I checked, viewSizeDefaultValue does not exist in any screen)

<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526387 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 05:55:32 +00:00
Hans Bakker ff9107cb25 replace groovy file with new view and add orderitemSeqId to invoiceitemlist
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1512132 13f79535-47bb-0310-9956-ffa450edef68
2013-08-09 03:08:25 +00:00
Hans Bakker baff7e8119 revert r1505301, not required to show organization partyId in csv download
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1505878 13f79535-47bb-0310-9956-ffa450edef68
2013-07-23 01:58:17 +00:00
Hans Bakker 03420d2e7d correction to rev 1502093
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1505301 13f79535-47bb-0310-9956-ffa450edef68
2013-07-21 08:34:08 +00:00
Hans Bakker 9f45dde852 remove a non functional jquery error messaging in costcenter perc screens with the standard, but working messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1503615 13f79535-47bb-0310-9956-ffa450edef68
2013-07-16 08:41:17 +00:00
Hans Bakker 6d7fd95df4 more consistent namimg of requests,screens and forms for import/export invoices
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502149 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 08:33:24 +00:00
Hans Bakker c09114575f spelling error in reference number field invoice export/import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502116 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 04:33:04 +00:00
Hans Bakker ad8ae088de add a csv import/export invoices at an organizational level with partyid and productid translation functions, more imports/exports will follow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502093 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 03:14:30 +00:00
Hans Bakker 518757a033 enforce encoding on text input fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502088 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 02:44:45 +00:00
Hans Bakker e9fabf2ed5 add screenlet to add accounting company screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1499927 13f79535-47bb-0310-9956-ffa450edef68
2013-07-05 08:04:07 +00:00
Hans Bakker a58238c109 entity-and without fieldmap gives an error in the log. in entity-condition it is allowed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1499226 13f79535-47bb-0310-9956-ffa450edef68
2013-07-03 06:45:38 +00:00
Hans Bakker 0e01510dc0 another bsh scriplet causing a logerror, change to groovy solved it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1495277 13f79535-47bb-0310-9956-ffa450edef68
2013-06-21 03:19:32 +00:00
Hans Bakker e8a588f95e total gave error in log when quantity was blank and 0 still gave the total of quantity 1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1495267 13f79535-47bb-0310-9956-ffa450edef68
2013-06-21 01:41:06 +00:00
Hans Bakker 19ff1cb393 missng security check for add accounting company
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1494491 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 08:06:52 +00:00
Hans Bakker cecc38b6b6 fixed problem of not able to add accounting company, caused by r1494034 and reported by Pierre at https://issues.apache.org/jira/browse/OFBIZ-5229
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1494435 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 03:59:17 +00:00
Hans Bakker d7227aa3e4 only show companies in accounting which have an PartyAccntingPreference entry and not the whole organization.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1494034 13f79535-47bb-0310-9956-ffa450edef68
2013-06-18 06:28:46 +00:00
Scott Gray a5fc6fad11 FIX: The Sales/Purchase Invoice GlAccount Override screen would always so the Remove button even when no overrides were in place
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1493505 13f79535-47bb-0310-9956-ffa450edef68
2013-06-16 12:51:52 +00:00
Hans Bakker 3d05d7acbc payment edit screen actual currency not correct, reordered the fields, removed the actions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1488659 13f79535-47bb-0310-9956-ffa450edef68
2013-06-02 10:40:07 +00:00
Hans Bakker 73eb987ddd make payment method field optional on the edit payment screen to show the paymentmethod is empty. when mandatory the field will always show filled even if empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487357 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 07:21:07 +00:00
Hans Bakker ff2c038a34 improve payment form to select payment method depending on organization party
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1487323 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 06:41:13 +00:00
Hans Bakker 893b2db5f9 spelling error in accounting request corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1482665 13f79535-47bb-0310-9956-ffa450edef68
2013-05-15 03:08:30 +00:00
Jacques Le Roux 28b891cb20 A patch from Jeremy Olmstead for "Unable to search accounting transaction entries by productId " https://issues.apache.org/jira/browse/OFBIZ-5160
From the FindAcctgTransEntries screen, enter a part number to search for...you will still get a complete list of all transactions because the form field name is produtId instead of productId.  After searching relevant document types it turns out there are a few places where produtId is used instead of productId, the patch is meant to fix them all.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1460116 13f79535-47bb-0310-9956-ffa450edef68
2013-03-23 08:27:30 +00:00