Project:
View Revisions: Issue #37836 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0037836: [RR18Q1] [Stock Validation] [Support for Attributes] Error when adding a product with attributes to a receipt causes POS failure | ||
Revision | 2018-02-06 13:32 by inaki_garcia | ||
Steps To Reproduce | PRECONDITIONS: - "Web POS stock validation" module must be installed - Support for Attributes preference must be activated - The subject product and attributes to reproduced this issue were configured as follows: * Product: * Search Key: NTP * Name: New Test Product * Product Category: Backpacks & Travel * Records in "Price" tab: "The White Valley Group Purchase Price List Version" and "The White Valley Group Sale Price list (Opening Store)" * Attribute Set: NTP Attributes * Attribute Set (NTP Attributes): * Require At Least One Value and Active checkboxes: checked | Rest of the checkboxes unchecked * In "Assigned Attributes" tab: Attribute 1, Attribute 2 * "Attribute Value"s for "Attribute 1": * Search Key: "PS-ASB" | Name: "VAL1" * Search Key: "PS-ASC" | Name: "VAL2" * "Attribute Value"s for "Attribute 2": * Search Key: "PS-BSB" | Name: "VAL3" * Search Key: "PS-BSC" | Name: "VAL4" - Add the product to the Assortment of the subject store - Ensure that there's enough stock for the product. To do so, Purchase Order, Good Receipt and Purchase Invoice were made for the Posets organization an store with the product's attribute set value set as "VAL1_VAL3". 0. Log in the Web POS' "PS-1" terminal as "posets" user 1. Click on the "Browse" button and hit the "Backpack & Travel" button 2. Select the "New Test Product" product. "Attribute Set Value" popup will be shown 3. Enter "VAL1_VAL3" value. NOTICE that, in spite of having entered the correct attribute set value for the product available in stock, error popups are shown which are JSON malformatting and field parsing related, as well as the related Javascript errors: TypeError: callback is not a function at OB.DS.HWServer._print (8863469d9c6db472fbebd79379158bdf.js:1746) at OB.DS.HWServer.print (8863469d9c6db472fbebd79379158bdf.js:1745) at 8863469d9c6db472fbebd79379158bdf.js:1745 at OB.DS.HWResource.getData (8863469d9c6db472fbebd79379158bdf.js:1736) at OB.DS.HWServer.print (8863469d9c6db472fbebd79379158bdf.js:1745) at PrintReceiptLine.print (8863469d9c6db472fbebd79379158bdf.js:2435) at G.d.trigger (backbone-0.9.2.min.js:9) at G.d.change (backbone-0.9.2.min.js:15) at G.d.set (backbone-0.9.2.min.js:12) at openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:3340:781; line: Object.OB.UTIL.showError (8863469d9c6db472fbebd79379158bdf.js:641) (*,+) 8863469d9c6db472fbebd79379158bdf.js:163 TypeError: Cannot read property 'toString' of undefined at toBigDecimal (8863469d9c6db472fbebd79379158bdf.js:663) at Object.OB.DEC.toBigDecimal (8863469d9c6db472fbebd79379158bdf.js:663) at G.d.printQty (8863469d9c6db472fbebd79379158bdf.js:1291) at Object.initComponents (8863469d9c6db472fbebd79379158bdf.js:2011) at Object.create (enyo.js:531) at Object.enyo.kind.inherited (enyo.js:410) at Object.create (enyo.js:690) at Object.enyo.kind.inherited (enyo.js:410) at Object.create (enyo.js:1313) at Object.enyo.kind.inherited (enyo.js:410); line: Object.OB.UTIL.showError (http://q [^] -- Trying to delete the receipt shows the following error: 8863469d9c6db472fbebd79379158bdf.js:663 Uncaught TypeError: Cannot read property 'toString' of null at toBigDecimal (openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:663:1024) at Object.OB.DEC.sub (openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:663:1716) at G.d.<anonymous> (openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1302:427) at Array.forEach (<anonymous>) at Function.b.each.b.forEach (openbravo/web/org.openbravo.mobile.core/lib/vendor/underscore-1.3.3.min.js:11:39) at G.d.r.(anonymous function) [as each] (openbravo/web/org.openbravo.mobile.core/lib/vendor/backbone-0.9.2.min.js:25:314) at G.d.adjustPrices (openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1301:291) at G.d.prepareToSend (openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1301:175) at finishRemoveOrder (openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1598:186) at openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1601:125 |
||
Revision | 2018-02-05 16:30 by inaki_garcia | ||
Steps To Reproduce | PRECONDITIONS: - "Web POS stock validation" module must be installed - Support for Attributes preference must be activated - The subject product and attributes to reproduced this issue were configured as follows: * Product: * Search Key: NTP * Name: New Test Product * Product Category: Backpacks & Travel * Records in "Price" tab: "The White Valley Group Purchase Price List Version" and "The White Valley Group Sale Price list (Opening Store)" * Attribute Set: NTP Attributes * Attribute Set (NTP Attributes): * Require At Least One Value and Active checkboxes: checked | Rest of the checkboxes unchecked * In "Assigned Attributes" tab: Attribute 1, Attribute 2 * "Attribute Value"s for "Attribute 1": * Search Key: "PS-ASB" | Name: "VAL1" * Search Key: "PS-ASC" | Name: "VAL2" * "Attribute Value"s for "Attribute 2": * Search Key: "PS-BSB" | Name: "VAL3" * Search Key: "PS-BSC" | Name: "VAL4" - Add the product to the Assortment of the subject store - Ensure that there's enough stock for the product. To do so, Purchase Order, Good Receipt and Purchase Invoice were made for the Posets organization an store with the product's attribute set value set as "VAL1_VAL3". 0. Log in the Web POS' "PS-1" terminal as "posets" user 1. Click on the "Browse" button and hit the "Backpack & Travel" button 2. Select the "New Test Product" product. "Attribute Set Value" popup will be shown 3. Enter "VAL1_VAL3" value. NOTICE that, in spite of having entered the correct attribute set value for the product available in stock, error popups are shown which are JSON malformatting and field parsing related, as well as the related Javascript errors: TypeError: callback is not a function at OB.DS.HWServer._print (8863469d9c6db472fbebd79379158bdf.js:1746) at OB.DS.HWServer.print (8863469d9c6db472fbebd79379158bdf.js:1745) at 8863469d9c6db472fbebd79379158bdf.js:1745 at OB.DS.HWResource.getData (8863469d9c6db472fbebd79379158bdf.js:1736) at OB.DS.HWServer.print (8863469d9c6db472fbebd79379158bdf.js:1745) at PrintReceiptLine.print (8863469d9c6db472fbebd79379158bdf.js:2435) at G.d.trigger (backbone-0.9.2.min.js:9) at G.d.change (backbone-0.9.2.min.js:15) at G.d.set (backbone-0.9.2.min.js:12) at http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:3340:781; [^] line: Object.OB.UTIL.showError (8863469d9c6db472fbebd79379158bdf.js:641) (*,+) 8863469d9c6db472fbebd79379158bdf.js:163 TypeError: Cannot read property 'toString' of undefined at toBigDecimal (8863469d9c6db472fbebd79379158bdf.js:663) at Object.OB.DEC.toBigDecimal (8863469d9c6db472fbebd79379158bdf.js:663) at G.d.printQty (8863469d9c6db472fbebd79379158bdf.js:1291) at Object.initComponents (8863469d9c6db472fbebd79379158bdf.js:2011) at Object.create (enyo.js:531) at Object.enyo.kind.inherited (enyo.js:410) at Object.create (enyo.js:690) at Object.enyo.kind.inherited (enyo.js:410) at Object.create (enyo.js:1313) at Object.enyo.kind.inherited (enyo.js:410); line: Object.OB.UTIL.showError (http://q [^] -- Trying to delete the receipt shows the following error: 8863469d9c6db472fbebd79379158bdf.js:663 Uncaught TypeError: Cannot read property 'toString' of null at toBigDecimal (http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:663:1024 [^]) at Object.OB.DEC.sub (http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:663:1716 [^]) at G.d.<anonymous> (http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1302:427 [^]) at Array.forEach (<anonymous>) at Function.b.each.b.forEach (http://qa-retail.openbravo.com/openbravo/web/org.openbravo.mobile.core/lib/vendor/underscore-1.3.3.min.js:11:39 [^]) at G.d.r.(anonymous function) [as each] (http://qa-retail.openbravo.com/openbravo/web/org.openbravo.mobile.core/lib/vendor/backbone-0.9.2.min.js:25:314 [^]) at G.d.adjustPrices (http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1301:291 [^]) at G.d.prepareToSend (http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1301:175 [^]) at finishRemoveOrder (http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1598:186 [^]) at http://qa-retail.openbravo.com/openbravo/web/js/gen/8863469d9c6db472fbebd79379158bdf.js:1601:125 [^] |
||
Revision | 2018-02-05 16:10 by inaki_garcia | ||
Steps To Reproduce | PRECONDITIONS: - "Web POS stock validation" module must be installed - Support for Attributes preference must be activated - The subject product and attributes to reproduced this issue were configured as follows: * Product: * Search Key: NTP * Name: New Test Product * Product Category: Backpacks & Travel * Records in "Price" tab: "The White Valley Group Purchase Price List Version" and "The White Valley Group Sale Price list (Opening Store)" * Attribute Set: NTP Attributes * Attribute Set (NTP Attributes): * Require At Least One Value and Active checkboxes: checked | Rest of the checkboxes unchecked * In "Assigned Attributes" tab: Attribute 1, Attribute 2 * "Attribute Value"s for "Attribute 1": * Search Key: "PS-ASB" | Name: "VAL1" * Search Key: "PS-ASC" | Name: "VAL2" * "Attribute Value"s for "Attribute 2": * Search Key: "PS-BSB" | Name: "VAL3" * Search Key: "PS-BSC" | Name: "VAL4" - Add the product to the Assortment of the subject store - Ensure that there's enough stock for the product. To do so, Purchase Order, Good Receipt and Purchase Invoice were made for the Posets organization an store with the product's attribute set value set as "VAL1_VAL3". 0. Log in the Web POS' "PS-1" terminal as "posets" user 1. Click on the "Browse" button and hit the "Backpack & Travel" button 2. Select the "New Test Product" product. "Attribute Set Value" popup will be shown 3. Enter "VAL1_VAL3" value. NOTICE that, in spite of having entered the correct attribute set value for the product available in stock, error popups are shown which are JSON malformatting and field parsing related, as well as the related Javascript errors. |
Copyright © 2000 - 2009 MantisBT Group |