Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 629097c7

Von Bernd Bleßmann vor 12 Monaten hinzugefügt

  • ID 629097c7f7eed5cfe8b7fc40bc75d3db668b4ffa
  • Vorgänger f1bf5bea
  • Nachfolger b9abf7c3

Lieferantenauftrag/-bestätigung: Angebotsfeld nicht aus verknüpften Belegen

Maske und Verknüpfte Belege.

Damit sich im Einkauf die Angebotsnummer ändern/eingeben lässt, wird
diese nicht aus den Verknüpften Angebotseingang geholt, sondern aus
dem quonumber-Feld.
Das erscheint sinnvoll, da die Angebotsnummer ja von außen kommt und
man evtl. einen Lieferantenauftrag ohne Angebotseingang erfassen mag.

Damit es nicht mit dem Feld aus der Preisanfrage durcheinander kommt,
wird quonumber beim Workflow von Preisanfrage zu Lieferantenauftrag
nicht mitgeschiffen.

Unterschiede anzeigen:

SL/DB/Order.pm
if ( $is_abbr_any->(qw(soiso pocpoc pocpo popoc)) ) {
$args{ordnumber} = undef;
}
if ( $is_abbr_any->(qw(rqpqi pqisq)) ) {
if ( $is_abbr_any->(qw(rqpqi pqisq rqpo)) ) {
$args{quonumber} = undef;
}
SL/Presenter/Record.pm
columns => [
[ $::locale->text('Order Date'), 'transdate' ],
[ $::locale->text('Order Number'), sub { $_[0]->presenter->purchase_order(display => 'table-cell') } ],
[ $::locale->text('Purchase Quotation Intake'), sub { my $order = $_[0]; join ', ', map { $_->quonumber } @{$order->preceding_purchase_quotation_intakes()} } ],
[ $::locale->text('Purchase Quotation Intake'), 'quonumber' ],
[ $::locale->text('Request for Quotation'), sub { my $order = $_[0]; join ', ', map { $_->quonumber } @{$order->preceding_request_quotations()} } ],
[ $::locale->text('Vendor'), 'vendor' ],
[ $::locale->text('Net amount'), 'netamount' ],
......
[ $::locale->text('Confirmation Date'), 'transdate' ],
[ $::locale->text('Confirmation Number'), sub { $_[0]->presenter->purchase_order_confirmation(display => 'table-cell') } ],
[ $::locale->text('Purchase Order'), sub { my $order = $_[0]; join ', ', map { $_->ordnumber } @{$order->preceding_purchase_orders()} } ],
[ $::locale->text('Purchase Quotation Intake'), sub { my $order = $_[0]; join ', ', map { $_->quonumber } @{$order->preceding_purchase_quotation_intakes()} } ],
[ $::locale->text('Purchase Quotation Intake'), 'quonumber' ],
[ $::locale->text('Vendor'), 'vendor' ],
[ $::locale->text('Net amount'), 'netamount' ],
[ $::locale->text('Transaction description'), 'transaction_description' ],
templates/design40_webpages/order/tabs/basic_data.html
</tr>
[% END %]
[% IF !(SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") %]
[% IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "sales_quotation" || SELF.type == "purchase_quotation_intake") %]
[% SET quo_nr_txt = 'Quotation Number' %]
[% ELSE %]
[% IF (SELF.type == "request_quotation") %]
[% SET quo_nr_txt = 'RFQ Number' %]
[% ELSE %]
[% SET quo_nr_txt = 'Quotation Number' %]
[% END %]
<tr>
<th>[% quo_nr_txt | $T8 %]</th>
<td>
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") -%]
[% L.input_tag('order.quonumber', SELF.order.quonumber, class='wi-normal') %]
[%- ELSIF INSTANCE_CONF.get_sales_purchase_record_numbers_changeable %]
[% L.input_tag('order.quonumber', SELF.order.quonumber, onchange='kivi.Order.set_number_in_title(this)', class='wi-normal') %]
......
[%- END %]
</td>
</tr>
[% END %]
[% IF (SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") %]
<tr>
<th>[% 'Quotation Number' | $T8 %]</th>
[%-
numbers = [];
FOREACH p = SELF.order.preceding_purchase_quotation_intakes();
numbers.push(HTML.escape(p.quonumber));
END;
%]
<td><span class="data wi-normal">[% numbers.join(', ') %]</span></td>
</tr>
[% END %]
[% IF (SELF.type == "purchase_quotation_intake" || SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") %]
<tr>
<th>[% 'RFQ Number' | $T8 %]</th>
templates/webpages/order/tabs/basic_data.html
</tr>
[% END %]
[% IF !(SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") %]
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "sales_quotation" || SELF.type == "purchase_quotation_intake") -%]
[%- SET quo_nr_txt = 'Quotation Number' -%]
[%- ELSE -%]
[%- IF (SELF.type == "request_quotation") -%]
[%- SET quo_nr_txt = 'RFQ Number' -%]
[%- ELSE -%]
[%- SET quo_nr_txt = 'Quotation Number' -%]
[%- END -%]
<tr>
<th width="70%" align="right" nowrap>[% quo_nr_txt | $T8 %]</th>
<td>
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
[%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") -%]
[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11) %]
[%- ELSIF INSTANCE_CONF.get_sales_purchase_record_numbers_changeable %]
[% L.input_tag('order.quonumber', SELF.order.quonumber, size = 11, onchange='kivi.Order.set_number_in_title(this)') %]
......
[%- END %]
</td>
</tr>
[%- END %]
[% IF (SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") %]
<tr>
<th width="70%" align="right" nowrap>[% 'Quotation Number' | $T8 %]</th>
[%-
numbers = [];
FOREACH p = SELF.order.preceding_purchase_quotation_intakes();
numbers.push(HTML.escape(p.quonumber));
END;
%]
<td>[% numbers.join(', ') %]</td>
</tr>
[%- END %]
[% IF (SELF.type == "purchase_quotation_intake" || SELF.type == "purchase_order" || SELF.type == "purchase_order_confirmation") %]
<tr>

Auch abrufbar als: Unified diff