I gang

Quick bug fix on billing system... Python/Django -- one simple function for code review.

I have a small Django project that is a simple billing system.

There is one function, "def bill()" that is run by a cron job every night that handles the billing for the system. Here's how it should work:

1. Each Subscription object has a "price" field and a "day_month_year" (dmy for short) --

2. There are fixed transactions that are in the Transaction model. This could be a fixed transaction of $1 that will only happen once.

3. There are residual or "recurring" Transactions in the Transaction table, they need to billed once every period (dmy).

The code works, but the logic is a bit off and charges customers a few dollars more or less than it should.

I am attaching the code for review; the relevent code is inside "[url removed, login to view]()" -- thanks!

Evner: Django, Python, Software Arkitektur

Se mere: transaction charges, small project in python, review bug, review architecture, django work, bug review, architecture software review, architecture review, django software, django architecture, small python project, small fix on, simple python project, Python/Django, python django, python django project, code review, c code review, billing system, simple function, python fix code, fix python, model review, code project python, python simple project

Om arbejdsgiveren:
( 9 bedømmelser ) Brooklyn, United States

Projekt ID: #5987824

2 freelancers are bidding on average $65 for this job


Accept my bid and we can keep the good stuff happening. I'll keep your customers happy by always charging them less, so they keep coming for more. This will prove as a formidable business plan. Thanks

$90 USD på 1 dag
(8 bedømmelser)

Hi there, I'm happy to re-write the function right for you now. I urgently need a few dollars within the next twelve hours so I'm offering a lower-than-usual bid. I look forward to hearing from you. Best re Flere

$40 USD på 1 dag
(9 bedømmelser)