Commit Graph
367 Commits
Author SHA1 Message Date
Pranay Pandey 7f5df9fff5 Fixed the order in which invoice and payment transactions are created.
Payment transactions were being created prior to invoice transactions, It causes confusion for accountants in real world. 

It was a seca execution order which was causing the issue on setInvoiceStatus. Moved the trigger on setInvoiceStatus for checkInvoicePaymentApplications and capturePaymentsByInvoice from secas.xml to secas_invoice.xml, so that we do invoice transactions prior to payment. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675852 13f79535-47bb-0310-9956-ffa450edef68
2015-04-24 13:29:56 +00:00
Nicolas Malin 34b0954c9b (OFBIZ-5992) Convert following entities CRUD service from simple to entity-auto :
FixedAsset                                                          
FixedAssetProduct                                                   
FixedAssetStdCost
FixedAssetIdent
FixedAssetRegistration
FixedAssetMaint
FixedAssetMaintOrder
PartyFixedAssetAssignment
FixedAssetTypeGlAccount

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652608 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 13:47:00 +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
Nicolas Malin aa476cf1bd Convert CostComponentCalc and WorkEffortCostCalc CRUD service from simple to entity-auto (OFBIZ-5958). The file applications/accounting/script/org/ofbiz/accounting/cost/CostServices.xml and the directory applications/accounting/script/org/ofbiz/accounting/cost are now empty, so I remove it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651229 13f79535-47bb-0310-9956-ffa450edef68
2015-01-12 23:27:25 +00:00
Nicolas Malin a442c86252 Convert Invoice entites CRUD service from simple to entity-auto (OFBIZ-5957) : convert only updateInvoiceItemType. Clean uneeded space end line.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651222 13f79535-47bb-0310-9956-ffa450edef68
2015-01-12 22:55:01 +00:00
Nicolas Malin 83c8292b53 finalize to convert BudgetRole service to entity-auto relative to OFBIZ-5900
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650977 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 21:59:33 +00:00
Nicolas Malin b1bd409b63 OFBIZ-5955 Convert Agreement entites CRUD service from simple to entity-auto
Convert the CRUD service for entities : Agreement,AgreementItem,AgreementPromoAppl,AgreementProductAppl,AgreementPartyApplic,AgreementGeographicalApplic,AgreementRole,AgreementWorkEffortApplic

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650975 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 21:37:26 +00:00
Nicolas Malin 8e618c23c3 I converted the Crud service from simple to entity-auto for :
Budget (except create)
    BudgetItem
    BudgetRole (except create)
    BudgetReview

