Skip to content
Snippets Groups Projects
Commit 93c7de34 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1050801][Vertrieb: Angebot: Reiter...

[Projekt: Entwicklung - Neon][TicketNr.: 1050801][Vertrieb: Angebot: Reiter "Angebotsposten" - Beschreibung des Produktes ist nicht stimmig]
parent e4e1e42c
No related branches found
No related tags found
No related merge requests found
......@@ -257,6 +257,13 @@ ItemUtils.prototype.insertPartsList = function(columns, productId, assignedTo, c
vat = ProductDetails.PriceListToUse.vat;
}
var descr = newSelect("DESCRIPTION")
.from("DESCRIPTIONTRANSLATION")
.where("DESCRIPTIONTRANSLATION.OBJECT_ROWID", prodid)
.and("DESCRIPTIONTRANSLATION.OBJECT_TYPE = 'Product'")
.and("DESCRIPTIONTRANSLATION.LANG", "eng")
.cell()
var vals = [newid
, self.offerOrderId
, prodid
......@@ -269,9 +276,12 @@ ItemUtils.prototype.insertPartsList = function(columns, productId, assignedTo, c
, P2pObject.quantity
, (P2pObject.optional) ? "1" : "0"
, pos
, itemsort]
, itemsort
, descr]
// add aditional details
.concat(additionalProductInfo.map(function(item) {return ProductDetails[item[1][0]]}));
// .concat(additionalProductInfo.map(function(item) {return ProductDetails[item[1][0]]}));
statements.push([table, columns, colTypes, vals]);
insertedItemIds.push(newid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment