commit 761983c9c367db865df4df2216966514f41ad541
parent 57509f0e3aa95c108232c28fa62cf866201f2aad
Author: Felicitus <felicitus@felicitus.org>
Date: Tue, 15 Dec 2015 10:17:21 +0100
Fixed setting of the distributor, related to #532
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Project/ProjectReport.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Project/ProjectReport.js
@@ -71,7 +71,6 @@ Ext.define('PartKeepr.ProjectReportView', {
header: i18n("Part Name"),
renderer: function (val, p, rec)
{
- console.log(rec);
return rec.getPart().get("name");
},
flex: 1
@@ -339,7 +338,7 @@ Ext.define('PartKeepr.ProjectReportView', {
}
if (cheapest !== null) {
- activeRecord.set("distributor_name", cheapest.get("distributor_name"));
+ activeRecord.setDistributor(cheapest.getDistributor());
activeRecord.set("distributor_order_number", cheapest.get("orderNumber"));
activeRecord.set("price", cheapest.get("price"));
activeRecord.set("sum_order", activeRecord.get("missing") * activeRecord.get("price"));