From b95c3134a8a38ba430f7d70173f91e055b4fa30e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 9 Jul 2013 11:52:31 +0200 Subject: [PATCH] Bug 10556: The delivery time is not inserted on adding a supplier. Test plan: Add/edit a supplier and check that the delivery time is set in DB. Note: This patch cleans the code (sql query) in order to see easily if a problem occurred. Signed-off-by: Paola Rossi Signed-off-by: Kyle M Hall Signed-off-by: Galen Charlton --- C4/Bookseller.pm | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/C4/Bookseller.pm b/C4/Bookseller.pm index c8389a3441..2471380c9f 100644 --- a/C4/Bookseller.pm +++ b/C4/Bookseller.pm @@ -175,32 +175,31 @@ sub AddBookseller { my $query = q| INSERT INTO aqbooksellers ( - name, address1, address2, address3, address4, - postal, phone, accountnumber, fax, url, - contact, - contpos, contphone, contfax, contaltphone, contemail, - contnotes, active, listprice, invoiceprice, gstreg, - listincgst,invoiceincgst, gstrate, discount, - notes + name, address1, address2, address3, address4, + postal, phone, accountnumber,fax, url, + contact, contpos, contphone, contfax, contaltphone, + contemail, contnotes, active, listprice, invoiceprice, + gstreg, listincgst, invoiceincgst,gstrate, discount, + notes, deliverytime ) - VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) | + VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) | ; my $sth = $dbh->prepare($query); $sth->execute( - $data->{'name'}, $data->{'address1'}, - $data->{'address2'}, $data->{'address3'}, - $data->{'address4'}, $data->{'postal'}, - $data->{'phone'}, $data->{'accountnumber'}, - $data->{'fax'}, - $data->{'url'}, $data->{'contact'}, - $data->{'contpos'}, $data->{'contphone'}, - $data->{'contfax'}, $data->{'contaltphone'}, - $data->{'contemail'}, $data->{'contnotes'}, - $data->{'active'}, $data->{'listprice'}, - $data->{'invoiceprice'}, $data->{'gstreg'}, - $data->{'listincgst'}, $data->{'invoiceincgst'}, - $data->{'gstrate'}, - $data->{'discount'}, $data->{'notes'} + $data->{name} ,$data->{address1}, + $data->{address2} ,$data->{address3}, + $data->{address4} ,$data->{postal}, + $data->{phone} ,$data->{accountnumber}, + $data->{fax}, + $data->{url} ,$data->{contact}, + $data->{contpos} ,$data->{contphone}, + $data->{contfax} ,$data->{contaltphone}, + $data->{contemail} ,$data->{contnotes}, + $data->{active} ,$data->{listprice}, + $data->{invoiceprice} ,$data->{gstreg}, + $data->{listincgst} ,$data->{invoiceincgst}, + $data->{gstrate} ,$data->{discount}, + $data->{notes} ,$data->{deliverytime}, ); # return the id of this new supplier -- 2.39.5