Skip to content
Snippets Groups Projects
Commit 84954720 authored by b.ulrich's avatar b.ulrich
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 cdefd636
No related branches found
No related tags found
No related merge requests found
......@@ -257,13 +257,6 @@ 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
......@@ -276,8 +269,9 @@ ItemUtils.prototype.insertPartsList = function(columns, productId, assignedTo, c
, P2pObject.quantity
, (P2pObject.optional) ? "1" : "0"
, pos
, itemsort
, descr]
, itemsort]
// add aditional details
.concat(additionalProductInfo.map(function(item) {return ProductDetails[item[1][0]]}));
statements.push([table, columns, colTypes, vals]);
insertedItemIds.push(newid);
......
......@@ -480,7 +480,7 @@ OfferItemUtils.prototype.insertPartsList = function(pProductId, pAssignedTo, pCu
return ItemUtils.prototype.insertPartsList.apply(this, [cols, pProductId, pAssignedTo, pCurrency, pContactId, [[["info", "INFO"], ["info",
"( " + newSelect("DESCRIPTION")
.from("DESCRIPTIONTRANSLATION")
.where("DESCRIPTIONTRANSLATION.OBJECT_ROWID", pProductId)
.where("DESCRIPTIONTRANSLATION.OBJECT_ROWID = PRODUCT.PRODUCTID")
.and("DESCRIPTIONTRANSLATION.OBJECT_TYPE = 'Product'")
.and("DESCRIPTIONTRANSLATION.LANG", pLanguage)
.toString() + ")"]]]]);
......
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