# retrieve invoice
$query = qq|SELECT a.cp_id, a.invnumber, a.transdate AS invdate, a.duedate,
- a.ordnumber, a.quonumber, a.paid, a.taxincluded, a.notes, a.taxzone_id, a.storno,
+ a.ordnumber, a.quonumber, a.paid, a.taxincluded, a.notes, a.taxzone_id, a.storno, a.gldate,
a.intnotes, a.curr AS currency
FROM ap a
WHERE a.id = $form->{id}|;
# retrieve invoice
$query = qq|SELECT a.invnumber, a.ordnumber, a.quonumber, a.cusordnumber,
- a.transdate AS invdate, a.deliverydate, a.paid, a.storno,
+ a.transdate AS invdate, a.deliverydate, a.paid, a.storno, a.gldate,
a.shippingpoint, a.shipvia, a.terms, a.notes, a.intnotes, a.taxzone_id,
a.duedate, a.taxincluded, a.curr AS currency, a.shipto_id, a.cp_id,
a.employee_id, e.name AS employee, a.payment_id, a.language_id, a.delivery_customer_id, a.delivery_vendor_id, a.type
s/option>\Q$form->{$item}\E/option selected>$form->{$item}/;
}
+ $form->{radier} =
+ ($form->current_date(\%myconfig) eq $form->{gldate}) ? 1 : 0;
+
#quote selectvendor Bug 133
$form->{"selectvendor"} = $form->quote($form->{"selectvendor"});
print qq|<input class=submit type=submit name=action value="|
. $locale->text('Storno') . qq|">
| unless ($form->{storno});
-
+ if ($form->{radier}) {
+ print qq|
+ <input class=submit type=submit name=action value="|
+ . $locale->text('Delete') . qq|">
+|;
+ }
} else {
if ($invdate > $closedto) {
print qq|<input class=submit type=submit name=action value="|
}
}
+ $form->{radier} =
+ ($form->current_date(\%myconfig) eq $form->{gldate}) ? 1 : 0;
+
$payment = qq|<option value=""></option>|;
foreach $item (@{ $form->{payment_terms} }) {
if ($form->{payment_id} eq $item->{id}) {
$exchangerate .= qq|
<input type=hidden name=forex value=$form->{forex}>
|;
- print(STDERR "$form->{customer} Kunde\n");
$customer =
($form->{selectcustomer})
? qq|<select name=customer>$form->{selectcustomer}</select>\n<input type=hidden name="selectcustomer" value="$form->{selectcustomer}">|
: qq|<input name=customer value="$form->{customer}" size=35>|;
- print(STDERR "$form->{customer} Kunde\n");
#sk
$contact =
. $locale->text('Credit Note') . qq|">
|;
}
+ if ($form->{radier}) {
+ print qq|
+ <input class=submit type=submit name=action value="|
+ . $locale->text('Delete') . qq|">
+|;
+ }
if ($invdate > $closedto) {
'Date' => 'Datum',
'Dec' => 'Dez',
'December' => 'Dezember',
+ 'Delete' => 'Löschen',
'Delivery Date' => 'Lieferdatum',
'Department' => 'Abteilung',
'Description' => 'Beschreibung',
'vendor_invoice' => 'vendor_invoice',
'yes' => 'yes',
'weiter' => 'continue',
+ 'löschen' => 'delete',
'buchen' => 'post',
'zahlung_buchen' => 'post_payment',
'storno' => 'storno',
'Date' => 'Datum',
'Dec' => 'Dez',
'December' => 'Dezember',
+ 'Delete' => 'Löschen',
'Delivery Date' => 'Lieferdatum',
'Department' => 'Abteilung',
'Description' => 'Beschreibung',
'yes' => 'yes',
'weiter' => 'continue',
'gutschrift' => 'credit_note',
+ 'löschen' => 'delete',
'email' => 'e_mail',
'auftrag' => 'order',
'buchen' => 'post',