Limit the auto-select output of the PO name text box when adding
records/lineitems to existing PO's to PO's with the "new" or "pending"
statuses.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
<tr>
<td><label>[% l('Enter the PO Name: ') %]</label></td>
<td>
- <input jsId="addToPoInput" dojoType="openils.widget.PCrudAutocompleteBox" fmclass="acqpo" searchAttr="name" name="target_po" />
+ <input jsId="addToPoInput" dojoType="openils.widget.PCrudAutocompleteBox"
+ store_options="{base_filter:{state:['new','pending']}}"
+ fmclass="acqpo" searchAttr="name" name="target_po" />
</td>
</tr>