Register    Login    Forum    Search    FAQ

Board index » General Usage » Payables




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Item Tax on Purchase order
 Post Posted: Sat Apr 25, 2009 1:01 pm 
Offline

Joined: Sun Apr 06, 2008 1:21 pm
Posts: 222
Location: Netherlands, Europe
Would it be possible (on the purchase order) to automatic fill in the tax rate with the selected item(SKU)?
When using FF it goes ok but you have to choose the tax rate from the pulldown menu.

When using fi IE7(yes i know :( but a lot of people still use IE) phreebooks gives a JS error and does not close the Inventory popup screen,
Quote:
error: tax_rates[].rate is empty or no object

Jan

_________________
** Please use the search function of this board before posting **


Top 
 Profile  
 
 Post subject: Re: Item Tax on Purchase order
 Post Posted: Mon Apr 27, 2009 9:33 am 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
Jan,
Load an order screen, look at the source and look for a line starting with 'var tax_rates = new Array('. This is the tax rates loaded for your company. Send the array contents to me by PM. The error implies the array exists but an index is missing. I need to see it to figure out where the problem is.

Regarding the tax rate, you can set the default tax rate in the maintain inventory screen for sales but not for purchases. Good idea, I will need to add a field to the inventory screen to set the default value.

Dave


Top 
 Profile  
 
 Post subject: Re: Item Tax on Purchase order
 Post Posted: Wed May 06, 2009 2:21 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
This error will only happen with payables and has to with the tax rates not being defined properly. To fix the javascript error implement the following change:
File: /modules/orders/javascript/orders.js
add a line after line 584 from:
Code:
tax_index = document.getElementById('tax_'+i).selectedIndex;
With:
Code:
tax_index = document.getElementById('tax_'+i).selectedIndex;
     if (tax_index == -1) {
      tax_index = 0;
      document.getElementById('tax_'+i).value = tax_index;
     }

The core problem is that I don't have a default tax for purchases. I will need to add a new field to the inventory table to set the default purchase tax. For next release.
Dave


Top 
 Profile  
 
 Post subject: Re: Item Tax on Purchase order
 Post Posted: Wed May 06, 2009 2:31 pm 
Offline

Joined: Sun Apr 06, 2008 1:21 pm
Posts: 222
Location: Netherlands, Europe
Works ok now :)
Jan

_________________
** Please use the search function of this board before posting **


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 4 posts ] 

Board index » General Usage » Payables


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: