Update inventory in cancel invoice
This commit is contained in:
parent
00cbe4d557
commit
c4e29e47fa
|
@ -5890,6 +5890,7 @@ class Facturas(BaseModel):
|
|||
cant = Decimal(p.cantidad)
|
||||
if cancel:
|
||||
cant *= -1
|
||||
warehouse = p.warehouse
|
||||
p.producto.existencia -= cant
|
||||
p.producto.save()
|
||||
|
||||
|
|
|
@ -236,6 +236,7 @@ RFCS = {
|
|||
'CVD110412TF6': 'finkok',
|
||||
'SCD110105654': 'comercio',
|
||||
'AAA010101AAA': 'comercio',
|
||||
'SPR190613I52': 'comercio',
|
||||
}
|
||||
|
||||
URL = {
|
||||
|
|
Loading…
Reference in New Issue