View | Details | Raw Unified | Return to bug 14535
Collapse All | Expand All

(-)a/C4/Bookseller.pm (-2 lines)
Lines 70-77 sub GetBooksellersWithLateOrders { Link Here
70
            OR datereceived IS NULL
70
            OR datereceived IS NULL
71
            OR aqorders.quantityreceived < aqorders.quantity
71
            OR aqorders.quantityreceived < aqorders.quantity
72
            )
72
            )
73
            AND aqorders.rrp <> 0
74
            AND aqorders.ecost <> 0
75
            AND aqorders.quantity - COALESCE(aqorders.quantityreceived,0) <> 0
73
            AND aqorders.quantity - COALESCE(aqorders.quantityreceived,0) <> 0
76
            AND aqbasket.closedate IS NOT NULL
74
            AND aqbasket.closedate IS NOT NULL
77
    ";
75
    ";
(-)a/acqui/lateorders.pl (-2 / +1 lines)
Lines 134-140 push @parameters, $estimateddeliverydateto_dt Link Here
134
my %supplierlist = GetBooksellersWithLateOrders(@parameters);
134
my %supplierlist = GetBooksellersWithLateOrders(@parameters);
135
135
136
my (@sloopy);	# supplier loop
136
my (@sloopy);	# supplier loop
137
foreach (keys %supplierlist){
137
foreach( sort { $supplierlist{$a} cmp $supplierlist{$b} } keys %supplierlist ) {
138
	push @sloopy, (($booksellerid and $booksellerid eq $_ )            ?
138
	push @sloopy, (($booksellerid and $booksellerid eq $_ )            ?
139
					{id=>$_, name=>$supplierlist{$_}, selected=>1} :
139
					{id=>$_, name=>$supplierlist{$_}, selected=>1} :
140
					{id=>$_, name=>$supplierlist{$_}} )            ;
140
					{id=>$_, name=>$supplierlist{$_}} )            ;
141
- 

Return to bug 14535