Commit 0a4579ba by Owo Sugiana

Modul tangkota before_save() sama dengan modul tangsel

1 parent f6ed7a0a
0.1.6 2020-07-03
----------------
- Modul tangkota: penyimpanan ke tabel pembayaran_sppt adalah netto sebagaimana
modul tangsel
- Tambah field pembayaran_sppt.discount_denda di modul tangsel
0.1.5 2020-07-01
......
from datetime import date
from ..default import Inquiry as BaseInquiry
from ..tangsel import (
Inquiry as BaseInquiry,
Reversal,
AvailableInvoice as BaseAvailableInvoice,
AvailableInvoiceTangsel as BaseAvailableInvoiceTangsel,
......@@ -70,11 +70,6 @@ class Inquiry(BaseInquiry):
break
return int(disc * self.tagihan)
def before_save(self, payment): # Override
payment.denda_sblm_diskon = self.denda_sblm_diskon
payment.discount_pokok = self.discount_pokok
self.set_faktor_pengurang_sppt(payment)
class AvailableInvoice(BaseAvailableInvoice):
def get_inquiry_class(self):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!