Revert last commit 'e7170e4d64b708d6d1adeb88af3e650533507685'

This commit is contained in:
Bernat Brunet 2019-11-08 00:36:53 +01:00
parent e7170e4d64
commit 0629898c0b
1 changed files with 2 additions and 12 deletions

View File

@ -71,12 +71,7 @@ class _IssuedInvoiceService(object):
_logger.debug(response_)
return response_
def cancel(self, headers, invoices, mapper=None):
body = (
[mapper.build_delete_request(i) for i in invoices]
if mapper
else invoices
)
def cancel(self, headers, body, mapper=None):
_logger.debug(body)
response_ = self.service.AnulacionLRFacturasEmitidas(
headers, body)
@ -110,12 +105,7 @@ class _RecievedInvoiceService(object):
_logger.debug(response_)
return response_
def cancel(self, headers, invoices, mapper=None):
body = (
[mapper.build_delete_request(i) for i in invoices]
if mapper
else invoices
)
def cancel(self, headers, body, mapper=None):
_logger.debug(body)
response_ = self.service.AnulacionLRFacturasRecibidas(
headers, body)