Skip to content

Commit

Permalink
Merge PR OCA#940 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Mar 6, 2024
2 parents f3ca350 + 9c7b0e9 commit 08670cf
Show file tree
Hide file tree
Showing 6 changed files with 953 additions and 0 deletions.
18 changes: 18 additions & 0 deletions base_wamas_ubl/lib/wamas/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
ausk,
auskq,
ausp,
bkorr,
kretk,
kretkq,
kretp,
kretpq,
kst,
kstaus,
lba,
lbabq,
lbaeq,
lbamq,
lst,
watekq,
watepq,
Expand Down Expand Up @@ -51,6 +56,9 @@
"WATEKQ": "PickingResponse",
"WEAK": "Reception",
"WEAKQ": "ReceptionResponse",
"BKORR": "InventoryCorrection",
"LBABQ": "InventoryResponse",
"LBAMQ": "InventoryResponse",
}

##
Expand All @@ -63,6 +71,7 @@
"ARTEAN": artean.grammar,
"AUSK": ausk.grammar,
"AUSP": ausp.grammar,
"BKORR": bkorr.grammar,
"KRETK": kretk.grammar,
"KRETP": kretp.grammar,
"WEAK": weak.grammar,
Expand All @@ -72,6 +81,10 @@
"KRETPQ": kretpq.grammar,
"KST": kst.grammar,
"KSTAUS": kstaus.grammar,
"LBA": lba.grammar,
"LBABQ": lbabq.grammar,
"LBAEQ": lbaeq.grammar,
"LBAMQ": lbamq.grammar,
"LST": lst.grammar,
"WATEKQ": watekq.grammar,
"WATEPQ": watepq.grammar,
Expand Down Expand Up @@ -122,10 +135,15 @@
"WEAP",
"AUSK",
"AUSP",
"BKORR",
"KRETK",
"KRETP",
"KST",
"KSTAUS",
"LBA",
"LBABQ",
"LBAMQ",
"LBAEQ",
"LST",
]

Expand Down
195 changes: 195 additions & 0 deletions base_wamas_ubl/lib/wamas/wamas_grammar/bkorr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
from collections import OrderedDict

grammar = OrderedDict(
{
"Telheader_Quelle": {
"type": "str",
"length": 10,
"dp": False,
"ubl_path": False,
"df_val": False,
"df_func": "get_source",
},
"Telheader_Ziel": {
"type": "str",
"length": 10,
"dp": False,
"ubl_path": False,
"df_val": False,
"df_func": "get_destination",
},
"Telheader_TelSeq": {
"type": "int",
"length": 6,
"dp": False,
"df_val": False,
"df_func": "get_sequence_number",
},
"Telheader_AnlZeit": {
"type": "datetime",
"length": 14,
"dp": False,
"df_val": False,
"df_func": "get_current_datetime",
},
"Satzart": {
"type": "str",
"length": 9,
"dp": False,
"df_val": "BKORR0051",
"df_func": False,
},
"Hostkorr_HostKorrKz": {
"type": "str",
"length": 5,
"dp": False,
"dict_key": False,
"df_val": "HOST",
"df_func": False,
},
"Invba_MId_AId_Mand": {
"type": "str",
"length": 3,
"dp": False,
"dict_key": False,
"df_val": "000",
"df_func": False,
},
"Invba_MId_AId_ArtNr": {
"type": "str",
"length": 20,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_MId_AId_Var": {
"type": "str",
"length": 5,
"dp": False,
"dict_key": False,
"df_val": "00000",
"df_func": False,
},
"Invba_MId_SerienNrGrp": {
"type": "str",
"length": 20,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_MId_ResNr": {
"type": "str",
"length": 20,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_MId_Charge": {
"type": "str",
"length": 20,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_MId_MHD": {
"type": "date",
"length": 8,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_MId_WeNr": {
"type": "str",
"length": 20,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Matqk_HMATQ_HMatQ": {
"type": "str",
"length": 20,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_DiffMngs_Mng": {
"type": "float",
"length": 12,
"dp": 3,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_DiffMngs_Gew": {
"type": "float",
"length": 12,
"dp": 3,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Art_HOSTUNITS_HostEinh": {
"type": "str",
"length": 5,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Art_Bestand_Einheit": {
"type": "str",
"length": 5,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_BuSchl": {
"type": "str",
"length": 10,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Bschl_HostBuschlPlus": {
"type": "str",
"length": 10,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Bschl_KOST_KostSte": {
"type": "str",
"length": 13,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Invba_InvbaId": {
"type": "int",
"length": 7,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
"Sign": {
"type": "str",
"length": 1,
"dp": False,
"dict_key": False,
"df_val": False,
"df_func": False,
},
}
)
Loading

0 comments on commit 08670cf

Please sign in to comment.