-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, July 08, 2009 1:34 PM
To: [email protected]; Walls, Ian
Subject: [PATCH] Vendor accountnumber field added
---
acqui/supplier.pl | 2 ++
acqui/updatesupplier.pl | 1 +
.../prog/en/modules/acqui/supplier.tmpl | 3 ++-
.../prog/en/modules/help/acqui/supplier.tmpl | 8 ++++++--
4 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/acqui/supplier.pl b/acqui/supplier.pl
index 4db98d6..35a4499 100755
--- a/acqui/supplier.pl
+++ b/acqui/supplier.pl
@@ -70,6 +70,7 @@ my ($template, $loggedinuser, $cookie)
if ($op eq "display"){
$template->param(id => $id,
name => $booksellers[0]->{'name'},
+ accountnumber => $booksellers[0]->{'accountnumber'},
postal =>$booksellers[0]->{'postal'},
address1 => $booksellers[0]->{'address1'},
address2 => $booksellers[0]->{'address2'},
@@ -121,6 +122,7 @@ if ($op eq "display"){
}
$template->param(id => $id,
name => $booksellers[0]->{'name'},
+ accountnumber => $booksellers[0]->{'accountnumber'},
postal =>$booksellers[0]->{'postal'},
address1 => $booksellers[0]->{'address1'},
address2 => $booksellers[0]->{'address2'},
diff --git a/acqui/updatesupplier.pl b/acqui/updatesupplier.pl
index b8ea15f..233d59f 100755
--- a/acqui/updatesupplier.pl
+++ b/acqui/updatesupplier.pl
@@ -58,6 +58,7 @@ my %data;
$data{'id'}=$input->param('id');
$data{'name'}=$input->param('company');
+$date{'accountnumber'}=$input->param('company_code');
$data{'postal'}=$input->param('company_postal');
my $address=$input->param('physical');
my @addresses=split('\n',$address);
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
index b801e1e..88d6cb4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tmpl
@@ -45,7 +45,8 @@ if (f.company.value == "") {
<legend>Company details</legend>
<ol><li><label for="company" class="required">Company Name *
</label>
<input type="text" size="40" id="company" name="company"
value="<!-- TMPL_VAR NAME="name" -->" /></li>
- <li><label for="company_postal">Postal Address</label>
+ <li><label for="company_code">Company Code</label><input
type="text" size="40" id="company_code" name="company_code" value="<!--
TMPL_VAR NAME="code" -->" /></li>
+ <li><label for="company_postal">Postal Address</label>
<textarea id="company_postal" name="company_postal"
cols="40" rows="3"><!-- TMPL_VAR NAME="postal" --></textarea></li>
<li><label for="physical">Physical Address</label>
<textarea id="physical" name="physical" cols="40"
rows="3"><!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!--
TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></textarea></li>
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl
b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl
index bc169d1..d29675a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/acqui/supplier.tmpl
@@ -11,8 +11,12 @@
<span style="background-color: #ffff99">
TIP: Only the 'Company Name' is required but the more contact information you
provide, the easier it will be to contact vendors when necessary</span></li>
</ul></li>
- <li>Enter additional infomration for your vendor
+ <li>Enter additional information for your vendor
<ul>
+ <li>Company Code<br/>
+ <ul>
+ <li>This is for the company's code as it
appears on invoices, since external parties may not be able to unique identify
your vendor by their name or Koha booksellerid.</li>
+ </ul></li>
<li>Active/Inactive<br/>
<ul>
<li>Orders can only be placed against Active
vendors.</li>
@@ -40,4 +44,4 @@ TIP: Some vendors will list the prices in their own currency,
but bill in your c
<li>Include any notes that you may want to
record for internal purposes.</li>
</ul></li>
</ul></li>
- </ul><!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
\ No newline at end of file
+ </ul><!-- TMPL_INCLUDE NAME="help-bottom.inc" -->
--
1.5.4.3
------------------------------------------------------------
This email message, including any attachments, is for the sole use of the
intended recipient(s) and may contain information that is proprietary,
confidential, and exempt from disclosure under applicable law. Any unauthorized
review, use, disclosure, or distribution is prohibited. If you have received
this email in error please notify the sender by return email and delete the
original message. Please note, the recipient should check this email and any
attachments for the presence of viruses. The organization accepts no liability
for any damage caused by any virus transmitted by this email.
=================================
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches