edits
This commit is contained in:
parent
9c9340b6f0
commit
8d1e3805e3
5
gpc.py
5
gpc.py
@ -70,6 +70,11 @@ class Data(BaseRecord):
|
|||||||
self.date = date.strftime("%d%m%y")
|
self.date = date.strftime("%d%m%y")
|
||||||
|
|
||||||
def to_string(self):
|
def to_string(self):
|
||||||
|
print(f"{self.record_type.value:03}{str(self.account)[:16].zfill(16)}{str(self.payer_account).rjust(16, '0')[:16]}")
|
||||||
|
print(f"{str(self.no)[:13].zfill(13)}{int(self.balance):012}{self.code.value:1}{self.variable:010}")
|
||||||
|
print(f"{self.constant_symbol:010}{self.specific_symbol:010}")
|
||||||
|
print(f"{'0'*6}{str(self.client_name)[:20].ljust(20)}{'0'}{self.currency}{self.date}\r\n")
|
||||||
|
|
||||||
return (f"{self.record_type.value:03}{str(self.account)[:16].zfill(16)}{str(self.payer_account).rjust(16, '0')[:16]}"
|
return (f"{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}"
|
f"{str(self.no)[:13].zfill(13)}{int(self.balance):012}{self.code.value:1}{self.variable:010}"
|
||||||
f"{self.constant_symbol:010}{self.specific_symbol:010}"
|
f"{self.constant_symbol:010}{self.specific_symbol:010}"
|
||||||
|
Loading…
Reference in New Issue
Block a user