-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e2b126
commit 4b0b1fc
Showing
2 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
from .utils import ( | ||
Updater, | ||
) | ||
|
||
|
||
class ItemCodeSchemaUpdater(Updater): | ||
print("Update all item codes") | ||
schema_codes = { | ||
"finpos": "A6", | ||
"capital": "SA34A", | ||
"cashflow": "A7", | ||
"incexp": "A4", | ||
} | ||
|
||
|
||
def update_item_code_schema(update_obj, batch_size, **kwargs): | ||
updater = ItemCodeSchemaUpdater(update_obj, batch_size) | ||
updater.update() | ||
print("__________") | ||
print("Update all item codes") | ||
# For each model of item code update add codes with the corresponding schema version | ||
# It should also be possible to update item codes of a matching schema version |