From c4e29e47faacbb9b4877a55e275d06b17e684418 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Sun, 3 Oct 2021 22:21:01 -0500 Subject: [PATCH] Update inventory in cancel invoice --- source/app/models/main.py | 1 + source/app/settings.py | 1 + 2 files changed, 2 insertions(+) diff --git a/source/app/models/main.py b/source/app/models/main.py index 0caabbf..bae0a25 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -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() diff --git a/source/app/settings.py b/source/app/settings.py index 0f707b8..3205459 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -236,6 +236,7 @@ RFCS = { 'CVD110412TF6': 'finkok', 'SCD110105654': 'comercio', 'AAA010101AAA': 'comercio', + 'SPR190613I52': 'comercio', } URL = {