Skip to content

Instantly share code, notes, and snippets.

@tinogis
Created January 14, 2013 09:34
Show Gist options
  • Save tinogis/4528903 to your computer and use it in GitHub Desktop.
Save tinogis/4528903 to your computer and use it in GitHub Desktop.
Diff a liquidacions
@@ -366,6 +366,8 @@
n = doc.createElement("DIPE_FACT_ENERGIA")
facturacion.appendChild(n)
+ if t.name.codi.startswith('6'):
+ t.facturacio_energia = 0.0
txt = doc.createTextNode(str(t.facturacio_energia))
n.appendChild(txt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment