| Author |
Message |
|
shamzcc
|
Post subject: customer receipts problems!!!!! Posted: Tue Jun 14, 2011 12:56 pm |
|
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
|
|
 |
|
 |
|
dave
|
Post subject: Re: customer receipts problems!!!!! Posted: Sun Jun 26, 2011 9:03 pm |
|
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
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: customer receipts problems!!!!! Posted: Sun Jun 26, 2011 11:04 pm |
|
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
|
|
 |
|
 |
|
dave
|
Post subject: Re: customer receipts problems!!!!! Posted: Mon Jun 27, 2011 4:02 pm |
|
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
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: customer receipts problems!!!!! Posted: Tue Jun 28, 2011 12:03 am |
|
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 ..
|
|
 |
|
 |
|
dave
|
Post subject: Re: customer receipts problems!!!!! Posted: Sat Jul 02, 2011 9:21 am |
|
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
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: customer receipts problems!!!!! Posted: Sun Jul 03, 2011 2:51 pm |
|
Joined: Mon Nov 09, 2009 1:18 pm Posts: 296
|
|
many thankz and u will let me know when the trunk is updated
|
|
 |
|
 |
|
alvin
|
Post subject: Re: customer receipts problems!!!!! Posted: Mon Jul 04, 2011 10:05 am |
|
Joined: Wed Nov 21, 2007 10:30 am Posts: 569
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: customer receipts problems!!!!! Posted: Mon Jul 04, 2011 10:38 am |
|
Joined: Mon Nov 09, 2009 1:18 pm Posts: 296
|
|
 |
|
 |
|
dave
|
Post subject: Re: customer receipts problems!!!!! Posted: Wed Jul 27, 2011 2:13 pm |
|
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
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: customer receipts problems!!!!! Posted: Mon Aug 29, 2011 11:11 am |
|
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..
|
|
 |
|
 |
|
dave
|
Post subject: Re: customer receipts problems!!!!! Posted: Mon Aug 29, 2011 3:47 pm |
|
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
|
|
 |
|
 |
|
shamzcc
|
Post subject: Re: customer receipts problems!!!!! Posted: Sat Sep 03, 2011 11:34 pm |
|
Joined: Mon Nov 09, 2009 1:18 pm Posts: 296
|
|
yip sory dave i had to clear cache and its working
|
|
 |
|
 |
|