Lance Edgar
dbeed929fc
Update changelog
2023-10-07 18:59:56 -05:00
Lance Edgar
cf90ca5704
Add importer for tax rates from CORE
2023-10-07 16:28:12 -05:00
Lance Edgar
6ef2e67f76
Rename config section to [corepos.db.office_arch]
...
to match module rename
2023-10-05 11:53:12 -05:00
Lance Edgar
aa1b53d96c
Improve the anonymization logic some more
...
hopefully this scrubs all personal data from a `core_op` DB
2023-10-04 18:52:07 -05:00
Lance Edgar
478126f1e3
Improve the core-office anonymize
command somewhat
...
API is not good enough for this, need to write direct SQL instead
this "mostly" anonymizes `custdata` and `meminfo` but still needs to
also anonymize probably `CustomerAccounts` and `Customers`, as well as
`employees` and possibly others..?
2023-10-03 23:17:09 -05:00
Lance Edgar
117442f8db
Add employee importer for CORE -> Rattail, and CORE cashier auth handler
2023-10-01 19:48:52 -05:00
Lance Edgar
fd5d3142ed
Truncate item descriptions when pushing to dtransactions
if needed
2023-10-01 19:42:13 -05:00
Lance Edgar
f61ae7a7e0
Add tender importer from CORE; apply tender in CORE POS batch
...
still some work to be done yet but getting there
2023-09-27 17:14:28 -05:00
Lance Edgar
3add006b7e
Add custom POS batch handler, to push transactions to CORE
...
not complete but a reasonable start
2023-09-26 17:59:26 -05:00
Lance Edgar
b98b80d3c0
Update changelog
2023-09-19 18:48:39 -05:00
Lance Edgar
7a18dc20ce
Do not raise error if CORE equity payment not found in rattail
2023-09-19 07:08:35 -05:00
Lance Edgar
95cd77c7fb
Update changelog
2023-09-19 06:50:02 -05:00
Lance Edgar
6e1d2544c8
Fix bug when fetching corepos handler
2023-09-19 06:49:30 -05:00
Lance Edgar
9a53b58972
Update changelog
2023-09-18 09:53:23 -05:00
Lance Edgar
ebdb658a2c
Make CORE API client via app handler, not deprecated function
2023-09-18 08:12:20 -05:00
Lance Edgar
7b9b6e57e2
Update changelog
2023-09-17 13:53:18 -05:00
Lance Edgar
c513a91678
Remove production hack to prevent equity import batch execution
2023-09-17 13:49:36 -05:00
Lance Edgar
7dc09d0a2e
Let config override the CORE API client factory
2023-09-17 13:47:06 -05:00
Lance Edgar
f662b04ba3
Update changelog
2023-09-17 11:36:26 -05:00
Lance Edgar
15340dad6a
Add tender_code
for CORE equity import batch rows
2023-09-16 15:48:35 -05:00
Lance Edgar
8162821fbd
Update changelog
2023-09-15 13:00:29 -05:00
Lance Edgar
e15328043f
Add "overpaid" status for equity import batch rows
2023-09-15 12:57:20 -05:00
Lance Edgar
297e0fb126
Update changelog
2023-09-15 10:37:41 -05:00
Lance Edgar
1d1cb5fb3c
Make CORE -> Rattail equity import a bit smarter re: datetime
...
if we add new equity to CORE, we can't know its timestamp for 100%
sure, and may need a "fuzzy" match when importing it back later
2023-09-15 10:35:44 -05:00
Lance Edgar
271895fa83
Add rattail provider for CORE-POS Integration
...
and use it to generate CORE Office URLs
2023-09-14 12:57:14 -05:00
Lance Edgar
4bff0832e8
Use "complete" composite key for importing CORE equity payments
2023-09-13 22:13:37 -05:00
Lance Edgar
b77b5cdf8c
Update changelog
2023-09-13 21:52:11 -05:00
Lance Edgar
60bc6dd236
Add CORE-specific datetime for equity payments
...
in case payments are added to CORE on a later date, want to keep
original timestamp separate
2023-09-13 21:29:16 -05:00
Lance Edgar
c0cfc7714d
Add first draft logic for executing CORE equity import batch
2023-09-13 14:37:01 -05:00
Lance Edgar
2594245813
Update changelog
2023-09-13 13:16:33 -05:00
Lance Edgar
ac34a494e3
Add model, handler for CORE equity import batch
2023-09-13 13:15:47 -05:00
Lance Edgar
64048db92f
Import member first/last name from CORE API
2023-09-13 13:15:25 -05:00
Lance Edgar
f6c08af32c
Update changelog
2023-09-11 08:43:39 -05:00
Lance Edgar
465322b87b
Add common base for commands which import straight to CORE op/trans DB
2023-09-09 12:19:54 -05:00
Lance Edgar
f6ca488c66
Update changelog
2023-09-07 21:01:18 -05:00
Lance Edgar
bf74ba8108
Ignore non-CORE equity payments when importing from CORE
...
hopefully a good idea..?
2023-09-07 20:58:35 -05:00
Lance Edgar
01cbffe5a8
Update changelog
2023-09-07 18:38:20 -05:00
Lance Edgar
a57f29fe1a
Add support for importing MemberEquityPayment from CORE-POS DB
...
SQL only, no API for now
2023-09-07 18:18:38 -05:00
Lance Edgar
35e24422a2
Update changelog
2023-09-02 13:53:21 -05:00
Lance Edgar
66d1cdd0a9
Add problem report for CORE phone numbers too long
2023-09-02 13:48:48 -05:00
Lance Edgar
2af89f2cbf
Add core-office anonymize
command
...
for sake of demo data etc.
2023-06-19 20:58:00 -05:00
Lance Edgar
b6e4ad2a21
Import Member.corepos_account_id
from CORE
2023-06-18 17:19:43 -05:00
Lance Edgar
0c29a28f22
Update changelog
2023-06-12 20:44:16 -05:00
Lance Edgar
9c15952386
Rename model for custdata
to CustomerClassic
2023-06-12 20:04:31 -05:00
Lance Edgar
a6541a2c32
Add core-office patch-customer-gaps
command
...
hopefully this is not often needed, but definitely might be sometimes..
2023-06-12 20:04:24 -05:00
Lance Edgar
cc517702e1
Improve email diff display for exports to CORE API 'Member.customers'
...
break out each subrecord into separate fields, for easier viewing
2023-06-12 16:39:32 -05:00
Lance Edgar
46eec6b781
Improve diff detection for customerID when dealing with CORE API
...
sometimes it returns int, sometimes str..
2023-06-12 16:36:31 -05:00
Lance Edgar
3cef682a75
More tweaks for CORE <-> Rattail member sync
2023-06-11 21:05:51 -05:00
Lance Edgar
788efbd114
Let handler cache members from CORE API, for multiple importers
2023-06-11 15:26:27 -05:00
Lance Edgar
2ca9cd8f76
Fix how customerAccountID is imported from CORE API
...
geez.
also optimize joinedloads when fetching Rattail member data for CORE
export
2023-06-11 15:21:30 -05:00
Lance Edgar
914fcbe192
Add customer "account holder" support for CORE -> Rattail
2023-06-11 14:53:14 -05:00
Lance Edgar
15bac1dc23
Add core-office export-csv
command; deprecate crepes export-csv
2023-06-11 11:55:29 -05:00
Lance Edgar
77bd9e34e4
Be smarter about member datasync for Rattail -> CORE
...
per new CustomerShopper schema etc.
2023-06-10 22:29:50 -05:00
Lance Edgar
6e50ea58a8
Fix how we select changes from CORE DB in datasync
...
to placate SQLAlchemy warnings
2023-06-10 22:13:42 -05:00
Lance Edgar
87bd1faa58
Make some importer logic datasync-friendly
2023-06-10 21:58:24 -05:00
Lance Edgar
43cd63c1f5
Add phone/email support for Rattail -> CORE export for Member
2023-06-10 21:18:14 -05:00
Lance Edgar
7489d4a4a9
Add phone/email support in CORE -> Rattail importer for CustomerShopper
2023-06-10 21:10:09 -05:00
Lance Edgar
76b0791831
Add support for Customer address fields in CORE -> Rattail
2023-06-10 20:27:12 -05:00
Lance Edgar
f4384f8b1d
Add CoreCustomerShopper
to default model for pkg
2023-06-10 18:55:05 -05:00
Lance Edgar
bde8200cdf
Add core-office ping-install
command, for DB setup
2023-06-10 18:35:49 -05:00
Lance Edgar
13e5f2a801
Add version importer for CoreCustomerShopper
model
2023-06-10 18:01:24 -05:00
Lance Edgar
660637522d
Add CustomerShopper.corepos_customer_id
and refactor importers
...
removes phone/email support for now..also change how we handle
default/empty values for member start/end date..
2023-06-10 14:35:08 -05:00
Lance Edgar
86a8e2d241
Detect bad memtype number early, for CORE API -> Rattail import
...
to avoid false diffs when we give a bad value
2023-06-10 13:06:18 -05:00
Lance Edgar
2cf865d879
Add core-office import-csv
command; deprecate crepes import-csv
2023-06-09 19:53:47 -05:00
Lance Edgar
6267205966
Avoid the Change
model by default, for CSV -> CORE import
2023-06-09 17:41:32 -05:00
Lance Edgar
95fcf054ef
Fix import to avoid deprecation warning
2023-06-09 15:28:08 -05:00
Lance Edgar
6c21073182
Fix datasync for CORE -> Rattail, per CustomerShopper changes
2023-06-08 10:53:54 -05:00
Lance Edgar
a45d28cd6f
Add initial/basic CustomerShopper importer for CORE -> Rattail
...
this replaces previous importers for Person and CustomerPerson
no contact info support just yet..need to decide where to put that
2023-06-07 16:39:57 -05:00
Lance Edgar
2c38e4d5d3
Import membership types from CORE API
2023-06-06 13:14:36 -05:00
Lance Edgar
dde729b959
Import the Member.active
flag from CORE API
2023-06-06 11:45:35 -05:00
Lance Edgar
bfc52a6fb3
Make card_number
more central for CORE API -> Rattail importers
...
let's track that as (effectively) `Customer.corepos_card_number` and
use that when possible for importer key
2023-06-05 20:45:45 -05:00
Lance Edgar
c1276c998a
Update changelog
2023-06-03 07:28:59 -05:00
Lance Edgar
5dc1392ef7
Skip customer record with no member type, for blue line update
...
otherwise would just raise error, and prevent the rest of updates from
happening
2023-06-03 07:27:57 -05:00
Lance Edgar
02107d32a4
Update changelog
2023-06-02 14:27:34 -05:00
Lance Edgar
d57f18a1fe
Add problem report for invalid custdata
person number sequence
2023-06-02 14:16:20 -05:00
Lance Edgar
e838e5b514
Add support for htdigest auth when using CORE webservices API
2023-05-22 21:36:04 -05:00
Lance Edgar
66a6c8f5a0
Update changelog
2023-05-18 15:57:23 -05:00
Lance Edgar
80084e13da
Add core-office import-self
command, to fix custdata.blueLine
2023-05-18 15:55:56 -05:00
Lance Edgar
5e1afa2c5c
Update changelog
2023-05-17 06:57:51 -05:00
Lance Edgar
65b62ad241
Update changelog
2023-05-11 15:24:32 -05:00
Lance Edgar
e74a47b99a
Add behavior options for CORE member importer
2023-05-11 15:23:39 -05:00
Lance Edgar
1cb7d45e23
Update changelog
2023-05-09 20:32:26 -05:00
Lance Edgar
f8de832294
Add support for member_type_id
in CORE MemberInfoImporter
...
also improve support for first, last name sync
2023-05-09 20:25:52 -05:00
Lance Edgar
4bb03b9cd9
Update changelog
2023-05-08 15:28:33 -05:00
Lance Edgar
24d4afa22b
Move CORE DB import handler to more general location
2023-05-08 14:56:49 -05:00
Lance Edgar
ef823260ab
Move logic for CORE importing to "more precise" module path
...
should distinguish "office vs. lane"
2023-05-08 14:56:46 -05:00
Lance Edgar
519ed0a594
Avoid deprecated import for OrderedDict
2023-05-05 01:48:39 -05:00
Lance Edgar
20a587ccdd
Update changelog
2023-05-01 22:19:24 -05:00
Lance Edgar
e11963c4fc
Show all deprecation warnings occurring within corepos
pkg
2023-02-14 15:57:01 -06:00
Lance Edgar
cb58a26cb1
Update changelog
2023-02-12 10:12:11 -06:00
Lance Edgar
82892be096
More refactoring, Query.get()
=> Session.get()
2023-02-12 09:37:31 -06:00
Lance Edgar
0b5930a511
Refactor Query.get()
=> Session.get()
per SQLAlchemy 1.4
2023-02-11 22:06:43 -06:00
Lance Edgar
6696973868
Update changelog
2023-01-03 18:12:03 -06:00
Lance Edgar
4d49d4235b
Define default handler for corepos_member
batch type
2023-01-03 18:11:24 -06:00
Lance Edgar
c8f55bf472
Update changelog
2023-01-02 16:58:06 -06:00
Lance Edgar
63a1172408
Update usage of short_session()
per upstream changes
2022-08-21 20:00:15 -05:00
Lance Edgar
7eb7c25172
Fix datasync bug for CORE API -> Rattail
2022-08-21 11:33:51 -05:00
Lance Edgar
82ad5ad441
Configure DB connections for CORE trans archive on app startup
2022-03-26 23:04:40 -05:00
Lance Edgar
57ea39acb5
Update changelog
2022-03-15 11:36:01 -05:00
Lance Edgar
8daec28faf
Add "raw" card number value to CORE Member Import batch
...
b/c source file may not have it, or may not be numeric
2022-03-15 11:34:37 -05:00