Skip to content

Commit

Permalink
Fix ubl_template picking, always return DeliveredQuantity
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilmanuel committed Nov 15, 2024
1 parent 05e2eb8 commit 61cc71c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_wamas_ubl/lib/wamas/ubl_template/picking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@
</cac:Shipment>
<cbc:ID><t t-raw="line.IvAusp_HostPosNr" /></cbc:ID>
<cbc:DeliveredQuantity
t-if="line.Mngs_Mng"
t-if="line.Mngs_Mng or line.Mngs_Mng == 0"
t-att-unitCode="line.IvArt_Bestand_Einheit"
unitCodeListAgencyName="WAMAS"
>
<t t-raw="line.Mngs_Mng" />
</cbc:DeliveredQuantity>
<cbc:DeliveredQuantity
t-if="line.IvAusp_LiefMngsWamas_Mng"
t-if="line.IvAusp_LiefMngsWamas_Mng or line.IvAusp_LiefMngsWamas_Mng == 0"
t-att-unitCode="line.IvArt_Bestand_Einheit"
unitCodeListAgencyName="WAMAS"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,37 @@
8.0
</cbc:DeliveredQuantity>

<cac:OrderLineReference>
<cbc:LineID/>
</cac:OrderLineReference>
<cac:Item>
<cac:BuyersItemIdentification>
<cbc:ID/>
</cac:BuyersItemIdentification>
<cac:SellersItemIdentification>
<cbc:ID>
15455
</cbc:ID>

</cac:SellersItemIdentification>
</cac:Item>
</cac:DespatchLine><cac:DespatchLine>
<cac:Shipment>
<cac:TransportHandlingUnit>
<cac:ActualPackage>
<cbc:ID>376401426411929180</cbc:ID>
</cac:ActualPackage>
<cbc:TransportHandlingUnitTypeCode>PE</cbc:TransportHandlingUnitTypeCode>
</cac:TransportHandlingUnit>
<cac:GrossWeightMeasure>
<cbc:Measure>314.7</cbc:Measure>
</cac:GrossWeightMeasure>
</cac:Shipment>
<cbc:ID>103</cbc:ID>
<cbc:DeliveredQuantity unitCode="TETRA" unitCodeListAgencyName="WAMAS">
0.0
</cbc:DeliveredQuantity>

<cac:OrderLineReference>
<cbc:LineID/>
</cac:OrderLineReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ WAMAS ODOO 00005620230413110200AUSKQ00520001673982/1701778 HOST 167
WAMAS ODOO 00000120230413110200WATEKQ054376401426411929180QUAI-22 000000000000000000000000 0000GE 2/120185 HOST PE 000740ST9016000000314700
WAMAS ODOO 00000220230413110200WATEPQ050 20240413 12 eCAM 008610 NN20240413000001TETRA 0001673982/1701778 HOST 00010100015455 00000000000007000000000000000DISPONIBLE 376401426411929180
WAMAS ODOO 00000320230413110200WATEPQ050 20240413 12 eCAM 008610 NN20240413000001TETRA 0001673982/1701778 HOST 00010200015455 00000000000008000000000000000DISPONIBLE 376401426411929180
WAMAS ODOO 00000420230413110200WATEPQ050 20240413 12 eCAM 008610 NN20240413000001TETRA 0001673982/1701778 HOST 00010300015455 00000000000000000000000000000DISPONIBLE 376401426411929180

0 comments on commit 61cc71c

Please sign in to comment.