Project

General

Profile

« Previous | Next » 

Revision 3d7a840a

Added by Thomas Noël over 11 years ago

new invoice.batch logic (fix #2525)

warning: execute this to init healthcenters hc_invoice
(redirections like in transmissions.csv from Faure)

----
from calebasse.ressources.models import HealthCenter

def redirect(from_, to):
hc_from=HealthCenter.objects.get(pk=from_)
hc_to=HealthCenter.objects.get(pk=to)
print hc_from.b2_000(), hc_from,
print "\t>", hc_to.b2_000(), hc_to
hc_from.hc_invoice=hc_to
hc_from.save()

redirect(454, 163)
redirect(944, 940)
redirect(980, 940)
redirect(928, 940)
redirect(979, 940)
redirect(988, 940)
redirect(1512, 1511)
-----

  • added
  • modified
  • copied
  • renamed
  • deleted