c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27030
Re: [Bug 399826] Re: Confirming payment in account_payment does not create entries in journals/accounts; wizard missing?
Something is odd.
This is not the expected behavior unless you have a very different way of managing VAT.
I would _not_ expect the actual payment to mention anything about the
VAT part. Not on the debit or credit side.
I would only expect the payment journal entry to indicate that you have
paid your supplier and thus no longer have a debt to the supplier
that your bank account have decreased etc etc
The VAT part should be part of the journal entry that was made once the
supplier invoice was approved. Not when it is paid.
I have not seen this behavior in any of my configurations. Can it be
that you have made an error in your VAT configuration?
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
22 jun 2011 kl. 01.04 skrev Claire:
> Hi, David
>
> I mean the 'voucher print' button with view of 'pay invoice' when we pay
> supplier.
>
> I attach the pictures as following....Maybe it is not a big deal, I try
> to fix report if I am correct here
>
> The main problem for us is the GST (tax payable).....Please have a look
> at the attached pictures when you have time.
>
> Sorry for bothering and Thank you for your help again and again.
>
> --
> 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