fix inventory det (#31097)

This commit is contained in:
Mohamed DAOUD 2024-09-23 15:04:16 +02:00 committed by GitHub
parent 8e43a83880
commit 6bb679c632
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 4 deletions

View file

@ -431,7 +431,7 @@ class modStock extends DolibarrModules
$this->export_TypeFields_array[$r] = array_merge($this->export_TypeFields_array[$r], array('p.barcode' => 'Text'));
}
$this->export_entities_array[$r] = array(
'e.rowid' => 'warehouse', 'e.ref' => 'warehouse', 'e.description' => 'warehouse', 'e.lieu' => 'warehouse', 'e.address' => 'warehouse', 'e.zip' => 'warehouse', 'e.town' => 'warehouse',
'id.qty_view' => 'inventory_line', 'id.qty_stock' => 'inventory_line', 'id.batch' => 'inventory_line', 'id.qty_regulated' => 'inventory_line', 'id.fk_warehouse' => 'inventory_line', 'id.rowid' => 'inventory_line', 'e.rowid' => 'warehouse', 'e.ref' => 'warehouse', 'e.description' => 'warehouse', 'e.lieu' => 'warehouse', 'e.address' => 'warehouse', 'e.zip' => 'warehouse', 'e.town' => 'warehouse',
'p.rowid' => "product", 'p.ref' => "product", 'p.fk_product_type' => "product", 'p.label' => "product", 'p.description' => "product", 'p.note' => "product",
'p.barcode' => "product", 'p.price' => "product", 'p.tva_tx' => 'product', 'p.tosell' => "product", 'p.tobuy' => "product", 'p.duration' => "product", 'p.datec' => 'product', 'p.tms' => 'product'
); // We define here only fields that use another icon that the one defined into export_icon

View file

@ -80,7 +80,8 @@ $entitytoicon = array(
'translation' => 'generic',
'bomm' => 'bom',
'bomline' => 'bom',
'conferenceorboothattendee' => 'contact'
'conferenceorboothattendee' => 'contact',
'inventory_line' => 'inventory'
);
// Translation code, array duplicated in import.php, was not synchronized, TODO put it somewhere only once
@ -133,7 +134,8 @@ $entitytolang = array(
'bom' => 'BOM',
'bomline' => 'BOMLine',
'conferenceorboothattendee' => 'Attendee',
'inventory' => 'Inventory'
'inventory' => 'Inventory',
'inventory_line' => 'InventoryLine'
);
$array_selected = isset($_SESSION["export_selected_fields"]) ? $_SESSION["export_selected_fields"] : array();

View file

@ -341,7 +341,8 @@ InventoryId=Inventory id
DateInventory=Inventory date
InventoryStatus=Inventory status
InventoryTitle=Inventory name
InventoryLineId=Inventory line
InventoryLine=Inventory line
InventoryLineId=Inventory line ID
InventoryRef=Inventory ref
QtyViewed=Quantity viewed
QtyStock=Quantity on stock