Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.46k stars 2.79k forks source link

Feature Request: Add Width/Height on Product Card (available in database only currenlty) #5933

Closed aljawaid closed 7 years ago

aljawaid commented 8 years ago

Bug

v4.0 introduced Width/Height fields in Product Card (according to the change log). The database table shows the columns but the product card does not show the fields to add values or even display values.

Environment

eldy commented 8 years ago

Are you sure your product is of type "product" and not "service" ?

aljawaid commented 8 years ago

Yes, the product is of type 'product' as we rarely use services.

I will send a screenshot later to show the form in edit mode and view mode. Like I said, the column is in the database but there is nothing on the form.

aljawaid commented 8 years ago

@eldy If you advise me what code to look for, I can check if it is my version of the card.php on 4.0.1?

aljawaid commented 8 years ago

2016-10-29 23:46:05 DEBUG 79.77.241.109 sql=SELECT rowid, ref, ref_ext, label, description, url, note, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, seuil_stock_alerte, canvas, **weight, weight_units, length, length_units, surface, surface_units, volume, volume_units,** barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_sell, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 115

aljawaid commented 8 years ago

@eldy

I have looked through product/card.php for v4.0.0 and v4.0.1.

In comparison, from around line 1015 it shows the code for Weight/Length/Volume/Surface but not Height or Width.

I have also cross-checked this with the same file in the develop branch of v4.0.1 and found the same issue - no reference to the width or height.

Maybe I am looking in the wrong place. Not sure if this helps.

aljawaid commented 8 years ago

The same problem for 4.0.2 :(

BebZ commented 8 years ago

Did you check HIDDEN OPTIONS ?

Hub to this thread.

Reply to this email directly, view it on GitHub https://github.com/Dolibarr/dolibarr/issues/5933#issuecomment-258135663, or mute the thread https://github.com/notifications/unsubscribe-auth/ADheN9SM4iuxICehc4U0sqfaL8MJ06vLks5q6dsagaJpZM4KhsCS .

aljawaid commented 8 years ago

@BebZ Hi, do you mean the 'hidden options' in the Dolibarr Setup>Other Setup?

I'm not sure what the hidden option would be to enable it? It is not listed here? https://wiki.dolibarr.org/index.php/Setup_Other

grandoc commented 7 years ago

It's not a bug. Changelog was not clear, because width and height have only been added within database.

eldy commented 7 years ago

Ticket moved as feature requests

aljawaid commented 7 years ago

@grandoc Thank you for the explanation. Makes a lot more sense now. Hope the field to the table gets added soon to the product card.

aljawaid commented 7 years ago

6114