Commit aa51e060 by Owo Sugiana

Bug fixed reversal Kota Banjar

1 parent 70911dc7
...@@ -37,6 +37,19 @@ class Reversal(BaseReversal): ...@@ -37,6 +37,19 @@ class Reversal(BaseReversal):
def get_invoice_model(self): # Override def get_invoice_model(self): # Override
return Invoice return Invoice
def get_kohir_model(self): # Override
return Kohir
def get_payment_model(self): # Override
return Payment
def get_kohir(self): # Override
DBSession = get_db_session()
Kohir = self.get_kohir_model()
q = DBSession.query(Kohir).filter_by(sptpd_id=self.invoice.sptpd_id)
q = q.order_by(Kohir.id.desc())
return q.first()
class AvailableInvoice(BaseAvailableInvoice): class AvailableInvoice(BaseAvailableInvoice):
def get_inquiry_class(self): # Override def get_inquiry_class(self): # Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!