Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e9e4fb82

Von Tamino Steinert vor 1 Tag hinzugefügt

  • ID e9e4fb829e5623b73973d073a583c43013e50ae5
  • Vorgänger 6d9402c5
  • Nachfolger 12d1af89

POS: Nachlass gewähren hinzugefügt

Unterschiede anzeigen:

SL/Controller/POS.pm
40 40
  );
41 41
}
42 42

  
43
sub action_edit_order_item_row_point_of_sales_dialog {
43
sub action_edit_order_item_row_dialog {
44 44
  my ($self) = @_;
45 45

  
46 46
  my $item;
......
54 54
  die "cound not find item with item with id $temp_item_id" unless $item;
55 55

  
56 56
  $self->render(
57
    'pos/_edit_order_item_row_point_of_sales_dialog', { layout => 0 },
57
    'pos/_edit_order_item_row_dialog', { layout => 0 },
58 58
    popup_dialog                 => 1,
59 59
    popup_js_delete_row_function => "kivi.POS.delete_order_item_row_point_of_sales('$temp_item_id')",
60
    popup_js_close_function      => '$("#edit_order_item_row_point_of_sales_dialog").dialog("close")',
60
    popup_js_close_function      => '$("#edit_order_item_row_dialog").dialog("close")',
61 61
    popup_js_assign_function     => "kivi.POS.assign_edit_order_item_row_point_of_sales('$temp_item_id')",
62 62
    ITEM                         => $item
63 63
  );
64 64
}
65 65

  
66
sub action_add_discount_item_dialog {
67
  my ($self) = @_;
68

  
69
  my $type = $::form->{discount}->{type};
70
  my $type_name;
71
  if ($type eq 'percent') {
72
    $type_name = t8('Percent');
73
  } elsif ($type eq 'absolute') {
74
    $type_name = t8('Absolute');
75
  } else {
76
    die "unknown value for discount.type '$type'";
77
  }
78

  
79
  $self->render(
80
    'pos/_add_discount_item_dialog', { layout => 0 },
81
    popup_dialog            => 1,
82
    popup_js_close_function => '$("#add_discount_item_dialog").dialog("close")',
83
    TYPE_NAME               => $type_name,
84

  
85
  );
86
}
66 87
#
67 88
# helpers
68 89
#

Auch abrufbar als: Unified diff