Changeset be53392 in tailbone


Ignore:
Timestamp:
11/03/2022 11:28:38 AM (3 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
3b64950
Parents:
38e6441
Message:

Show UPC for receiving line item if no product reference

to help with troubleshooting invoice file parsing etc.

Location:
tailbone
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tailbone/templates/receiving/view_row.mako

    r38e6441 rbe53392  
    8686                    ${form.render_field_readonly('product')}
    8787                % else:
     88                    ${form.render_field_readonly(product_key_field)}
    8889                    ${form.render_field_readonly('item_entry')}
    89                     ${form.render_field_readonly(product_key_field)}
     90                    % if product_key_field != 'upc':
     91                        ${form.render_field_readonly('upc')}
     92                    % endif
    9093                    ${form.render_field_readonly('brand_name')}
    9194                    ${form.render_field_readonly('description')}
  • tailbone/views/purchasing/receiving.py

    r38e6441 rbe53392  
    14801480        batch = self.get_instance()
    14811481
     1482        # when viewing a row which has no product reference, enable
     1483        # the 'upc' field to help with troubleshooting
     1484        # TODO: this maybe should be optional..?
     1485        if self.viewing and 'upc' not in f:
     1486            row = self.get_row_instance()
     1487            if not row.product:
     1488                f.append('upc')
     1489
    14821490        # allow input for certain fields only; all others are readonly
    14831491        mutable = [
Note: See TracChangeset for help on using the changeset viewer.