Calculate Fine Amount

  • hello guys



    for every month customer is fined like this
    customer has to pay for the month before 10th of the next month
    for example January month payment should be made in between 1st Jan to 10th Feb if not then customer is fined
    Fine amount is 15 per month


    this is ware i am stuck, can anybody help me with this


    for example today is 6th April 2019


    if i enter customer id = 3
    this customer has not paid to jan,feb,mar


    if i checked jan checkbox
    i want to check weather the customer has paid to that month,
    if paid do nothing
    if the customer has not paid to that month then
    check if customer has been fined for that month
    if fined then add 15 to the textbox3(Fine)


    like this if i checked Jan and feb it should do the same and add 15+15=30 to the textbox3(Fine)
    because the customer is finned for 2 months


    but if i checked Jan and feb, mar it should do the same and add 15+15=30 to the textbox3(Fine) but not for mar because march 10th has not yet come


    hope you understand my problem


    sorry for my bad english

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!