Add CORE-specific datetime for equity payments

in case payments are added to CORE on a later date, want to keep
original timestamp separate
This commit is contained in:
Lance Edgar 2023-09-13 21:29:16 -05:00
parent c0cfc7714d
commit 60bc6dd236
5 changed files with 92 additions and 11 deletions

View file

@ -222,6 +222,10 @@ class CoreMemberEquityPayment(model.Base):
``stockpurchases.dept`` value for this payment, within CORE-POS.
""")
corepos_datetime = sa.Column(sa.DateTime(), nullable=True, doc="""
``stockpurchases.datetime`` value for this payment, within CORE-POS.
""")
def __str__(self):
return str(self.payment)
@ -229,3 +233,4 @@ CoreMemberEquityPayment.make_proxy(model.MemberEquityPayment, '_corepos', 'corep
CoreMemberEquityPayment.make_proxy(model.MemberEquityPayment, '_corepos', 'corepos_transaction_number')
CoreMemberEquityPayment.make_proxy(model.MemberEquityPayment, '_corepos', 'corepos_transaction_id')
CoreMemberEquityPayment.make_proxy(model.MemberEquityPayment, '_corepos', 'corepos_department_number')
CoreMemberEquityPayment.make_proxy(model.MemberEquityPayment, '_corepos', 'corepos_datetime')