Issue Associate OFBIZ-5900

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643579 13f79535-47bb-0310-9956-ffa450edef68
2014-12-06 18:12:21 +00:00
Jacopo Cappellato 373e0aba28 Moved the "bi" component from the framework to the specialpurpose folder; moved all the dependencies (client code) on the "bi" component from applications components to the "bi" component itself.
Now the "bi" component contains all the dimensions/facts/star schemas and all the logic to populate them and can be easily enabled/disabled.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642027 13f79535-47bb-0310-9956-ffa450edef68
2014-11-27 06:14:06 +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
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
Jacques Le Roux 90d37ce794 After my main external backup disk crashed, my main Eclipse workspace crashed also.
While rebuilding it, it seems I inadvertently pushed a OK button somewhere...
This reverts r1541470 and all pending stuff which should not have slipped in

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541485 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 12:01:48 +00:00
Jacques Le Roux d0bd4e8617 This was committed by error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541470 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 11:07:04 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Hans Bakker 7ba19d4b9f make status an optional field in the creation of a payment and provide a default value of 'not paid'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534478 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 03:58:16 +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 abbf80f399 Removes useless and harmless cases reported by Leon for "Allow text data of agrement and its items accept "<" and ">" characters" https://issues.apache.org/jira/browse/OFBIZ-5209
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527345 13f79535-47bb-0310-9956-ffa450edef68
2013-09-29 16:29:26 +00:00
Jacques Le Roux 427d65e16c Reported by Adrian on dev ML.
Related to OFBIZ-5209. I guess Leon made a wrong C/P and the field is actually AgreementTerm.textValue I have also added it to updateAgreementTerm


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527289 13f79535-47bb-0310-9956-ffa450edef68
2013-09-29 09:01:47 +00:00
Hans Bakker c98ffafa00 add entity and services to be able to add content to payments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1525495 13f79535-47bb-0310-9956-ffa450edef68
2013-09-23 03:13: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 6bdaf8daa6 missing change in r1501659
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502091 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 02:53:35 +00:00
Hans Bakker f2c54c60f7 applications where not created when status direct to invoice-ready status
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1498849 13f79535-47bb-0310-9956-ffa450edef68
2013-07-02 09:10:01 +00:00
Hans Bakker 1c4f6e4ef0 change service name from isInvoiceForeign to isInvoiceInForeignCurrency on suggestion from Adrian
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1495791 13f79535-47bb-0310-9956-ffa450edef68
2013-06-23 04:03:42 +00:00
Hans Bakker 27ce087ab8 make automatic application also working with foreign invoices and payments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1495294 13f79535-47bb-0310-9956-ffa450edef68
2013-06-21 05:44:15 +00:00
Hans Bakker a47a06a4b1 when a sales order is completed and no payment is created, this will create a payment in the 'not paid' status which can be disabled in the accounting properties file, when it is a order in foreign currency it will use the same exchange rate as when will be used for the related invoice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1494464 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 05:53:20 +00:00
Jacques Le Roux 83af74034f A patch from Leon for "Allow text data of agrement and its items accept "<" and ">" characters" https://issues.apache.org/jira/browse/OFBIZ-5209
It's common that an agreement text body contains those "special" characters.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1493682 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 08:26:43 +00:00
Adam Heath 12934702ec Add AgreementFacilityAppl entity and screens. There is no code that
deals with the data yet, however.  This is modeled after
AgreementProductAppl minus the price.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1413810 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 20:09:17 +00:00
Erwan de Ferrieres 41c1dfbab2 Suppressing - in method names which are causing XSD validation to fail
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1369948 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 19:41:14 +00:00
Hans Bakker ad1682658b add entities and services to be able to add content and notes to invoices
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1341765 13f79535-47bb-0310-9956-ffa450edef68
2012-05-23 07:22:30 +00:00
Jacques Le Roux b4ab229faa A patch from Paul Foxworthy "loadSalesInvoiceFact should be post-run" https://issues.apache.org/jira/browse/OFBIZ-4582
See thread at http://ofbiz.135035.n4.nabble.com/Should-loadSalesInvoiceFact-be-run-on-return-instead-of-commit-td3896289.html

The loadSalesInvoiceFact service in applications/accounting/servicedef/secas_olap.xml is set to run asynchronously on (that is, before) a commit. The result is that the service may attempt to read an order that has not yet been committed.

