Commit Graph

561 Commits

Author SHA1 Message Date
Carlos Ruiz bedf226a21
IDEMPIERE-5191 SEARCH FAILURE BY DATE AND HOUR / IDEMPIERE-4962 IDEMPIERE-4724 (#1188) 2022-02-18 13:32:45 +08:00
Carlos Ruiz a9c4f7b642
IDEMPIERE-5174 Disable System User (#1174)
Verify hardcoded comparisons for role and system users
2022-02-12 11:25:52 +08:00
Nicolas Micoud 35220381f7
IDEMPIERE-5170 : Reverse Prepare Payment process (#1148)
* IDEMPIERE-5170 : Reverse Prepare Payment process

* Move button to toolbar (oracle)

* Move button to toolbar (postgresql)

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2022-02-01 12:54:07 +01:00
Carlos Ruiz 847e2a5238
IDEMPIERE-5146 Load/Import Bank Statement issues (#1125)
* Add org.compiere.model.MBankStatementLoader.getLastSavedLine() to allow further processing of the saved I_BankStatement record on plugins
* Increase size of columns:
        I_BankStatement.EftMemo -> 4000
        I_BankStatement.Memo -> 4000
        C_BankStatementLine.EftMemo -> 4000
        C_BankStatementLine.Memo -> 4000
        I_BankStatement.LineDescription -> 1000
        C_BankStatementLine.Description -> 1000
        I_BankStatement.EftTrxType -> 255
        C_BankStatementLine.EftTrxType -> 255
        I_BankStatement.EftReference -> 255
        C_BankStatementLine.EftReference -> 255
        I_BankStatement.ReferenceNo -> 255
        C_BankStatementLine.ReferenceNo -> 255
* Add process "Create Payment" on bank statement header to process all lines with pending payments to create
2022-01-15 17:25:30 +01:00
hengsin ccdb4868f1
IDEMPIERE-5138 Storage Cleanup Fixes (#1117)
* IDEMPIERE-5138 Storage Cleanup Fixes

* IDEMPIERE-5138 Storage Cleanup Fixes
2022-01-11 16:49:53 +01:00
Carlos Ruiz 75bc20b404
IDEMPIERE-5131 Base language cannot be changed by process 'change base language' (#1100) 2022-01-02 13:26:58 +08:00
Carlos Ruiz fa62f421b9
iIDEMPIERE-5109 Release 9 Horizon - set master in v10 (#1092) 2021-12-24 17:18:24 +01:00
Carlos Ruiz b69fd6a329
IDEMPIERE-4262 on some condition, record insert by direct sql missing UUID (#1072)
* IDEMPIERE-4262 on some condition, record insert by direct sql missing UUID

Solve AD_Element_Trl, AD_Process_Para_Trl, AD_PrintForm

* Add AcctSchemaDefaultCopy *_Acct tables, M_Product_PO, Fact_Reconciliation
2021-12-23 12:06:29 +01:00
Carlos Ruiz 9ae4a2636e
IDEMPIERE-4214 Javadoc: correct warnings on newest java version (#1082)
* iIDEMPIERE-4214 Javadoc: correct warnings on newest java version / fix problem to generate javadoc again

* IDEMPIERE-4214 Javadoc: correct warnings on newest java version / Fix javadoc warnings
2021-12-23 11:44:23 +01:00
Diego Ruiz 02c79d745c
IDEMPIERE-5119 Make Commission Calculation extensible (#1076)
* IDEMPIERE-5119 - Make variables and methods protected instead of private
* IDEMPIERE-5119 - Code refactor
* IDEMPIERE-5119 - Code refactor. Add submethods to ease readibility and increase extensibility
* IDEMPIERE-5119 - Fix typo
* IDEMPIERE-5119 - Add JavaDoc to the methods
2021-12-21 15:03:46 +01:00
Carlos Ruiz 56d87ce984
IDEMPIERE-5115 Create Inventory Count List - Inventory Quantity = 0 - broken (#1073) 2021-12-21 21:41:06 +08:00
Diego Ruiz 11f08b539c
IDEMPIERE-4723 - Clean up iDempiere's code - processes (#1071)
* IDEMPIERE-4723 - Clean up iDempiere's code - processes

* IDEMPIERE-4723 - Clean up iDempiere's code - processes
2021-12-21 12:01:03 +01:00
Carlos Ruiz 80ec1f9419
IDEMPIERE-2901 Period Control Management / improve cache management (#1059) 2021-12-19 14:08:54 +08:00
Nicolas Micoud 2486ff8148
IDEMPIERE-4858 : Helper process "Make Table a Document" - fixes for t… (#990)
* IDEMPIERE-4858 : Helper process "Make Table a Document" - fixes for translation tables

see details in tickets

* IDEMPIERE-4858 : Helper process "Make Table a Document" - add TableIndex records

* IDEMPIERE-4858 : Helper process "Make Table a Document" - AD_Message / tick IsTranslated on main table

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

* Delete pr990_PR.txt

commited by error

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-11-19 17:02:54 +01:00
Carlos Ruiz a1cef5b0fd
IDEMPIERE-2620 Customer Drop Ships not implemented (#985)
* IDEMPIERE-2620 Customer Drop Ships not implemented

* IDEMPIERE-2620 Customer Drop Ships not implemented / fix help

* IDEMPIERE-2620 Customer Drop Ships not implemented / clear display logic in sales order

In sales order the drop ship doesn't change anything important in the system behavior,
is more like a printing agreement with the customer,
so it doesn't make sense to restrict it just to standard orders,
it can be used in any type of order
2021-11-17 09:28:24 +08:00
Andreas Sumerauer e405daf52e
IDEMPIERE-4854 Bugfixes in InOutGenerate (#753)
InOutGenerate.createLine(): The Process would sometimes generate
multiple inout lines from a single product lot/asi.
InOutGenerate.prepare(): moved date setting code out of the loop.

Co-authored-by: Andreas <sumerauer@kanzlei-wmv.de>
2021-11-13 06:34:51 +08:00
hengsin d0340e70d5
IDEMPIERE-5031 Implement auto produce upon shipment for mfg light (#969)
* IDEMPIERE-5031 Implement auto produce upon shipment for mfg light

* IDEMPIERE-5031 Implement auto produce upon shipment for mfg light

Fix clean up of unit test
2021-11-09 14:23:49 +01:00
hengsin 4759ae5c2b
IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation (#924)
* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

minor refinement

* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

refine error handling

* IDEMPIERE-5001 add org.adempiere.base.annotation.Process annotation

refactor to follow closer the AnnotationBasedModelFactory naming
convention.
2021-10-22 12:38:10 +02:00
Carlos Ruiz cb07d78293
IDEMPIERE-2901 Period Control Management (#923) 2021-10-14 13:06:09 +08:00
Carlos Ruiz 5f39c14e31
IDEMPIERE-4997 Allow to use product (or charge) in commissions configuration (#919) 2021-10-12 12:04:59 +02:00
hengsin 8fbac60b1a
IDEMPIERE-1250 Multiple BOM (formulas) support for mfg-light (#906)
* IDEMPIERE-1250 Multiple BOM (formulas) support for mfg-light

* IDEMPIERE-1250 Multiple BOM (formulas) support for mfg-light

Fix deprecation warnings

* Update 202109291600_IDEMPIERE-1250.sql

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-10-06 17:06:26 +02:00
Nicolas Micoud 86c21dafda
IDEMPIERE-4866 : Multiple smtp per tenant (#884)
* IDEMPIERE-4866 : Multiple smtp per tenant

Same PR as https://github.com/idempiere/idempiere/pull/783

* IDEMPIERE-4866 : Multiple smtp per tenant - various fixes

Fixes suggested by Carlos on https://github.com/idempiere/idempiere/pull/783 (remove System.out, change AD_Element name, tab in SingleRow mode) + fix NPE

* IDEMPIERE-4866 : Multiple smtp per tenant : implement cache

* IDEMPIERE-4866 : Multiple smtp per tenant : process EMailTest was not set on column

Fixes by Carlos

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-09-21 14:56:56 +02:00
Saulo José Gil 602e450a93
IDEMPIERE-4842 Easier model registration (#877)
* Preliminary support for automatic model class registration

Model classes can be tagged with a new @Model annotation that allows for
easy/fast class scanning/registration, based on the ClassIndex library.
The list of annotated model classes is generated at compile time, thus
reducing reflection reliance to a bare minimum.

NOTE: Eclipse uses its own Java compiler which is not strictly standard
compliant and requires extra configuration. In Java Compiler ->
Annotation Processing -> Factory Path you need to add ClassIndex jar
file

* Annotation based model factory

* Improve classloader determination for annotation scanning

ClassIndex default annotation scanning method determines the classloader
to be used by calling Thread.currentThread().getContextClassLoader(),
which should not be used in an OSGi environment.

* Enable ClassIndex's annotation processor under Eclipse

Make sure annotation processing is enabled at Module Properties -> Java
Compiler -> Annotation Processing

* Refactoring annotation-based model class detection

Eliminated the need of annotating M* classes, by using ClassIndex's
@IndexSubclasses annotation.

* Minor change

* Minor changes

* Creation of AbstractModelFactory

* Documentation

* Make AnnotationBasedModelFactory extend AbstractModelFactory

* IDEMPIERE-4842 Easier model registration

- add annotation processor jdt settings
- fix @Component annotation for AnnotationBasedModelFactory
- fix generated x_* class missing "org.atteo.classindex.IndexSubclasses"
import

* Expose ClassIndex lib to other bundles

* Updated model classes

Co-authored-by: hengsin <hengsin@gmail.com>
2021-09-18 13:35:57 +08:00
hengsin ae5a665dd8
IDEMPIERE-4933 Platform update for 9.x (#857)
* IDEMPIERE-4933 Platform update for 9.x

- WIP

* IDEMPIERE-4933 Platform update for 9.x

- project to repackaged some osgi bundles from maven

* IDEMPIERE-4933 Platform update for 9.x

- Fix target platform error

* IDEMPIERE-4933 Platform update for 9.x

* IDEMPIERE-4933 Platform update for 9.x

- minor eclipse setting fix
2021-09-04 16:12:10 +02:00
Carlos Ruiz 0167c91424
IDEMPIERE-4911 Silent fail when translated column is shorter than original column (FHCA-2888) (#844)
* IDEMPIERE-4911 Silent fail when translated column is shorter than original column (FHCA-2888)

Changes:
* Saving a value that doesn't fit in the translation now fails with a proper user understandable message
* Synchronize Doc Translation now fails with a user understandable message in case it fails because a value doesn't fit
* When updating a column on a translation table, check for the size of the original column and update the size accordingly
* When updating a translated column, show warnings to user about creating the table, or creating the column, or updating the column size

* IDEMPIERE-4911 Silent fail when translated column is shorter than original column (FHCA-2888)

Improve message for end user
2021-08-20 13:59:35 +02:00
hengsin 461b597c8e
IDEMPIERE-3494 Implement DocStatus/DocAction for Project Issue (#839) 2021-08-17 18:59:14 +02:00
Carlos Ruiz 83b383788e
IDEMPIERE-4889 Performance - Attachment management (#798)
* IDEMPIERE-4889 Performance - Attachment management

* IDEMPIERE-4889 Performance - Attachment management

Implement suggestion from hengsin

* IDEMPIERE-4889 Performance - Attachment management
2021-07-28 11:01:38 +08:00
Carlos Ruiz 42a4ccd93b
IDEMPIERE-1026 Button on table to create automatically the window (#800)
Set readonly for the common document fields - useful for IDEMPIERE-4858
2021-07-27 20:11:07 +02:00
Nicolas Micoud a4dfd191ec
IDEMPIERE-4858 : CreateTable process (#774)
* IDEMPIERE-4858 : CreateTable process

* IDEMPIERE-4858 : CreateTable process - fixes

Changes following Carlos's remarks - see details in the ticket

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

* IDEMPIERE-4858 : CreateTable process - fixes migration scripts

See details in ticket

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

* IDEMPIERE-4858 : CreateTable process - various fixes

fix migration scripts names / constants in uppercase / remove check of table length

* IDEMPIERE-4858 : CreateTable process - various fixes

default value for EntityType param / replace numeric name/value params by boolean ones / enhance creation of system element (name/print name/description)
see https://idempiere.atlassian.net/browse/IDEMPIERE-4858?focusedCommentId=47325

* IDEMPIERE-4858 : CreateTable process : optional columns

* IDEMPIERE-4858 : CreateTable process : remove wrong temporary migration scripts

* IDEMPIERE-4858 : CreateTable process :

add org.adempiere.base.process as required plugin (and not as imported package)
add missing content on migration scripts

* IDEMPIERE-4858 : CreateTable process : fixes / reordering / renaming

Failed creating Description column: ** Fill mandatory fields: : Length
Value and DocumentNo are not usually mandatory
Some minor reordering and renaming of variables

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

* IDEMPIERE-4858 : CreateTable process : can be used to add columns on existing table

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

* IDEMPIERE-4858 : CreateTable process - fix default value for TableName parameter

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

* IDEMPIERE-4858 : CreateTable process  - restore default value for Description, Name and AccessLevel parameters

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-07-23 15:37:22 +02:00
Carlos Ruiz 1a01a70b2b
IDEMPIERE-4886 Synchronize multiple columns on ALTER (#788) 2021-07-23 13:20:36 +02:00
Carlos Ruiz 53ef632ecc
IDEMPIERE-1026 Button on table to create automatically the window (#775)
* IDEMPIERE-1026 Button on table to create automatically the window

Set relevant fields for translation tabs

* Set better order by for translation tables

* Minor performance fix found when testing this - the callout is visiting the database even on null column
2021-07-09 11:50:34 +02:00
Carlos Ruiz 0e58005d6f
IDEMPIERE-4853 Process to copy a Packout definition (FHCA-859) (#756)
* IDEMPIERE-4853 Process to copy a Packout definition (FHCA-859)

* IDEMPIERE-4853 Process to copy a Packout definition (FHCA-859)

Do not copy inactive details (as suggested by hengsin)
2021-07-01 22:14:46 +08:00
Carlos Ruiz 9f6232c50a
IDEMPIERE-4023 Missing translation in Client setup (#724) 2021-06-17 18:23:36 +08:00
Ricardo Santana 474e061d9c IDEMPIERE-4821 - Fix missing transaction in invoice creation from commission (#712) 2021-06-09 14:36:11 +02:00
igorpojzl 6da6bc1d85
IDEMPIERE-4796 Request EMail Processor - Html email processing type parameter (#696)
* IDEMPIERE-4796 EmailSrv Parse Html Images

* IDEMPIERE-4796  Request EMail Processor - Html email processing type parameter

* IDEMPIERE-4796 Migration Scripts Added

* IDEMPIERE-4796 Added Register_Migration_Script

* IDEMPIERE-4796 Html Attachment Type Variable Logic Update

* IDEMPIERE-4796 ImageList null check added
2021-06-03 21:05:22 +08:00
igorpojzl ad3debdd0e
IDEMPIERE-4765 IMAPS limited to GMAIL (#656)
* IDEMPIERE-4765 IMAPS limited to GMAIL

* IDEMPIERE-4765 Added IMAPHost Protocol
2021-04-22 18:56:00 +02:00
Carlos Ruiz a9b224c25d
IDEMPIERE-4762 Add AD_StorageProvider_ID to AD_Attachment (FHCA-1165) (#662) 2021-04-22 15:13:33 +02:00
Carlos Ruiz 1a5eb5ce22
IDEMPIERE-4746 Wrong usage of MTable.getColumnIndex (#640)
* IDEMPIERE-4746 Wrong usage of MTable.getColumnIndex

* Implementing suggestion from Andreas Sumerauer
* Fix issue in IDEMPIERE-3916 (Move Client) and IDEMPIERE-1026 (Create Window from Table)

* IDEMPIERE-4746 Wrong usage of MTable.getColumnIndex

* Change approach to discover real columns

* * Rename method as suggested by Andreas Sumerauer
2021-04-07 21:34:37 +08:00
Andreas Sumerauer 0fb7bc9a35
IDEMPIERE-4745 Fixes order by SQL generation error (#638)
Co-authored-by: Andreas <sumerauer@kanzlei-wmv.de>
2021-03-25 20:46:28 +01:00
Carlos Ruiz 5f2d71347d
IDEMPIERE-3101 implement OAuth2 for mail (gmail, outlook and other mail system) (#593)
* IDEMPIERE-3101 implement OAuth2 for mail (gmail, outlook and other mail system)

WIP - initial version working on zk with google apps mail using OAuth2 Authorization Code Flow and Client Type = web application

* Enable imap reading with OAuth2 in RequestEMailProcessor
* Simplify the code - tested plain and OAuth2 can use the same methods
* Add +SCOPE parameter to AddAuthorizationForm according to IDEMPIERE-4713
* Rename the form AddAuthorizationMailForm to AddAuthorizationForm as is now more generic

* IDEMPIERE-4713
* Rename migration scripts to make it newer than IDEMPIERE-4713
* Add list of scopes attended by a credential
* Change form to accept other scopes, if no scope parameter is passed, then a list is shown, change the menu to fix the EMail scope
* Add MAuthorizationAccount.refreshAndGetAccessToken
* Add translation for messages

* make call generic oauth, avoid using specific google API

* Tests with microsoft as OAuth2 provider
* Add record for microsoft as provider
* Increase size of tokens
* Define mandatory and secure columns
* Update refresh token when it comes on the refresh call
* Revoke endpoint is optional

* Change the approach to a process instead of a form (WIP)
* Implement servlet to process the OAuth2 code

* Solve context suggestion from hengsin

* Implement the form in an automatic popup approach for running on zkwebui

* i18n - add translations for all messages that are shown to user
* on the form opted for click to avoid the problem with browsers forbidding popups
* clean spaces and tabs on line endings

* avoid logging and copy of the secure columns

* Fix problem reported by @d-ruiz about hidden NPE when SMTP Authentication is disabled

* Add writing to AD_PInstance_Para and AD_PInstance_Log the results of processing the servlet
* Control to avoid using the same authorization URL twice
2021-03-06 11:49:39 +01:00
hengsin 1971b4f0dc
IDEMPIERE-4488 Remove .classpath from repository (#607)
* IDEMPIERE-4488 Remove .classpath from repository

* IDEMPIERE-4488 Remove .classpath from repository

add ignore for .classpath

* IDEMPIERE-4488 Remove .classpath from repository

remove ".settings/org.eclipse.jdt.core.prefs"

* IDEMPIERE-4488 Remove .classpath from repository

fix false status report for /bin and .project
2021-03-03 00:02:03 +01:00
Carlos Ruiz 43dbf6a05a
IDEMPIERE-1026 Button on table to create automatically the window (#577)
Fix issue creating menu on already created window
2021-02-11 09:29:38 +01:00
Martin Schönbeck 5e31c1fdb0
IDEMPIERE-4688 Adding Customs Tariff Number to products (#568)
* group1 and group2 also added to i_product
* Models generated for m_product and i_product, creating m_product from i_product extended with new fields.
2021-02-09 21:09:04 +01:00
Carlos Ruiz 79a3cd8c52
IDEMPIERE-4698 Load/Import Bank Statement issues (#573) 2021-02-09 20:11:00 +01:00
Carlos Ruiz e099498a69
IDEMPIERE-1026 Button on table to create automatically the window (#565)
Solve issue with SeqNo=0
2021-02-02 12:26:15 +01:00
hengsin f5e9cd9336
IDEMPIERE-4654 Sales Order After Receipt Delivery Rule is not working (#536)
* IDEMPIERE-4654 Sales Order After Receipt Delivery Rule is not working

create shipment if it is fully paid and stock is available
use currencyconvertpayment
- rename after receipt to after payment
- added unit test for invoice payment

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-01-26 19:34:38 +08:00
hengsin 1afe4fe0c6
IDEMPIERE-4652 Remove Eclipse warnings (#533) 2021-01-18 17:32:25 +01:00
hengsin d96199a2b6
IDEMPIERE-4251 Constant definition for all Env Context (#519)
* IDEMPIERE-4251 Constant definition for all Env Context

replace "#Date" with Env.DATE

* IDEMPIERE-4251 Constant definition for all Env Context

replace "#.." with constant at Env

* IDEMPIERE-4251 Constant definition for all Env Context

Merge patch from Carlos
2021-01-12 21:29:50 +08:00
Nicolas Micoud 326d210665
IDEMPIERE-4616 : Lead : add IsVendorLead (#500)
* IDEMPIERE-4616 : Lead : add IsVendorLead

* IDEMPIERE-4616 : Lead : add IsVendorLead

Fix description for Lead window
Add Display Logic for Opportunity parameters (now hidden if no opportunity)
Set BPartner.IsCustomer/IsVendor according to Lead.IsSales/VendorLead

* IDEMPIERE-4616 : Lead : add IsVendorLead

Move scripts from 8.2 to 8.2z
2021-01-07 18:48:25 +01:00
Carlos Ruiz 8103ab0732 IDEMPIERE-4604 Release 8.2
Change references to new version
Create new migration folder
2020-12-20 10:15:20 +01:00