From: phasefx Date: Mon, 18 Oct 2010 15:37:23 +0000 (+0000) Subject: merge r18374-18375 from trunk for bill receipt fixes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ddccf34621351465bdc53515d4455ce47b7901d8;p=evergreen%2Fjoelewis.git merge r18374-18375 from trunk for bill receipt fixes git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18376 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index 20af40b1d2..f637bad8f6 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -363,7 +363,7 @@ OpenILS.data.prototype = { 'bills_historical' : { 'type' : 'bills', 'header' : 'Welcome to %LIBRARY%!
You had the following bills:
    ', - 'line_item' : '
    Bill #%id%
    Date:%xact_start%
    Type:%xact_type%
    Last Billing:%last_billing_type%
    %last_billing_note%
    Total Billed:$%total_owed%
    Last Payment:%last_payment_type%
    %last_payment_note%
    Total Paid:$%total_paid%
    Balance:$%balance_owed%

    ', + 'line_item' : '
    Bill #%mbts_id% %title%
    Date:%xact_start%
    Type:%xact_type%
    Last Billing:%last_billing_type%
    %last_billing_note%
    Total Billed:$%total_owed%
    Last Payment:%last_payment_type%
    %last_payment_note%
    Total Paid:$%total_paid%
    Balance:$%balance_owed%

    ', 'footer' : '

%SHORTNAME% %TODAY_TRIM%
\r\n
\r\n' }, 'bills_current' : { diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 0805014a17..0be012d87c 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -809,8 +809,8 @@ function apply_payment() { 'payment' : o[1], 'last_billing_type' : g.bill_map[ o[0] ].transaction.last_billing_type(), 'last_billing_note' : g.bill_map[ o[0] ].transaction.last_billing_note(), - 'title' : typeof g.bill_map[ o[0] ].title != 'undefined' ? g.bill_map[ o[0] ].title : '', - 'barcode' : typeof g.bill_map[ o[0] ].barcode != 'undefined' ? g.bill_map[ o[0] ].barcode : '' + 'title' : typeof g.bill_map[ o[0] ].record != 'undefined' ? g.bill_map[ o[0] ].record.title() : '', + 'barcode' : typeof g.bill_map[ o[0] ].copy != 'undefined' ? g.bill_map[ o[0] ].copy.barcode() : '' }; } ),