diff --git a/gpc.py b/gpc.py index f248f03..0683fa8 100644 --- a/gpc.py +++ b/gpc.py @@ -70,10 +70,6 @@ class Data(BaseRecord): self.date = date.strftime("%d%m%y") def to_string(self): - print(f"{int(self.record_type.value):03}") - print(f"{str(self.account)[:16].zfill(16)}") - print(f"{str(self.payer_account).rjust(16, '0')[:16]}") - print(f"{str(self.payer_account).rjust(16, '0')[:16]}") return (f"{int(self.record_type.value):03}{str(self.account)[:16].zfill(16)}{str(self.payer_account).rjust(16, '0')[:16]}" f"{str(self.no)[:13].zfill(13)}{int(self.balance):012}{self.code.value:1}{self.variable:010}"