In the patch, the timing has been changed to global-commit-post-run to ensure the order has been committed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1206507 13f79535-47bb-0310-9956-ffa450edef68
2011-11-26 17:38:56 +00:00
Anil Patel 7f1e47817e [OFBIZ-4516] Commit fixes bug in Invoice cancel process. Martin Kreidenweis, Thanks for reporting and providing fix patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1189601 13f79535-47bb-0310-9956-ffa450edef68
2011-10-27 04:14:06 +00:00
Hans Bakker badd567bf3 remove the possibility to update payment applications: is too complicated and can cause posting problems, only allow add and delete, this is at the payment side
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1186102 13f79535-47bb-0310-9956-ffa450edef68
2011-10-19 11:19:21 +00:00
Hans Bakker af7af5e39c update service product implementation now more generalized as per comment from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172965 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 03:51:08 +00:00
Hans Bakker 8f2e70a279 make sure that the product type productservice does not affect accounting when entering and shipping from inventory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171093 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 13:32:52 +00:00
Hans Bakker 2dc94f4372 added a new accounting configuration option to generate invoice per order or per shipment. can be overridden at the order level
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163083 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 04:11:16 +00:00
Hans Bakker 04a375d1cd change the invoice itemlist to have a submit button for the page and not the item
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1145030 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 05:43:43 +00:00
Scott Gray 5c1289599a [OFBIZ-4297] Changed set operation to explicitly return a BigDecimal also changed the updateProductAverageCostOnReceiveInventory service definition so that quantityAccepted is a BigDecimal instead of String. For some reason EL expressions return a String even when performing an operation on numbers. Thanks to Stéphane Ducas for the bug report and suggested fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1134990 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 21:44:03 +00:00
Hans Bakker 5cb913a8b4 allow safe html characters in the invoice item description
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078652 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 02:12:18 +00:00
Hans Bakker 375fb2eb69 update to cybersource payment gateway: added a properties setting that orders are still accepted but put into the created stage when a credit card fails authorisation. The default is the current setting: order is not created
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1071517 13f79535-47bb-0310-9956-ffa450edef68
2011-02-17 06:57:51 +00:00
Jacques Le Roux 841f1a2eb7 Forgot this file in r1070193
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1070229 13f79535-47bb-0310-9956-ffa450edef68
2011-02-13 12:54:39 +00:00
Jacques Le Roux 911990f1b5 A patch from Nicolas Malin "Use CustomMethod for select order, quote and invoice hook to resolve id." (https://issues.apache.org/jira/browse/OFBIZ-3765) - OFBIZ-3765
JLR: Quoting Anne on user ML: There are still some files that refer to the deprecated

        * invoiceSequenceEnumId,
        * quoteSequenceEnumId
        * orderSequenceEnumId fields of PartyAcctgPreference.

    Files I know of are:

    applications/accounting/servicedef/services_admin.xml
    applications/accounting/widget/GlSetupForms.xml
    applications/commonext/script/org/ofbiz/setup/SetupEvents.xml

Nicolas: quick corrections to use old attributes. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065014 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 13:18:46 +00:00
Hans Bakker 06d0aae7d6 Add the 'ideal' payment gateway, often used in the Netherlands, see http://www.ideal.nl, install instruction in the thirdparty src folder
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062608 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 02:27:11 +00:00
Jacques Le Roux fd52efd49e A fix suggested by Jeremy Wickersheimer "updateGiftCard service NPE when card number not given"
The updateGiftCard service has the cardNumber parameter optional but will have an NPE if the card number is not given.

I'd suggest to make this parameter non optional, I'am not sure if a gift card without number makes much sense anyway...

JLR: I checked the code, it's the better solution IMO

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060933 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19 19:45:12 +00:00
Andrew Zeneski 6ef1f49cdd finished the eway integration screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053754 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 21:55:59 +00:00
Hans Bakker 4453ba3814 correct conversion error by changing the service definition field format from long to bigdecimal, was only used in create/update billing account term screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1041289 13f79535-47bb-0310-9956-ffa450edef68
2010-12-02 06:40:11 +00:00
David E. Jones 6a9a1fce39 Added code to tax rate calc to add a correction for imprecision in tax calculation when going from a price without tax plus taxes compared to the price with tax originally entered; if prices were not entered with tax and additional fields populated on the ProductPrice entity this code will do nothing (though a new optional parameter to the calcTax service for quantities is still present, but optional)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1030778 13f79535-47bb-0310-9956-ffa450edef68
2010-11-04 00:33:23 +00:00
Hans Bakker 98f6fa0137 add the securepay payment processor
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1023735 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 10:56:30 +00:00
Anil Patel 5cb27bb0e6 Bug fix in GL posting of customer refund payment. Its disbursement but not a payment to vendor so it should be treated differently.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1001849 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 18:14:20 +00:00
Anil Patel 49a3c05554 Fix bug in Gl posting Customer Return Invoice. It was handled as a purchase invoice when its totally different beast. All InvoiceTypes from PURCHASE_INVOICE type tree are still handled like always except for CUST_RTN_INVOICE. Added new service to handle CUST_RTN_INVOICE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1000621 13f79535-47bb-0310-9956-ffa450edef68
2010-09-23 20:59:05 +00:00
David E. Jones 8a2dd45310 A few changes to make the code more consistent that determines the address to use for tax calc, especially when there is no shipping address, ie when it is a face-to-face sale
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@990006 13f79535-47bb-0310-9956-ffa450edef68
2010-08-27 03:13:27 +00:00