forked from elmau/empresa-libre
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):
|
def cancel_xml_sign(invoice, auth, certificado):
|
||||||
# ~ if auth['pac'] == 'finkok':
|
# ~ return _cancel_with_cert(invoice, auth, certificado)
|
||||||
# ~ return _cancel_finkok(invoice, auth, certificado)
|
|
||||||
return _cancel_with_cert(invoice, auth, certificado)
|
|
||||||
|
|
||||||
cert = SATCertificate(certificado.cer, certificado.key_enc.encode())
|
cert = SATCertificate(certificado.cer, certificado.key_enc.encode())
|
||||||
pac = PACS[auth['pac']]()
|
pac = PACS[auth['pac']]()
|
||||||
|
|
|
@ -4090,7 +4090,7 @@ class WareHouseProduct(BaseModel):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _adjust_stock(cls, args, user):
|
def _adjust_stock(cls, args, user):
|
||||||
cant = args['cant']
|
cant = Decimal(args['cant'])
|
||||||
fields = dict(
|
fields = dict(
|
||||||
warehouse = args['storage'],
|
warehouse = args['storage'],
|
||||||
product = args['id_product'],
|
product = args['id_product'],
|
||||||
|
|
Loading…
Reference in New Issue