Adding bookseller notes management.
Merely a template change + and adding notes fields to Updatesupplier.
This commit is contained in:
parent
3a989b296b
commit
34dcf18bec
|
|
@ -1115,17 +1115,17 @@ sub updatesup {
|
|||
contemail=?,contnotes=?,active=?,
|
||||
listprice=?, invoiceprice=?,gstreg=?, listincgst=?,
|
||||
invoiceincgst=?, specialty=?,discount=?,invoicedisc=?,
|
||||
nocalc=?
|
||||
nocalc=?, notes=?
|
||||
where id=?");
|
||||
$sth->execute($data->{'name'},$data->{'address1'},$data->{'address2'},
|
||||
$data->{'address3'},$data->{'address4'},$data->{'postal'},$data->{'phone'},
|
||||
$data->{'fax'},$data->{'url'},$data->{'contact'},$data->{'contpos'},
|
||||
$data->{'contphone'},$data->{'contfax'},$data->{'contaltphone'},
|
||||
$data->{'contemail'},
|
||||
$data->{'contnote'},$data->{'active'},$data->{'listprice'},
|
||||
$data->{'contnotes'},$data->{'active'},$data->{'listprice'},
|
||||
$data->{'invoiceprice'},$data->{'gstreg'},$data->{'listincgst'},
|
||||
$data->{'invoiceincgst'},$data->{'specialty'},$data->{'discount'},
|
||||
$data->{'invoicedisc'},$data->{'nocalc'},$data->{'id'});
|
||||
$data->{'invoicedisc'},$data->{'nocalc'},$data->{'notes'},$data->{'id'});
|
||||
$sth->finish;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ if ($op eq "display"){
|
|||
contfax => $booksellers[0]->{'contfax'},
|
||||
contemail => $booksellers[0]->{'contemail'},
|
||||
contnotes => $booksellers[0]->{'contnotes'},
|
||||
notes => $booksellers[0]->{'notes'},
|
||||
active => $booksellers[0]->{'active'},
|
||||
specialty => $booksellers[0]->{'specialty'},
|
||||
gstreg => $booksellers[0]->{'gstreg'},
|
||||
|
|
@ -109,6 +110,7 @@ if ($op eq "display"){
|
|||
contaltphone => $booksellers[0]->{'contaltphone'},
|
||||
contfax => $booksellers[0]->{'contfax'},
|
||||
contemail => $booksellers[0]->{'contemail'},
|
||||
notes => $booksellers[0]->{'notes'},
|
||||
contnotes => $booksellers[0]->{'contnotes'},
|
||||
active => $booksellers[0]->{'active'},
|
||||
specialty => $booksellers[0]->{'specialty'},
|
||||
|
|
|
|||
|
|
@ -52,7 +52,9 @@ $data{'contphone'}=$input->param('contact_phone');
|
|||
$data{'contaltphone'}=$input->param('contact_phone_2');
|
||||
$data{'contfax'}=$input->param('contact_fax');
|
||||
$data{'contemail'}=$input->param('company_email');
|
||||
$data{'contnotes'}=$input->param('notes');
|
||||
$data{'contnotes'}=$input->param('contact_notes');
|
||||
warn "".$data{'contnotes'};
|
||||
$data{'notes'}=$input->param('notes');
|
||||
$data{'active'}=$input->param('status');
|
||||
$data{'specialty'}=$input->param('publishers_imprints');
|
||||
$data{'listprice'}=$input->param('list_currency');
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<label>Notes</label>
|
||||
<textarea name="notes" cols="40" rows="4"><!-- TMPL_VAR NAME="contnotes" --></textarea>
|
||||
<textarea name="contact_notes" cols="40" rows="4"><!-- TMPL_VAR NAME="contnotes" --></textarea>
|
||||
</p>
|
||||
</div>
|
||||
<div id="bloc25">
|
||||
|
|
@ -120,6 +120,10 @@
|
|||
<label class="label100">Discount</label>
|
||||
<input type="text" size="3" name="discount" value="<!-- TMPL_VAR NAME="discount" -->"> %
|
||||
</p>
|
||||
<p>
|
||||
<label class="label100">Notes</label>
|
||||
<textarea cols="40" rows="4" name="notes" ><!-- TMPL_VAR NAME="notes" --></textarea>
|
||||
</p>
|
||||
<br/>
|
||||
<br/><input type="image" name="submit" src="/<!-- TMPL_VAR NAME="theme" -->/images/filesave.png" border="0" title="save" alt="save" class="button acquisition">
|
||||
</form>
|
||||
|
|
@ -231,6 +235,10 @@
|
|||
<label class="label100">Discount</label>
|
||||
<!-- TMPL_VAR NAME="discount" --> %
|
||||
</p>
|
||||
<p>
|
||||
<label class="label100">Notes</label>
|
||||
<!-- TMPL_VAR NAME="notes" -->
|
||||
</p>
|
||||
<br/>
|
||||
<br/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue