Changeset 2662 for pykota/trunk
- Timestamp:
- 02/10/06 22:28:01 (19 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkinvoice
r2661 r2662 73 73 to your native language if it is supported by PyKota. 74 74 75 -V | --vat p Sets the percent value of the applicable VAT .76 The default is 0.0, meaning no VAT information77 will be included.75 -V | --vat p Sets the percent value of the applicable VAT to be 76 exposed. The default is 0.0, meaning no VAT 77 information will be included. 78 78 79 79 user1 through userN and group1 through groupN can use wildcards if … … 87 87 Will generate a PDF document containing invoices for all users whose 88 88 account balance is below 15.0 credits. For each user the amount due 89 will be (15.0 - AccountBalance) EURO . No VAT information will be90 included.89 will be (15.0 - AccountBalance) EURO when that value is positive. 90 No VAT information will be included. 91 91 """) 92 92 … … 127 127 entries = getattr(self.storage, "getMatching%ss" % suffix)(",".join(names)) 128 128 nbtotal = len(entries) 129 self.printInfo("Not implemented yet !", "warn")130 129 for i in range(nbtotal) : 131 # TODO 132 percent = 100.0 * float(i) / float(nbtotal) 130 entry = entries[i] 131 amount = reference - entry.AccountBalance 132 if amount > 0.0 : 133 # There's something due ! 134 ht = ((amount * 10000.0) / (100.0 + vat)) / 100.0 135 sys.stderr.write("%s => Due : %.2f including %.2f VAT\n" % (entry.Name, amount, amount-ht)) 136 133 137 if outfname != "-" : 138 percent = 100.0 * float(i) / float(nbtotal) 134 139 self.display("\r%.02f%%" % percent) 140 135 141 if outfname != "-" : 136 142 self.display("\r100.00%%\r ") … … 142 148 defaults = { "reference" : "0.0", 143 149 "vat" : "0.0", 144 "unit" : _("Credits"),150 "unit" : N_("Credits"), 145 151 "output" : "-", 146 152 "pagesize" : "a4", \ … … 148 154 "number" : "1", 149 155 } 150 short_options = "vho:gr:u:V:p:l: "156 short_options = "vho:gr:u:V:p:l:n:" 151 157 long_options = ["help", "version", \ 152 158 "groups", "reference=", "unit=", "output=", \ … … 158 164 159 165 # parse and checks the command line 160 (options, args) = invoiceGenerator.parseCommandline(sys.argv[1:], short_options, long_options )166 (options, args) = invoiceGenerator.parseCommandline(sys.argv[1:], short_options, long_options, allownothing=True) 161 167 162 168 # sets long options -
pykota/trunk/MANIFEST.in
r2573 r2662 2 2 include clean.sh checkdeps.py bin/pykoef bin/pkturnkey bin/pkmail bin/pkbanner 3 3 include bin/autopykota bin/dumpykota bin/cupspykota bin/edpykota bin/warnpykota 4 include bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkbcodes 4 include bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkbcodes bin/pkinvoice 5 5 include bin/waitprinter.sh bin/papwaitprinter.sh bin/mailandpopup.sh bin/README 6 6 recursive-include po README *.sh *.po *.mo *.pot -
pykota/trunk/setup.py
r2638 r2662 117 117 url = "http://www.librelogiciel.com/software/", 118 118 packages = [ "pykota", "pykota.storages", "pykota.loggers", "pykota.accounters", "pykota.reporters" ], 119 scripts = [ "bin/p ykoef", "bin/pkturnkey", "bin/pkbcodes", "bin/pkmail", "bin/pkbanner", "bin/autopykota", "bin/dumpykota", "bin/pykosd", "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters" ],119 scripts = [ "bin/pkinvoice", "bin/pykoef", "bin/pkturnkey", "bin/pkbcodes", "bin/pkmail", "bin/pkbanner", "bin/autopykota", "bin/dumpykota", "bin/pykosd", "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters" ], 120 120 data_files = data_files)