« Return to Thread: Error posting invoice of purchase order

Re: Error posting invoice of purchase order

by Nathan Gray :: Rate this Message:

Reply to Author | View in Thread


On 13-Apr-09, at 11:48 AM, PCS-Lists wrote:

> when invoicing a PO, after received it, I selected GL accounts for  
> each line
> of the invoice and save. when I try to post this invoice appears the  
> error:
> [Mon Apr 13 14:16:33 2009] [error] [client 192.168.4.5] PHP Warning:
> sprintf() [ function.sprintf function.sprintf ]: Too few arguments in
> /usr/share/egroupware/perp_ap/inc/class.PayableInvoice.inc.php on  
> line 50,
> referer:
> http://skmmaua.dyndns.biz/egroupware/index.php?menuaction=perp_ap.ui_perp_payable_invoice.invoice_list

Check your AP site configuration, make sure you're only using allowed  
replacement variables.
>
> [Mon Apr 13 14:16:33 2009] [error] [client 192.168.4.5] An error  
> happend:
> Invalid account (100) for line: produto 3*,
> ...
> I've tested with four or five different GL accounts, that belong to
> different sequences, groups and sections but the error is always  
> similar.

Some reasons for an invalid account:
$account == 0

OR

SELECT asset_or_liability
FROM perp_account
JOIN perp_account_group ON perp_account_group.group_id =  
perp_account.account_group
WHERE account_id = 100
returns nothing, indicating that your account's group is not properly  
set.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

 « Return to Thread: Error posting invoice of purchase order