Revision 96f5fcdb
Von Tamino Steinert vor 3 Monaten hinzugefügt
| SL/Controller/POS.pm | ||
|---|---|---|
|
) ]
|
||
|
);
|
||
|
|
||
|
# add a new point of sales order
|
||
|
# add a new point of sale order
|
||
|
# it's a sales order with a diffrent form
|
||
|
sub action_add {
|
||
|
my ($self) = @_;
|
||
| ... | ... | |
|
|
||
|
$self->render(
|
||
|
'pos/form',
|
||
|
title => t8('Point of Sales'),
|
||
|
title => t8('Point Of Sale'),
|
||
|
%{$self->{template_args}}
|
||
|
);
|
||
|
}
|
||
| ... | ... | |
|
$self->render(
|
||
|
'pos/_edit_order_item_row_dialog', { layout => 0 },
|
||
|
popup_dialog => 1,
|
||
|
popup_js_delete_row_function => "kivi.POS.delete_order_item_row_point_of_sales('$temp_item_id')",
|
||
|
popup_js_delete_row_function => "kivi.POS.delete_order_item_row_point_of_sale('$temp_item_id')",
|
||
|
popup_js_close_function => '$("#edit_order_item_row_dialog").dialog("close")',
|
||
|
popup_js_assign_function => "kivi.POS.assign_edit_order_item_row_point_of_sales('$temp_item_id')",
|
||
|
popup_js_assign_function => "kivi.POS.assign_edit_order_item_row_point_of_sale('$temp_item_id')",
|
||
|
ITEM => $item
|
||
|
);
|
||
|
}
|
||
| js/kivi.POS.js | ||
|---|---|---|
|
return true;
|
||
|
};
|
||
|
|
||
|
ns.delete_order_item_row_point_of_sales = function(item_id) {
|
||
|
ns.delete_order_item_row_point_of_sale = function(item_id) {
|
||
|
var row = $('#item_' + item_id).parents("tbody").first();
|
||
|
$(row).remove();
|
||
|
|
||
| ... | ... | |
|
};
|
||
|
|
||
|
|
||
|
ns.edit_order_item_row_point_of_sales = function(item_id) {
|
||
|
ns.edit_order_item_row_point_of_sale = function(item_id) {
|
||
|
|
||
|
var data = $('#order_form').serializeArray();
|
||
|
data.push({ name: 'item_id', value: item_id });
|
||
| ... | ... | |
|
});
|
||
|
};
|
||
|
|
||
|
ns.assign_edit_order_item_row_point_of_sales = function(item_id) {
|
||
|
ns.assign_edit_order_item_row_point_of_sale = function(item_id) {
|
||
|
var row = $('#item_' + item_id).parents("tbody").first();
|
||
|
|
||
|
var discount = $('#item_discount_as_percent').val();
|
||
| templates/design40_webpages/pos/tabs/_row.html | ||
|---|---|---|
|
[% L.div_tag(LxERP.format_amount(ITEM.linetotal, 2, 0), name="linetotal", class="numeric") %]
|
||
|
</td>
|
||
|
<td>
|
||
|
[% L.button_tag('kivi.POS.edit_order_item_row_point_of_sales("' _ ID _ '")', LxERP.t8('Edit')) %]
|
||
|
[% L.button_tag('kivi.POS.edit_order_item_row_point_of_sale("' _ ID _ '")', LxERP.t8('Edit')) %]
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
Auch abrufbar als: Unified diff
POS: typos