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.29k stars 2.74k forks source link

REST API get /products/{id} does not output anything about virtual product (lot) #14457

Closed dpriskorn closed 4 months ago

dpriskorn commented 4 years ago

Bug

Thats a bug if you ask me.

Environment

Expected and actual behavior

expected a field like has_virtual_subproducts=1 and is_part_of_virtual_product=id-of-virtual-product

Steps to reproduce the behavior

curl -X GET --header 'Accept: application/json' --header 'DOLAPIKEY: ' 'http://dolibarr.localhost/api/index.php/products/1212' This is the output: { "label": "5 växelvajer", "description": "", "other": null, "type": "0", "price": "0.00000000", "price_ttc": "0.00000000", "price_min": "0.00000000", "price_min_ttc": "0.00000000", "price_base_type": "TTC", "multiprices": { "1": "0.00000000", "2": "67.20000000" }, "multiprices_ttc": { "1": "0.00000000", "2": "84.00000000" }, "multiprices_base_type": { "1": "TTC", "2": "TTC" }, "multiprices_min": { "1": "0.00000000", "2": "0.00000000" }, "multiprices_min_ttc": { "1": "0.00000000", "2": "0.00000000" }, "multiprices_tva_tx": { "1": "25.000", "2": "25.000" }, "multiprices_recuperableonly": { "1": "0", "2": "0" }, "prices_by_qty": [], "prices_by_qty_list": [], "default_vat_code": null, "tva_tx": "25.000", "tva_npr": "0", "localtax1_tx": "0.000", "localtax2_tx": "0.000", "localtax1_type": "0", "localtax2_type": "0", "stock_reel": null, "stock_theorique": null, "cost_price": null, "pmp": "0.00000000", "seuil_stock_alerte": null, "desiredstock": null, "duration_value": false, "duration_unit": "", "status": "1", "status_buy": "0", "finished": null, "status_batch": "0", "customcode": "", "url": null, "weight": null, "weight_units": "0", "length": null, "length_units": "0", "width": null, "width_units": "0", "height": null, "height_units": "0", "surface": null, "surface_units": "0", "volume": null, "volume_units": "0", "net_measure": null, "net_measure_units": null, "accountancy_code_sell": "3000", "accountancy_code_sell_intra": "", "accountancy_code_sell_export": "", "accountancy_code_buy": "4000", "accountancy_code_buy_intra": "", "accountancy_code_buy_export": "", "barcode": null, "barcode_type": null, "barcode_type_code": null, "barcodes_extra": [], "multilangs": [], "imgWidth": null, "imgHeight": null, "date_creation": "2020-06-30 09:01:02", "date_modification": "2020-07-31 09:00:44.988101", "product_fourn_id": null, "nbphoto": 0, "stock_warehouse": [], "fk_default_warehouse": null, "fk_price_expression": null, "fourn_pu": null, "fourn_price_base_type": null, "fourn_socid": null, "ref_fourn": null, "ref_supplier": null, "fk_unit": null, "price_autogen": "0", "id": "1212", "import_key": null, "array_options": { "options_postnord": null, "options_schenker": null, "options_label_en": null, "options_sello_id": null, "options_jv_ref": null, "options_sello_tosell": "1", "options_ms_ref": null, "options_script_created": null, "options_main_supplier_codename": "MS", "options_ean": null, "options_picture_url": null, "options_va_ref": null, "options_csn_ref": null, "options_sh_ref": null, "options_jo_ref": null, "options_sello_label_sv": null }, "array_languages": null, "linkedObjectsIds": null, "canvas": "", "fk_project": null, "contact": null, "contact_id": null, "thirdparty": null, "user": null, "origin": null, "origin_id": null, "ref": "5vxlv", "ref_ext": null, "statut": null, "country": null, "country_id": null, "country_code": "", "state": null, "state_id": null, "state_code": null, "barcode_type_label": null, "barcode_type_coder": null, "mode_reglement_id": null, "cond_reglement_id": null, "cond_reglement": null, "shipping_method_id": null, "modelpdf": null, "last_main_doc": null, "fk_account": null, "note_public": null, "note_private": "", "note": "", "total_ht": null, "total_tva": null, "total_localtax1": null, "total_localtax2": null, "total_ttc": null, "lines": null, "fk_incoterms": null, "label_incoterms": null, "location_incoterms": null, "date_validation": null, "duration": "", "entity": "1" }

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).