← Back to team overview

openerp-india team mailing list archive

[Bug 981867] Re: Point of Sale Posting to Wrong Account

 

Thank you for your replay.  I have found the answer.  There is a little
section under settings where one sets parameters.  There is a parameter
there for default account payable and default account receivable.

** Changed in: openobject-addons
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/981867

Title:
  Point of Sale Posting to Wrong Account

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  There appears to be a problem with the web POS.  I have configured an
  account for use only with the point of sale.  In other words all sales
  should go into that account and in the database it has an id of 78.  I
  have set up a payment method (journal) as well to use this account
  (id=10).  I then make an order in the web POS and this is the JSON

  {"jsonrpc":"2.0","method":"call","params":{"model":"pos.order","method":"create_from_ui","args":[[{"name":"Order
  1334433140802","amount_paid":177.62,"amount_total":177.62,"amount_tax":17.601981981981993,"amount_return":0,"lines":[[0,0,{"qty":1,"price_unit":50,"discount":0,"product_id":571}],[0,0,{"qty":1,"price_unit":121.62,"discount":0,"product_id":544}],[0,0,{"qty":1,"price_unit":6,"discount":0,"product_id":673}]],"statement_ids":[[0,0,{"name":"2012-04-14
  19:52:30","statement_id":1,"account_id":78,"journal_id":10,"amount":177.62}]]}]],"kwargs":{},"session_id":"fa399567d68a4665a6fbd8cccb8d1b4d"},"id":"r3396"}

  As you can the pos front end is correctly picking up the right
  accounts.  However, when I go to the cash register list and look at
  the Cash Transactions tab, the erp has automagically assigned it to an
  account that has nothing to do with it.  It assigns it to an account
  dedicated to keeping track of losses/gains on currency exchange with
  an ID of 41.  I have also set up the products that are sold by our pos
  to go to this account.

  In summary the when an order comes from POS the program ignores what
  is put in the payment method and also what is on the product and also
  what is on the the companies configuration tab and chooses a
  completely different account.  If I make a sales using the sales order
  the product gets posted to the correct account.

  I think it probably has to do with this

          args['account_id'] = (order.partner_id and order.partner_id.property_account_receivable \
                               and order.partner_id.property_account_receivable.id) or (account_def and account_def.id) or False

  in the make_payment method because there is no partner defined so I
  have no idea which partner it would be using.  I have looked through
  all my partners and can't find one with this account defined.

  This is on openerp 6.1.1 with postgres 8.4 and Ubuntu Linux server.  I
  would be more than happy to send you a database dump if you could tell
  me where to send it.

  Thanks for your cosideration

  Jon Wadsworth

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/981867/+subscriptions


References