Cantidad a decimal al ajustar inventario
This commit is contained in:
parent
28ef107949
commit
81428c4f8e
|
@ -682,9 +682,7 @@ def _cancel_with_cert(invoice, auth, certificado):
|
|||
|
||||
|
||||
def cancel_xml_sign(invoice, auth, certificado):
|
||||
# ~ if auth['pac'] == 'finkok':
|
||||
# ~ return _cancel_finkok(invoice, auth, certificado)
|
||||
return _cancel_with_cert(invoice, auth, certificado)
|
||||
# ~ return _cancel_with_cert(invoice, auth, certificado)
|
||||
|
||||
cert = SATCertificate(certificado.cer, certificado.key_enc.encode())
|
||||
pac = PACS[auth['pac']]()
|
||||
|
|
|
@ -4090,7 +4090,7 @@ class WareHouseProduct(BaseModel):
|
|||
|
||||
@classmethod
|
||||
def _adjust_stock(cls, args, user):
|
||||
cant = args['cant']
|
||||
cant = Decimal(args['cant'])
|
||||
fields = dict(
|
||||
warehouse = args['storage'],
|
||||
product = args['id_product'],
|
||||
|
|
Loading…
Reference in New Issue