diff --git a/process/Offer_lib/process.js b/process/Offer_lib/process.js index cb3542c9162da2a90a0dc3d71802499e1c5a99c9..775014bc6015e74f03439a0f807c51e6da9b34c0 100644 --- a/process/Offer_lib/process.js +++ b/process/Offer_lib/process.js @@ -144,7 +144,7 @@ OfferUtils.openOfferReport = function (pOfferID) var offerItemSql = SqlCondition.begin() .andPrepare("OFFERITEM.OFFER_ID", pOfferID) .buildSql( - "select " + offerItemFields.join(", ") + " from OFFERITEM join PRODUCT on PRODUCT.PRODUCTID = OFFERITEM.PRODUCT_ID", + "select " + offerItemFields.join(", ") + " from OFFERITEM left join PRODUCT on PRODUCT.PRODUCTID = OFFERITEM.PRODUCT_ID", "1 = 0" ); var itemData = db.table(offerItemSql);