# connect to database
my $dbh = $form->dbconnect($myconfig);
- my $query = qq|SELECT id, description, discount, customernumberinit, salesman
+ my $query = qq|SELECT id, description, discount, customernumberinit
FROM business
ORDER BY 2|;
my $dbh = $form->dbconnect($myconfig);
my $query =
- qq|SELECT b.description, b.discount, b.customernumberinit, b.salesman
+ qq|SELECT b.description, b.discount, b.customernumberinit
FROM business b
WHERE b.id = ?|;
my $sth = $dbh->prepare($query);
my $dbh = $form->dbconnect($myconfig);
my @values = ($form->{description}, $form->{discount},
- $form->{customernumberinit}, $form->{salesman} ? 't' : 'f');
+ $form->{customernumberinit});
# id is the old record
if ($form->{id}) {
$query = qq|UPDATE business SET
description = ?,
discount = ?,
- customernumberinit = ?,
- salesman = ?
+ customernumberinit = ?
WHERE id = ?|;
push(@values, $form->{id});
} else {
$query = qq|INSERT INTO business
- (description, discount, customernumberinit, salesman)
- VALUES (?, ?, ?, ?)|;
+ (description, discount, customernumberinit)
+ VALUES (?, ?, ?)|;
}
do_query($form, $dbh, $query, @values);
$discount =
$form->format_amount(\%myconfig, $ref->{discount} * 100);
$description =
- ($ref->{salesman})
- ? "<b>$ref->{description}</b>"
- : "$ref->{description}";
+ $ref->{description};
$column_data{description} =
qq|<td><a href=$form->{script}?action=edit_business&id=$ref->{id}&path=$form->{path}&login=$form->{login}&password=$form->{password}&callback=$callback>$description</td>|;
$column_data{discount} = qq|<td align=right>$discount</td>|;
$lxdebug->enter_sub();
$form->{title} = $locale->text("$form->{title} Business");
- $form->{salesman} = "checked" if $form->{salesman};
# $locale->text('Add Business')
# $locale->text('Edit Business')
<th align=right>| . $locale->text('Customernumberinit') . qq|</th>
<td><input name=customernumberinit size=10 value=$form->{customernumberinit}></td>
</tr>
- <tr>
- <td align=right>| . $locale->text('Salesman') . qq|</td>
- <td><input name=salesman class=checkbox type=checkbox value=1 $form->{salesman}></td>
- </tr>
<td colspan=2><hr size=3 noshade></td>
</tr>
</table>
'SAVED' => 'Gespeichert',
'SAVED FOR DUNNING' => 'Gespeichert',
'SCREENED' => 'Angezeigt',
- 'Salesman' => 'Verkäufer/in',
'Save' => 'Speichern',
'Screen' => 'Bildschirm',
'Select a Customer' => 'Endkunde auswählen',
'Credit Limit' => 'Kreditlimit',
'Customer Number' => 'Kundennummer',
'Customer deleted!' => 'Kunde gelöscht!',
- 'Customer not on file or locked!' => 'Dieser Kunde existiert nicht oder ist gesperrt.',
'Customer saved!' => 'Kunde gespeichert!',
'Customers' => 'Kunden',
'DELETED' => 'Gelöscht',
'Select a part' => 'Artikel auswählen',
'Select a project' => 'Projekt auswählen',
'Select an employee' => 'Angestellten auswählen',
- 'Select from one of the names below' => 'Wählen Sie einen der untenstehenden Namen',
'Shipping Address' => 'Lieferadresse',
'Steuersatz' => 'Steuersatz',
'Street' => 'Straße',
'Variable' => 'Variable',
'Vendor Number' => 'Lieferantennummer',
'Vendor deleted!' => 'Lieferant gelöscht!',
- 'Vendor not on file or locked!' => 'Dieser Lieferant existiert nicht oder ist gesperrt.',
'Vendor saved!' => 'Lieferant gespeichert!',
'Vendors' => 'Lieferanten',
'Zipcode' => 'PLZ',
'add_transaction' => 'add_transaction',
'build_std_url' => 'build_std_url',
'calculate_qty' => 'calculate_qty',
- 'check_salesman' => 'check_salesman',
'continue' => 'continue',
'delete' => 'delete',
'delivery_customer_selection' => 'delivery_customer_selection',
'project_selection_internal' => 'project_selection_internal',
'reformat_numbers' => 'reformat_numbers',
'restore_form' => 'restore_form',
- 'salesman_selected' => 'salesman_selected',
'save' => 'save',
'save_and_ap_transaction' => 'save_and_ap_transaction',
'save_and_ar_transaction' => 'save_and_ar_transaction',
'select_employee_internal' => 'select_employee_internal',
'select_part' => 'select_part',
'select_part_internal' => 'select_part_internal',
- 'select_salesman' => 'select_salesman',
'set_longdescription' => 'set_longdescription',
'show_history' => 'show_history',
'update' => 'update',