| Lines 363-370
          isnt( exists $templates->[1]->{row_gap},          0.3,          'row_gap
      
      
        Link Here | 
        
          | 363 | is  (        $templates->[1]->{units},            'POINT',      'units            is good' ); | 363 | is  (        $templates->[1]->{units},            'POINT',      'units            is good' ); | 
        
          | 364 | isnt( exists $templates->[1]->{creator},          'Labels',     'creator          is good' ); | 364 | isnt( exists $templates->[1]->{creator},          'Labels',     'creator          is good' ); | 
        
          | 365 |  | 365 |  | 
          
            
              | 366 | # With filter params ------------------ | 366 | # With filters params ------------------ | 
            
              | 367 | $templates = get_all_templates( filter => 'rows = 7' ); | 367 | $templates = get_all_templates( { filters => { rows => 7} } ); | 
        
          | 368 |  | 368 |  | 
        
          | 369 | $query = ' | 369 | $query = ' | 
        
          | 370 |   SELECT count(*) | 370 |   SELECT count(*) | 
  
    | Lines 396-402
          is( $templates->[0]->{units},            'POINT',      'units            is good
      
      
        Link Here | 
        
          | 396 | is( $templates->[0]->{creator},          'Labels',     'creator          is good' ); | 396 | is( $templates->[0]->{creator},          'Labels',     'creator          is good' ); | 
        
          | 397 |  | 397 |  | 
        
          | 398 | # With orderby param ------------------ | 398 | # With orderby param ------------------ | 
          
            
              | 399 | $templates = get_all_templates( orderby => 'rows DESC' ); | 399 | $templates = get_all_templates( { orderby => 'rows DESC' } ); | 
        
          | 400 |  | 400 |  | 
        
          | 401 | $query = ' | 401 | $query = ' | 
        
          | 402 |   SELECT    count(*) | 402 |   SELECT    count(*) | 
  
    | Lines 543-550
          isnt( exists $layouts->[1]->{format_string}, 'barcode',     'format_string  is g
      
      
        Link Here | 
        
          | 543 | isnt( exists $layouts->[1]->{layout_xml},    'layout_xml2', 'layout_xml     is good' ); | 543 | isnt( exists $layouts->[1]->{layout_xml},    'layout_xml2', 'layout_xml     is good' ); | 
        
          | 544 | isnt( exists $layouts->[1]->{creator},       'Labels',      'creator        is good' ); | 544 | isnt( exists $layouts->[1]->{creator},       'Labels',      'creator        is good' ); | 
        
          | 545 |  | 545 |  | 
          
            
              | 546 | # With filter params ------------------ | 546 | # With filters params ------------------ | 
            
              | 547 | $layouts = get_all_layouts( filter => 'font_size = 12' ); | 547 | $layouts = get_all_layouts( { filters => { font_size => 12 } } ); | 
        
          | 548 |  | 548 |  | 
        
          | 549 | $query = ' | 549 | $query = ' | 
        
          | 550 |   SELECT count(*) | 550 |   SELECT count(*) | 
  
    | Lines 572-578
          is( $layouts->[0]->{layout_xml},    'layout_xml2', 'layout_xml     is good' );
      
      
        Link Here | 
        
          | 572 | is( $layouts->[0]->{creator},       'Labels',      'creator        is good' ); | 572 | is( $layouts->[0]->{creator},       'Labels',      'creator        is good' ); | 
        
          | 573 |  | 573 |  | 
        
          | 574 | # With orderby param ------------------ | 574 | # With orderby param ------------------ | 
          
            
              | 575 | $layouts = get_all_layouts( orderby => 'font_size DESC' ); | 575 | $layouts = get_all_layouts( { orderby => 'font_size DESC' } ); | 
        
          | 576 |  | 576 |  | 
        
          | 577 | $query = ' | 577 | $query = ' | 
        
          | 578 |   SELECT   count(*) | 578 |   SELECT   count(*) | 
  
    | Lines 695-702
          isnt( exists $profiles->[1]->{creep_vert},    0.5,            'creep_vert     is
      
      
        Link Here | 
        
          | 695 | isnt( exists $profiles->[1]->{units},         'POINT',        'units          is good' ); | 695 | isnt( exists $profiles->[1]->{units},         'POINT',        'units          is good' ); | 
        
          | 696 | isnt( exists $profiles->[1]->{creator},       'Labels',       'creator        is good' ); | 696 | isnt( exists $profiles->[1]->{creator},       'Labels',       'creator        is good' ); | 
        
          | 697 |  | 697 |  | 
          
            
              | 698 | # With filter params ------------------ | 698 | # With filters params ------------------ | 
            
              | 699 | $profiles = get_all_profiles( filters => { template_id => 1235 } ); | 699 | $profiles = get_all_profiles( { filters => { template_id => 1235 } } ); | 
        
          | 700 |  | 700 |  | 
        
          | 701 | $query = ' | 701 | $query = ' | 
        
          | 702 |   SELECT count(*) | 702 |   SELECT count(*) | 
  
    | Lines 770-776
          is( $images->[1]->{type},     $images->[1]->{name}, 'type         is good' );
      
      
        Link Here | 
        
          | 770 | } | 770 | } | 
        
          | 771 |  | 771 |  | 
        
          | 772 | # Without creator params -------------- | 772 | # Without creator params -------------- | 
          
            
              | 773 | my $batches = get_batch_summary( creator => 'Labels' ); | 773 | my $batches = get_batch_summary( { filters => { creator => 'Labels' } } ); | 
        
          | 774 |  | 774 |  | 
        
          | 775 | $query = ' | 775 | $query = ' | 
        
          | 776 |   SELECT   batch_id, count(batch_id) | 776 |   SELECT   batch_id, count(batch_id) | 
  
    | Lines 805-812
          isa_ok( $batches->[1], 'HASH', '$batches->[1] is a HASH' );
      
      
        Link Here | 
        
          | 805 | is( $batches->[1]->{batch_id},    12,     'batch_id      is good' ); | 805 | is( $batches->[1]->{batch_id},    12,     'batch_id      is good' ); | 
        
          | 806 | is( $batches->[1]->{_item_count}, $count, 'item_number   is good for this batch_id' ); | 806 | is( $batches->[1]->{_item_count}, $count, 'item_number   is good for this batch_id' ); | 
        
          | 807 |  | 807 |  | 
          
            
              | 808 | # Without filter & creator params ----- | 808 | # Without filters ----- | 
            
              | 809 | $batches = get_batch_summary( filter => "branch_code='$library1->{branchcode}'", creator => 'Labels' ); | 809 | $batches = get_batch_summary( { filters => { branch_code => $library1->{branchcode}, creator => 'Labels' } } ); | 
        
          | 810 | is( @$batches, 1, 'There is 1 batch matching' ); | 810 | is( @$batches, 1, 'There is 1 batch matching' ); | 
        
          | 811 |  | 811 |  | 
        
          | 812 | $query = ' | 812 | $query = ' | 
            
              | 813 | -  |  |  |