User Tools

Site Tools


scratchpad:patron_credit

For Evergreen 1.6 and earlier

This Page May Need Updating or Revising

In server/patron/, summary_overlay.xul summary_overlay_horiz.xul and bills_overlay.xul, take every element that has class="hide_patron_credit" and change hidden="true" to hidden="false". Also, in bills_overlay.xul, look for id="payment_type_menuitem4", and uncomment that element. The thought, which we never finished implementing, was to move away from the @hidden attribute, and set up some CSS to look for the hide_patron_credit class. Then folks could use local CSS to override the behavior for hide_patron_credit.

Outstanding bugs

summary_overlay.xul and summary_overlay_horiz.xul

        <row id="pdsgr2" class="hide_patron_credit" hidden="true">
            <label id="PatronSummaryStatus_credit_label" class="text_left credit label"
                value="&staff.patron_display.credit.label;" />
            <label id="patron_credit" class="credit value"/>
        </row><row>

becomes

        <row id="pdsgr2" class="hide_patron_credit" hidden="false">
            <label id="PatronSummaryStatus_credit_label" class="text_left credit label"
                value="&staff.patron_display.credit.label;" />
            <label id="patron_credit" class="credit value"/>
        </row><row>

bills_overlay.xul

                    <row class="hide_patron_credit" hidden="true">
                        <label value="&staff.patron.bills_overlay.patron_credit.value;"
                            style="font-family: bold" />

                        <textbox id="bill_credit_amount" readonly="true" context="clipboard"/>
                    </row>

becomes

                    <row class="hide_patron_credit" hidden="false">
                        <label value="&staff.patron.bills_overlay.patron_credit.value;"
                            style="font-family: bold" />

                        <textbox id="bill_credit_amount" readonly="true" context="clipboard"/>
                    </row>

and

        <button class="hide_patron_credit" hidden="true" disabled="true" id="change_to_credit" label="&staff.patron.bills_overlay.convert_change_to_credit.label;" command="cmd_change_to_credit"/>

becomes

        <button class="hide_patron_credit" hidden="false" disabled="true" id="change_to_credit" label="&staff.patron.bills_overlay.convert_change_to_credit.label;" command="cmd_change_to_credit"/>

and

                        <menulist id="payment_type">
                            <menupopup id="payment_type_menupopup">
                                <menuitem id="payment_type_menuitem1" label="&staff.patron.bills_overlay.cash.label;" value="cash_payment"/>
                                <menuitem id="payment_type_menuitem2" label="&staff.patron.bills_overlay.check.label;" value="check_payment"/>
                                <menuitem id="payment_type_menuitem3" label="&staff.patron.bills_overlay.credit_card.label;" value="credit_card_payment"/>
                                <!--
                                <menuitem id="payment_type_menuitem4" label="Patron Credit" value="credit_payment" />
                                -->
                                <menuitem id="payment_type_menuitem5" label="&staff.patron.bills_overlay.word.label;" value="work_payment"/>
                                <menuitem id="payment_type_menuitem6" label="&staff.patron.bills_overlay.forgive.label;" value="forgive_payment"/>
                                <menuitem id="payment_type_menuitem7" label="&staff.patron.bills_overlay.goods.label;" value="goods_payment"/>
                            </menupopup>
                        </menulist>

becomes

                        <menulist id="payment_type">
                            <menupopup id="payment_type_menupopup">
                                <menuitem id="payment_type_menuitem1" label="&staff.patron.bills_overlay.cash.label;" value="cash_payment"/>
                                <menuitem id="payment_type_menuitem2" label="&staff.patron.bills_overlay.check.label;" value="check_payment"/>
                                <menuitem id="payment_type_menuitem3" label="&staff.patron.bills_overlay.credit_card.label;" value="credit_card_payment"/>
                                <menuitem id="payment_type_menuitem4" label="Patron Credit" value="credit_payment" />
                                <menuitem id="payment_type_menuitem5" label="&staff.patron.bills_overlay.word.label;" value="work_payment"/>
                                <menuitem id="payment_type_menuitem6" label="&staff.patron.bills_overlay.forgive.label;" value="forgive_payment"/>
                                <menuitem id="payment_type_menuitem7" label="&staff.patron.bills_overlay.goods.label;" value="goods_payment"/>
                            </menupopup>
                        </menulist>
scratchpad/patron_credit.txt · Last modified: 2022/02/10 13:34 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.