trytond-systemlogics_modula/template/IMP_ORDINI_INTERNAL.xml
2018-09-20 12:08:31 +02:00

27 lines
1.2 KiB
XML

<?xml version="1.0" encoding="Windows-1252"?>
<SYSTORE_ORDINI xmlns:py="http://genshi.edgewall.org/">
<IMP_ORDINI py:for="shipment in shipments">
<ORD_ORDINE>${shipment.number}</ORD_ORDINE>
<ORD_DES>${shipment.reference and shipment.reference[:50]}</ORD_DES>
<ORD_TIPOOP>${type_}</ORD_TIPOOP> <!-- P: Extracion / V: Deposito -->
<ORD_PRIOHOST>${datetime.datetime.now().strftime("%Y%m%d%H%M%s")[:16]}</ORD_PRIOHOST> <!-- fechaHora AAAAMMGGHHPPPPPP -->
<ORD_CLIENTE></ORD_CLIENTE>
<ORD_SPEDIZIONE></ORD_SPEDIZIONE>
<ORD_GEST_PKL></ORD_GEST_PKL>
<py:for each="move in shipment.moves">
<IMP_ORDINI_RIGHE py:if="(move.from_location.systemlogics_modula and type_ == 'P') or (move.to_location.systemlogics_modula and type_ == 'V')">
<RIG_ORDINE>${shipment.number}</RIG_ORDINE>
<RIG_ARTICOLO>${move.product.code or move.product.rec_name}</RIG_ARTICOLO>
<RIG_SUB1/>
<RIG_SUB2/>
<RIG_STAMATE/>
<RIG_TIPOCONF/>
<RIG_HOSTINF>${move.id}</RIG_HOSTINF>
<RIG_QTAR>${int(move.quantity)}</RIG_QTAR>
<RIG_PRIO>0</RIG_PRIO>
<RIG_REQ_NOTE/>
</IMP_ORDINI_RIGHE>
</py:for>
</IMP_ORDINI>
</SYSTORE_ORDINI>