Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030688Retail ModulesWeb POSpublic2015-08-27 14:242015-08-31 09:13
ngarcia 
Retail 
immediatemajoralways
closedno change required 
5
 
 
marvintm
No
0030688: Order cannot be imported if the business partner does not have a default payment method
Order cannot be imported if the business partner does not have a default payment method
As group admin role:
   Remove the Payment Method to VBS Customer business partner

Clean the cache

Log in in WebPOS and create two receipts (select the Invoice this Receipt option in one of them)

As group admin role:
   Check the two orders are in Errors While Importing POS Data with Not imported due to errors status
   In the JSON order data you could see: "paymentMethod":null
   The error in the log is different for each case
      org.openbravo.base.exception.OBException: ERROR: null value in column "fin_paymentmethod_id" violates not-null constraint

      org.openbravo.base.exception.OBException: Error in OrderLoader: at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:314)
      ...
      org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
      
No tags attached.
Issue History
2015-08-27 14:24ngarciaNew Issue
2015-08-27 14:24ngarciaAssigned To => Retail
2015-08-27 14:24ngarciaResolution time => 1440799200
2015-08-27 14:24ngarciaTriggers an Emergency Pack => No
2015-08-28 14:39ngarciaIssue Monitored: networkb
2015-08-31 09:13marvintmReview Assigned To => marvintm
2015-08-31 09:13marvintmNote Added: 0079821
2015-08-31 09:13marvintmStatusnew => closed
2015-08-31 09:13marvintmResolutionopen => no change required

Notes
(0079821)
marvintm   
2015-08-31 09:13   
Business partners used in the Web POS need to have a default payment method. Otherwise it's not possible to pick a payment method when creating the order in several flows.

The wiki has been clarified slightly to specify this:

http://wiki.openbravo.com/wiki/Retail:Configuration_Guide#Add_Retail_Stores_to_the_Organization_Model [^]