phpBMS

Changeset 352

Show
Ignore:
Timestamp:
10/23/07 13:05:42 (4 years ago)
Author:
brieb
Message:

Fixes displaying of payment amount on invoices with payment method of type receivable on the sales order add/edit screens.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/javascript/invoice.js

    r323 r352  
    873873                        var totalti = getObjectFromID("totalti"); 
    874874                        var clientid = getObjectFromID("clientid"); 
     875                        var type = getObjectFromID("type"); 
    875876                         
    876877                        var error = ""; 
     
    896897                        checkinfo.style.display = "none"; 
    897898                        ccinfo.style.display = "none"; 
    898                         amountpaid.value = numberToCurrency(0); 
    899                         amountdue.value = totalti.value; 
     899 
     900                        if(type.value != "Invoice"){ 
     901 
     902                                amountpaid.value = numberToCurrency(0); 
     903                                amountdue.value = totalti.value; 
     904                                 
     905                        }//endif 
    900906                        amountpaid.className = "important fieldCurrency fieldTotal uneditable"; 
    901907                        amountpaid.readOnly = true; 
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.