Changeset c1e2c55 in tailbone


Ignore:
Timestamp:
06/27/18 13:34:48 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
076d3d8
Parents:
edbf7e6
Message:

Allow zero quantity for inventory batch desktop entry form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/templates/batch/inventory/desktop_form.mako

    redbf7e6 rc1e2c55  
    1111    function assert_quantity() {
    1212        % if allow_cases:
    13         if ($('#cases').val() && parseFloat($('#cases').val())) {
     13        var cases = parseFloat($('#cases').val());
     14        if (!isNaN(cases)) {
    1415            return true;
    1516        }
    1617        % endif
    17         if ($('#units').val() && parseFloat($('#units').val())) {
     18        var units = parseFloat($('#units').val());
     19        if (!isNaN(units)) {
    1820            return true;
    1921        }
Note: See TracChangeset for help on using the changeset viewer.