← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 399826] Re: Confirming payment in account_payment does not create entries in journals/accounts; wizard missing?

 

You have probably not completed the process :)

Have you tried bank statement under the bank & cash? 
>From there you import the payment lines that originate from the payment orders you have carried out. 

The bank statment - import payment lines - finalizes the process and
provides you with the expected journal entries.


1. export invoices that are approved and payable to the bank (or use the payment order printouts for manual payments) 
2. Import the payment lines that have been carried out from openerps list of paid invoices into openerps bookkeeping (so to say) 

(exporting a payment (creating a payment order) is not the same as
telling openerp to create journal entries. bank statements manage the
link between invoice lines and your book keeping)

The third step could be part of a process where someone is reviewing actual bank statements and importing the ones listed on the actual bank statement from the bank. 
It could also be part of module that import digital statements from your bank. Potentially a file being downloaded right after you have uploaded the payment order 


If there is an error or something you would like to change in the standard printouts it is pretty easy to change to your liking. 


The pay invoice button on the invoice form in openerp carries out both
steps above, so to say.. but no export, import  and no bulk capabilities
(only on a partner basis). Hence better for small companies.

I recommend using the simple pay function when you mange credit invoices
(real credits not cancel). But that is a different topic altogether and
just as confusing as the above :)


And.. you should know it took me many days to figure this out so you are not stupid! 

Regards
david 

--
David Rinnan
Business Consultant

ASPIRIX AB
email:    david.rinnan@xxxxxxxxxx
phone:  +46 707 16 38 00
skype:   david.rinnan
twitter:   davidrinnan

Open Source Business Solutions

21 jun 2011 kl. 00.07 skrev Claire:

> Hi, David
> 
> We are kind of large company using batch mode so that why I want to
> figure out how "payment order" works. There is no journal entries after
> confirming and paying "payment order".
> 
> As far as "pay invoice", I just want to say that it looks wrong that
> "voucher print" shows "payment from supplier".
> 
> Can you have a look? Thanks
> 
> -- 
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/399826
> 
> Title:
>  Confirming payment in account_payment does not create entries in
>  journals/accounts; wizard missing?
> 
> Status in OpenERP Localization for Argentina:
>  New
> Status in OpenERP Modules (addons):
>  Invalid
> 
> Bug description:
>  Confirming payment in payment order will put the payment order in
>  'done' state however no corresponding entries are created in the
>  journals or accounts. Log file displays an error as "No wizard found
>  for the payment type 'Bla'".
> 
>  Digging into the code it appears that in the file wizard/wizard_pay.py in 5.0 & trunk of account_payment there are some lines of code:
>      gw= order_ref.get_wizard(t)
>      if not gw:
>          order_ref.set_done(cr,uid,data['id'],context)
>          return {}
>  <other code below if gw=true, presumably related to the wizard and updating journals/accounts?>
> 
>  tracing back order_ref (class payment_order in payment.py) yields get_wizard(type) as noted below
> 
>      def get_wizard(self,type):
>          logger = netsvc.Logger()
>          logger.notifyChannel("warning", netsvc.LOG_WARNING,
>                  "No wizard found for the payment type '%s'." % type)
>          return None
> 
>  So from what I gather, get_wizard will always return None, so the if
>  statement above will always execute. Thusthe code beyond the if
>  statement will never execute. End result is that the payment order is
>  set to 'done' and nothing else happens. Presumably entries should be
>  created in the corresponding journals and accounts but none of that
>  happens which makes this module rather useless!
> 
>  Did I miss anything? (Hope I did!)
> 
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openerp-argentina/+bug/399826/+subscriptions

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/399826

Title:
  Confirming payment in account_payment does not create entries in
  journals/accounts; wizard missing?

Status in OpenERP Localization for Argentina:
  New
Status in OpenERP Modules (addons):
  Invalid

Bug description:
  Confirming payment in payment order will put the payment order in
  'done' state however no corresponding entries are created in the
  journals or accounts. Log file displays an error as "No wizard found
  for the payment type 'Bla'".

  Digging into the code it appears that in the file wizard/wizard_pay.py in 5.0 & trunk of account_payment there are some lines of code:
      gw= order_ref.get_wizard(t)
      if not gw:
          order_ref.set_done(cr,uid,data['id'],context)
          return {}
  <other code below if gw=true, presumably related to the wizard and updating journals/accounts?>
         
  tracing back order_ref (class payment_order in payment.py) yields get_wizard(type) as noted below

      def get_wizard(self,type):
          logger = netsvc.Logger()
          logger.notifyChannel("warning", netsvc.LOG_WARNING,
                  "No wizard found for the payment type '%s'." % type)
          return None

  So from what I gather, get_wizard will always return None, so the if
  statement above will always execute. Thusthe code beyond the if
  statement will never execute. End result is that the payment order is
  set to 'done' and nothing else happens. Presumably entries should be
  created in the corresponding journals and accounts but none of that
  happens which makes this module rather useless!

  Did I miss anything? (Hope I did!)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-argentina/+bug/399826/+subscriptions


References