Menu

#3 Volume and Weights are not imported in Product importer

Project Setup
open
nobody
adempiere (1)
2012-01-10
2011-12-25
No

The ImportProduct Process initialized new Products with a Java Constructor which get the XX_I_Product as an argument. This constructor does not initialize volume and weight. (If you just update an old Product the error does not show up.)

While repairing it I found that in I_Product both the fields are integer fields and not BigDecimal. The database fields are numeric (this is right). This is because they are wrong declared in the AD.

Proposed Solution:

  • change the Fields' Reference in the AD to "Amount"
  • re-create Model Interface
  • write the missing initializers in the constructor

Discussion


Log in to post a comment.

MongoDB Logo MongoDB