[ http://jira.undersunconsulting.com/browse/OFBIZ-670?page=comments#action_13864 ]
Jacques Le Roux commented on OFBIZ-670: --------------------------------------- Yes Marco, I was just willing to do it. But have some tasks to complete before. Will see that ASAP. > Percentage item and sale discounts not working > ---------------------------------------------- > > Key: OFBIZ-670 > URL: http://jira.undersunconsulting.com/browse/OFBIZ-670 > Project: [OFBiz] Open For Business > Type: Bug > Components: pos > Versions: SVN > Environment: N/A > Reporter: Ray Barlow > Assignee: Jira Administrator > > > In the pos application it is throwing exceptions and failing to apply percentage discounts either at the sale level: > 3526968 (Thread-39) [ PosButton.java:136:ERROR] > ---- exception report ---------------------------------------------------------- > Button invocation exception - menuSaleDisc > Exception: org.ofbiz.pos.config.ButtonEventConfig$ButtonEventException > Message: null > ---- stack trace --------------------------------------------------------------- > org.ofbiz.pos.config.ButtonEventConfig$ButtonEventException > org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:228) > org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:117) > org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:132) > net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) > java.lang.Thread.run(Thread.java:534) > java.lang.reflect.InvocationTargetException > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:324) > org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:220) > org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:117) > org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:132) > net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) > java.lang.Thread.run(Thread.java:534) > Caused by: java.lang.IllegalArgumentException: [GenericEntity.set] "percentage" is not a field of OrderAdjustment, must be one of: orderAdjustmentId, orderAdjustmentTypeId, orderId, orderItemSeqId, shipGroupSeqId, comments, description, amount, productPromoId, productPromoRuleId, productPromoActionSeqId, productFeatureId, correspondingProductId, sourceReferenceId, sourcePercentage, customerReferenceId, primaryGeoId, secondaryGeoId, exemptAmount, taxAuthGeoId, taxAuthPartyId, overrideGlAccountId, includeInTax, includeInShipping, createdDate, createdByUserLogin, oldAmountPerQuantity, oldPercentage, lastUpdatedStamp, lastUpdatedTxStamp, createdStamp, createdTxStamp > org.ofbiz.entity.GenericEntity.set(GenericEntity.java:365) > org.ofbiz.entity.GenericEntity.set(GenericEntity.java:345) > org.ofbiz.pos.PosTransaction.addDiscount(PosTransaction.java:400) > org.ofbiz.pos.event.MenuEvents.saleDiscount(MenuEvents.java:274) > ... 9 more > or the item level: > 3561402 (Thread-41) [ PosButton.java:136:ERROR] > ---- exception report ---------------------------------------------------------- > Button invocation exception - menuItemDisc > Exception: org.ofbiz.pos.config.ButtonEventConfig$ButtonEventException > Message: null > ---- stack trace --------------------------------------------------------------- > org.ofbiz.pos.config.ButtonEventConfig$ButtonEventException > org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:228) > org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:117) > org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:132) > net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) > java.lang.Thread.run(Thread.java:534) > java.lang.reflect.InvocationTargetException > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:324) > org.ofbiz.pos.config.ButtonEventConfig.invoke(ButtonEventConfig.java:220) > org.ofbiz.pos.config.ButtonEventConfig.invokeButtonEvent(ButtonEventConfig.java:117) > org.ofbiz.pos.component.PosButton$1.construct(PosButton.java:132) > net.xoetrope.xui.helper.SwingWorker$2.run(Unknown Source) > java.lang.Thread.run(Thread.java:534) > Caused by: java.lang.IllegalArgumentException: [GenericEntity.set] "percentage" is not a field of OrderAdjustment, must be one of: orderAdjustmentId, orderAdjustmentTypeId, orderId, orderItemSeqId, shipGroupSeqId, comments, description, amount, productPromoId, productPromoRuleId, productPromoActionSeqId, productFeatureId, correspondingProductId, sourceReferenceId, sourcePercentage, customerReferenceId, primaryGeoId, secondaryGeoId, exemptAmount, taxAuthGeoId, taxAuthPartyId, overrideGlAccountId, includeInTax, includeInShipping, createdDate, createdByUserLogin, oldAmountPerQuantity, oldPercentage, lastUpdatedStamp, lastUpdatedTxStamp, createdStamp, createdTxStamp > org.ofbiz.entity.GenericEntity.set(GenericEntity.java:365) > org.ofbiz.entity.GenericEntity.set(GenericEntity.java:345) > org.ofbiz.pos.PosTransaction.addDiscount(PosTransaction.java:400) > org.ofbiz.pos.event.MenuEvents.itemDiscount(MenuEvents.java:313) > ... 9 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.undersunconsulting.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |