Register    Login    Forum    Search    FAQ

Board index » General Usage » Banking




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: customer receipts problems!!!!!
 Post Posted: Tue Jun 14, 2011 12:56 pm 
Offline

Joined: Mon Nov 09, 2009 1:18 pm
Posts: 296
hi
senario
when i do a customer receipt for a customer on a invoice say a customer is owing me 10000 and i do a receipt for 9000 but i give only a discount of 500 so that the balance of the 500 must still be outstanding on that invoice .. this doesn't work .it wants to take the entire amount out .. But there might be a query on that invoice or maybe some credit wasnt passed or anything .. so we need to leave the balance onto the account for that invoice


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Sun Jun 26, 2011 9:03 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
This was a feature I added to help calculate remaining balances and discounts assuming the balance was to be paid in full. I guess this was a bad assumption.

To fix this, the javascript function will need to be altered to allow a discount and a payment not totaling the full amount owed.

The file to be modified is: /modules/phreebooks/javascript/banking.js
Function: updateRowTotal and updateUnitPrice

Dave


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Sun Jun 26, 2011 11:04 pm 
Offline

Joined: Mon Nov 09, 2009 1:18 pm
Posts: 296
hi dave many thankz so what do i need to do to correct the problem i got


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Mon Jun 27, 2011 4:02 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
in /modules/phreebooks/javascript/banking.js comment out the line in the function shown below. This will prevent the discount from being erased when a payment amount has been entered. Entering a discount will still calculate the remaining payment.
Code:
function updateUnitPrice(rowCnt) {
   var total_line = cleanCurrency(document.getElementById('total_'+rowCnt).value);
   document.getElementById('total_'+rowCnt).value = formatCurrency(total_line);
//   document.getElementById('dscnt_'+rowCnt).value = '';
   document.getElementById('pay_'+rowCnt).checked = true;
   updateTotalPrices();
}
Dave


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Tue Jun 28, 2011 12:03 am 
Offline

Joined: Mon Nov 09, 2009 1:18 pm
Posts: 296
hi dave thankz for reply
i tried that already before but when u comment out the line
// document.getElementById('dscnt_'+rowCnt).value = '';
it works but the amount due for that inv remains to the original amount and does not update to what the balance outstanding is
and say a customer owes me a balance of 200.00 on an invoice and if i put the entire amount of 200.00 in the discount field and leave the amount rcv as nill so to clear the invoice it processes the amounts correctly but when i go back to receipts the invoice and the full amount outstanding reappears ..


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Sat Jul 02, 2011 9:21 am 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
So much for the easy attempt. I will need to test this on my test server and see what else needs to be changed for this to work. I will be updating the trunk as there will probably be others that will want to do the same thing.

Dave


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Sun Jul 03, 2011 2:51 pm 
Offline

Joined: Mon Nov 09, 2009 1:18 pm
Posts: 296
many thankz and u will let me know when the trunk is updated


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Mon Jul 04, 2011 10:05 am 
Offline

Joined: Wed Nov 21, 2007 10:30 am
Posts: 569
Subscribe to one of the feeds and you will always be up to date.
http://code.google.com/p/phreedom/feeds

_________________
Alvin


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Mon Jul 04, 2011 10:38 am 
Offline

Joined: Mon Nov 09, 2009 1:18 pm
Posts: 296
@alvin thankz


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Wed Jul 27, 2011 2:13 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
This will be fixed in R3.2. It's a retrieval problem, doesn't affect the journal (unless you post the higher (incorrect payment).

Dave


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Mon Aug 29, 2011 11:11 am 
Offline

Joined: Mon Nov 09, 2009 1:18 pm
Posts: 296
sorry dave but maybe im seeing wrong but this hasn't been fixed as yet correct..


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Mon Aug 29, 2011 3:47 pm 
Offline

Joined: Fri Oct 26, 2007 3:55 pm
Posts: 3499
Location: Colorado, US
It's working on the demo. YO need to enter the amount received first and then the discount. If there is a remaining balance, it will show when you go to enter another receipt.

Dave


Top 
 Profile  
 
 Post subject: Re: customer receipts problems!!!!!
 Post Posted: Sat Sep 03, 2011 11:34 pm 
Offline

Joined: Mon Nov 09, 2009 1:18 pm
Posts: 296
yip sory dave i had to clear cache and its working


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

Board index » General Usage » Banking


Who is online

Users browsing this forum: No registered users and 0 guests

 
 

 
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: