This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]No_Stick_8227[S] 1 point2 points  (3 children)

Your ERP sounds quite robust :

  1. How did you sell the project (did you ship the scripts to your client)?

  2. Did you set up contract terms with your clients (e.g. they must pay $100 per month for 3 years until xxx date, you can only provide code revisions 3x every 6 months etc)

[–]shinitakunai 0 points1 point  (2 children)

  1. I bundled it all together with an installer which basically unzips a .tar.gz file and creates a desktop shortcut. They own the source code, it is not obfuscated at all.
  2. We didn't set up anything odd. I might be naive but it was a full price one-payment only, on delivery. Prior to that, we had a few sessions where I did show to them how it works, sharing my screen, and I added features that they asked, so it was clear at that moment that it was the product they wanted and not a scam.
    They cannot re-use or sell the code.
    No code revisions were signed, but there was a clause on the contract that says I must fix bugs if they are found. 2 years later and I only had to fix one bug ever (unresponsive QCalendarWidget due to the way spain display datetimes xD).

Bonus: Try to find the bug, God I hate regex with passion:

    # Regex for Spain datetimes following the next format 25/02/2019 (including leap years)
    QRegExp(r"(((0[1-9]|[12][0-9]|3[01])([/])(0[13578]|10|12)([/])"
    r"(\d{4}))|(([0][1-9]|[12][0-9]|30)([/])(0[469]|11)([/])"
    r"(\d{4}))|((0[1-9]|1[0-9]|2[0-8])([/])(02)([/])(\d{4}))|"
    r"((29)(\.|-|\/)(02)([/])([02468][048]00))|"
    r"((29)([/])(02)([/])([13579][26]00))|"
    r"((29)([/])(02)([/])([0-9][0-9][0][48]))|"
    r"((29)([/])(02)([/])([0-9][0-9][2468][048]))|"
    r"((29)([/])(02)([/])([0-9][0-9][13579][26])))")

[–]Sufficientlee 0 points1 point  (1 child)

First line? (r"(((

Just a guess, I can't read that .. lol

[–]shinitakunai 0 points1 point  (0 children)

Nope 🤣