Revision 160fa214
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/is.pl | ||
---|---|---|
461 | 461 |
$TMPL_VAR{dateformat} = $myconfig{dateformat}; |
462 | 462 |
$TMPL_VAR{numberformat} = $myconfig{numberformat}; |
463 | 463 |
|
464 |
push @custom_hiddens, map { "shiptocvar_" . $_->name } @{ SL::DB::Manager::CustomVariableConfig->get_all(where => [ module => 'ShipTo' ]) }; |
|
465 |
|
|
466 | 464 |
# hiddens |
467 | 465 |
$TMPL_VAR{HIDDENS} = [qw( |
468 | 466 |
id type media format queued printed emailed title vc discount |
469 | 467 |
title creditlimit creditremaining tradediscount business closedto locked shipped storno storno_id |
470 | 468 |
max_dunning_level dunning_amount dunning_description |
471 |
shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptogln shiptocontact shiptophone shiptofax |
|
472 |
shiptoemail shiptodepartment_1 shiptodepartment_2 shiptocp_gender message email subject cc bcc taxaccounts cursor_fokus |
|
469 |
message email subject cc bcc taxaccounts cursor_fokus |
|
473 | 470 |
convert_from_do_ids convert_from_oe_ids convert_from_ar_ids useasnew |
474 | 471 |
invoice_id |
475 | 472 |
show_details |
... | ... | |
611 | 608 |
? ($form->current_date(\%myconfig) eq $form->{gldate}) |
612 | 609 |
: ($::instance_conf->get_is_changeable == 1), |
613 | 610 |
today => DateTime->today, |
611 |
vc_obj => $form->{customer_id} ? SL::DB::Customer->load_cached($form->{customer_id}) : undef, |
|
614 | 612 |
}); |
615 | 613 |
##print $form->parse_html_template('is/_payments'); # parser |
616 | 614 |
##print $form->parse_html_template('webdav/_list'); # parser |
templates/webpages/is/form_footer.html | ||
---|---|---|
155 | 155 |
[% P.hidden_tag('draft_description', draft_description) %] |
156 | 156 |
<input type="hidden" name="customer_discount" value="[% customer_discount %]"> |
157 | 157 |
<input type="hidden" name="gldate" value="[% gldate %]"> |
158 |
|
|
159 |
<div id="shipto_inputs" class="hidden"> |
|
160 |
[%- PROCESS 'common/_ship_to_dialog.html' %] |
|
161 |
</div> |
|
158 | 162 |
</form> |
159 | 163 |
<script type='text/javascript'> |
160 | 164 |
$(kivi.SalesPurchase.init_on_submit_checks); |
161 | 165 |
</script> |
166 |
|
|
167 |
<div id="shipto_dialog" class="hidden"></div> |
templates/webpages/is/form_header.html | ||
---|---|---|
68 | 68 |
</td> |
69 | 69 |
</tr> |
70 | 70 |
[%- END %] |
71 |
[%- IF ALL_SHIPTO.size %] |
|
72 | 71 |
<tr> |
73 | 72 |
<th align="right">[% 'Shipping Address' | $T8 %]</th> |
74 | 73 |
<td> |
74 |
[%- IF ALL_SHIPTO.size %] |
|
75 | 75 |
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ; |
76 | 76 |
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %] |
77 |
<input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]"> |
|
77 |
[%- END %] |
|
78 |
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto")) %] |
|
78 | 79 |
</td> |
79 | 80 |
</tr> |
80 |
[%- END %] |
|
81 | 81 |
<tr> |
82 | 82 |
<td align="right">[% 'Credit Limit' | $T8 %]</td> |
83 | 83 |
<td> |
Auch abrufbar als: Unified diff
ActionBar: Verkaufsrechnungen: Lieferadresse via Popup bearbeiten