Merge branch 'develop'
Fix - Precio con impuestos al facturar
This commit is contained in:
commit
8a03dba323
|
@ -2750,7 +2750,6 @@ class Productos(BaseModel):
|
||||||
.dicts()
|
.dicts()
|
||||||
)
|
)
|
||||||
if len(row):
|
if len(row):
|
||||||
print(row[0])
|
|
||||||
id = row[0]['id_product']
|
id = row[0]['id_product']
|
||||||
model_pt = Productos.impuestos.get_through_model()
|
model_pt = Productos.impuestos.get_through_model()
|
||||||
taxes = tuple(model_pt
|
taxes = tuple(model_pt
|
||||||
|
|
|
@ -1035,9 +1035,8 @@ function grid_details_before_edit_stop(state, editor){
|
||||||
grid.unblockEvent()
|
grid.unblockEvent()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cfg_invoice['with_taxes']){
|
if(cfg_invoice['with_taxes']){
|
||||||
var valor_unitario = price_without_taxes(parseFloat(state.value), row.id)
|
var valor_unitario = price_without_taxes(parseFloat(state.value), row.id_product)
|
||||||
grid.blockEvent()
|
grid.blockEvent()
|
||||||
state.value = valor_unitario
|
state.value = valor_unitario
|
||||||
grid.unblockEvent()
|
grid.unblockEvent()
|
||||||
|
|
Loading…
Reference in New Issue