Mover solo los tickets seleccionados al facturarlos
This commit is contained in:
parent
69402e03bb
commit
fe26744a8f
|
@ -1,4 +1,4 @@
|
|||
v 1.43.0 [00-Nov-2021]
|
||||
v 1.43.0 [05-Dic-2021]
|
||||
----------------------
|
||||
- Soporte para entradas de almacen.
|
||||
- Soporte para multi almacen.
|
||||
|
@ -25,6 +25,7 @@ python main.py -bk
|
|||
python main.py -m -r RFC
|
||||
```
|
||||
|
||||
|
||||
v 1.42.1 [31-May-2021]
|
||||
----------------------
|
||||
- Error - Ticket #5
|
||||
|
|
|
@ -712,22 +712,30 @@ function grid_tickets_invoice_double_click(id, e, node){
|
|||
|
||||
|
||||
function cmd_move_tickets_right_click(){
|
||||
$$('grid_tickets_active').eachRow(
|
||||
function(row){
|
||||
this.copy(row, -1, $$('grid_tickets_invoice'))
|
||||
}
|
||||
)
|
||||
$$('grid_tickets_active').clearAll()
|
||||
var source = $$('grid_tickets_active')
|
||||
var target = $$('grid_tickets_invoice')
|
||||
_move_tickets(source, target)
|
||||
}
|
||||
|
||||
|
||||
function cmd_move_tickets_left_click(){
|
||||
$$('grid_tickets_invoice').eachRow(
|
||||
function(row){
|
||||
this.copy(row, -1, $$('grid_tickets_active'))
|
||||
}
|
||||
)
|
||||
$$('grid_tickets_invoice').clearAll()
|
||||
var target = $$('grid_tickets_active')
|
||||
var source = $$('grid_tickets_invoice')
|
||||
_move_tickets(source, target)
|
||||
}
|
||||
|
||||
|
||||
function _move_tickets(source, target){
|
||||
var rows = source.getSelectedItem()
|
||||
|
||||
if(rows == undefined){
|
||||
source.eachRow(
|
||||
function(row){
|
||||
this.copy(row, -1, target)
|
||||
}
|
||||
)
|
||||
source.clearAll()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -306,6 +306,7 @@ var grid_tickets_active = {
|
|||
view: 'datatable',
|
||||
id: 'grid_tickets_active',
|
||||
select: 'row',
|
||||
multiselect: true,
|
||||
adjust: true,
|
||||
footer: true,
|
||||
drag: true,
|
||||
|
@ -341,6 +342,7 @@ var grid_tickets_invoice = {
|
|||
view: 'datatable',
|
||||
id: 'grid_tickets_invoice',
|
||||
select: 'row',
|
||||
multiselect: true,
|
||||
adjust: true,
|
||||
footer: true,
|
||||
drag: true,
|
||||
|
|
Loading…
Reference in New Issue