Skip to content

Commit 37aa086

Browse files
committed
[IMP] base_wamas_ubl PromiseDeliveryPeriod
1 parent c77b2a0 commit 37aa086

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

base_wamas_ubl/lib/wamas/wamas_grammar/weak.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@
240240
"dp": False,
241241
"ubl_path": [
242242
"DespatchAdvice.cac:Shipment.cac:Delivery."
243-
"cac:EstimatedDeliveryPeriod.cbc:EndDate",
243+
"cac:PromiseDeliveryPeriod.cbc:EndDate",
244244
"DespatchAdvice.cac:Shipment.cac:Delivery."
245-
"cac:EstimatedDeliveryPeriod.cbc:EndTime",
245+
"cac:PromiseDeliveryPeriod.cbc:EndTime",
246246
],
247247
"df_val": False,
248248
"df_func": False,

base_wamas_ubl/lib/wamas/wamas_grammar/weap.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,12 @@
210210
"type": "datetime",
211211
"length": 14,
212212
"dp": False,
213-
"ubl_path": "DespatchAdvice.cac:Shipment.cac:Delivery."
214-
"cac:EstimatedDeliveryPeriod.cbc:EndDate",
213+
"ubl_path": [
214+
"DespatchAdvice.cac:Shipment.cac:Delivery."
215+
"cac:EstimatedDeliveryPeriod.cbc:EndDate",
216+
"DespatchAdvice.cac:Shipment.cac:Delivery."
217+
"cac:EstimatedDeliveryPeriod.cbc:EndTime",
218+
],
215219
"df_val": False,
216220
"df_func": False,
217221
},

base_wamas_ubl/tests/samples/UBL2WAMAS-SAMPLE_WEAK_WEAP-DESPATCH_ADVICE.xml

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
<cac:Shipment>
6565
<cbc:ID>130377</cbc:ID>
6666
<cac:Delivery>
67+
<cac:PromiseDeliveryPeriod>
68+
<cbc:EndDate>2023-05-01</cbc:EndDate>
69+
<cbc:EndTime>14:00:00</cbc:EndTime>
70+
</cac:PromiseDeliveryPeriod>
6771
<cac:EstimatedDeliveryPeriod>
6872
<cbc:EndDate>2023-05-01</cbc:EndDate>
6973
<cbc:EndTime>14:00:00</cbc:EndTime>

0 commit comments

Comments
 (0)