X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fis.pl;h=d2f27c92594d9ff42aef76c37ed41543ccdad028;hb=4077825982a622b654888a20121c845d0e15c9c3;hp=ad90daf7cf76d55d95891b5139b74cbf7888b99c;hpb=ea43d77bdaf75a43472261a971b29e732a410321;p=kivitendo-erp.git
diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl
index ad90daf7c..d2f27c925 100644
--- a/bin/mozilla/is.pl
+++ b/bin/mozilla/is.pl
@@ -240,8 +240,6 @@ sub prepare_invoice {
if ($form->{id}) {
- map { $form->{$_} =~ s/\"/"/g }
- qw(invnumber ordnumber quonumber shippingpoint shipvia notes intnotes);
# # get pricegroups for parts
# IS->get_pricegroups_for_parts(\%myconfig, \%$form);
@@ -268,8 +266,6 @@ sub prepare_invoice {
$form->{"qty_$i"} =
$form->format_amount(\%myconfig, $form->{"qty_$i"}, $dec_qty);
- map { $form->{"${_}_$i"} =~ s/\"/"/g }
- qw(partnumber description unit partnotes);
$form->{rowcount} = $i;
}
@@ -533,7 +529,7 @@ sub form_header {
if ($form->{type} eq "credit_note") {
$button1 = qq|
- |;
#write Trigger
@@ -544,17 +540,17 @@ sub form_header {
} else {
$button1 = qq|
-
|;
$button2 = qq|
-
|;
$button3 = qq|
-
|;
@@ -659,10 +655,13 @@ sub form_header {
| . $locale->text('Shipping Point') . qq|
| .
$cgi->textfield("-name" => "shippingpoint", "-size" => 35, "-value" => $form->{shippingpoint}) .
- qq|
+ qq|
+
| . $locale->text('Ship via') . qq|
-
+ | .
+ $cgi->textfield("-name" => "shipvia", "-size" => 35, "-value" => $form->{shipvia}) .
+ qq|
| . $locale->text('Transaction description') . qq|
@@ -695,10 +694,14 @@ print qq|
$employees
$salesman
|;
+
+#ergänzung in der maske um das feld Lieferscheinnummer (Delivery Order Number), meiner meinung nach sinnvoll ueber dem feld lieferscheindatum 12.02.2009 jb
if ($form->{type} eq "credit_note") {
print qq|
| . $locale->text('Credit Note Number') . qq|
-
+ |.
+ $cgi->textfield("-name" => "invnumber", "-size" => 11, "-value" => $form->{invnumber}) .
+ qq|
| . $locale->text('Credit Note Date') . qq|
@@ -707,7 +710,9 @@ print qq|
} else {
print qq|
| . $locale->text('Invoice Number') . qq|
-
+ |.
+ $cgi->textfield("-name" => "invnumber", "-size" => 11, "-value" => $form->{invnumber}) .
+ qq|
| . $locale->text('Invoice Date') . qq|
@@ -717,6 +722,12 @@ print qq|
| . $locale->text('Due Date') . qq|
$button2
+
+ | . $locale->text('Delivery Order Number') . qq|
+ |.
+ $cgi->textfield("-name" => "donumber", "-size" => 11, "-value" => $form->{donumber}) .
+ qq|
+
| . $locale->text('Delivery Date') . qq|
$button3
@@ -724,7 +735,9 @@ print qq|
}
print qq|
| . $locale->text('Order Number') . qq|
-
+ |.
+ $cgi->textfield("-name" => "ordnumber", "-size" => 11, "-value" => $form->{ordnumber}) .
+ qq|
| . $locale->text('Order Date') . qq|
@@ -733,7 +746,9 @@ print qq|
| . $locale->text('Quotation Number') . qq|
-
+ |.
+ $cgi->textfield("-name" => "quonumber", "-size" => 11, "-value" => $form->{quonumber}) .
+ qq|
| . $locale->text('Quotation Date') . qq|
@@ -742,7 +757,9 @@ print qq|
| . $locale->text('Customer Order Number') . qq|
-
+ |.
+ $cgi->textfield("-name" => "cusordnumber", "-size" => 11, "-value" => $form->{cusordnumber}) .
+ qq|
| . $locale->text('Project Number') . qq|
@@ -894,7 +911,7 @@ sub form_footer {
$notes
$intnotes
- $payment
+ $payment
$follow_ups_block
@@ -1096,7 +1113,7 @@ if ($form->{type} eq "credit_note") {
$closedto = $form->datetonum($form->{closedto}, \%myconfig);
if ($form->{id}) {
- my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ar");
+ my $show_storno = !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ar") && (($totalpaid == 0) || ($totalpaid eq ""));
print qq|
hidden("-name" => "callback", "-value" => $form->{callback})
. $cgi->hidden('-name' => 'draft_id', '-default' => [$form->{draft_id}])
. $cgi->hidden('-name' => 'draft_description', '-default' => [$form->{draft_description}])
+. $cgi->hidden('-name' => 'customer_discount', '-value' => [$form->{customer_discount}])
. qq|
@@ -1250,7 +1268,7 @@ sub update {
$rows = scalar @{ $form->{item_list} };
- $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{discount} * 100);
+ $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{customer_discount} * 100);
if ($rows) {
$form->{"qty_$i"} = ($form->{"qty_$i"} * 1) ? $form->{"qty_$i"} : 1;