Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Auto billable checkbox#373

Merged
supriya3105 merged 74 commits intodevelopfrom
auto-billable-checkbox
May 12, 2022
Merged

Auto billable checkbox#373
supriya3105 merged 74 commits intodevelopfrom
auto-billable-checkbox

Conversation

@abinashpa
Copy link
Contributor

@abinashpa abinashpa commented May 11, 2022

Notion card

Summary

Preview

https://www.loom.com/share/6daacd5e59ad45ca9ea72b02ff24eb8a

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Checklist:

  • I have manually tested all workflows
  • I have performed a self-review of my own code
  • I have added automated tests for my code

@apoorv1316
Copy link
Collaborator

@abinashpa CI checks are failing.

@github-actions
Copy link

Current Code Coverage Percent of this PR:

94.42 %

Files having coverage below 100%

Impacted Files Coverage
/app/controllers/subscriptions_controller.rb 66.67 %
/app/controllers/invoices_controller.rb 63.64 %
/app/models/client.rb 92.68 %
/app/models/invoice.rb 96.3 %
/app/policies/subscriptions_policy.rb 66.67 %
/app/policies/timezone_policy.rb 66.67 %
/app/controllers/invoices/payments_controller.rb 61.11 %
/app/services/invoice_payment/pdf_generation.rb 65.38 %
/app/services/invoice_payment/checkout.rb 43.48 %
/app/controllers/internal_api/v1/timezones_controller.rb 37.5 %
/lib/countries_info.rb 0.0 %

Comment on lines +4 to +10
let [h, m] = duration.split(":");
if (h.length > 2) {
h = h.slice(0, 2);
}
if (m.length > 2) {
m = m.slice(0, 2);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apoorv1316
Copy link
Collaborator

@abinashpa Please take pull from develop and re-run jobs again.

Copy link
Collaborator

@apoorv1316 apoorv1316 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abinashpa Can we disable the checkbox when the project is unbilled?

@abinashpa
Copy link
Contributor Author

@abinashpa Can we disable the checkbox when the project is unbilled?

It's disabled by default.

@supriya3105 supriya3105 merged commit 240fb72 into develop May 12, 2022
@supriya3105 supriya3105 deleted the auto-billable-checkbox branch May 12, 2022 13:13
@pr-triage pr-triage bot added the PR: merged label May 12, 2022
vipulnsward pushed a commit that referenced this pull request Feb 15, 2026
* checkbox icons added

* checking if project exist

* fixed typo

* spec/models/timesheet_entry_spec.rb updated

* initial commit

* weekly component

* ui refactored

* removed update_project controller

* removed update_project controller

* code refactor

* crashing issue fix

* try catch added in exios request

* code refactor

* DatesInWeek.tsx component added

* minor ui changes

* multiple edit entry bug fixes

* rubocop issue fixed

* removed note validation from rspec

* large client, project name UI fixed

* invoice spec update on invoice.due_date

* fix invoices datacy label typo

fixed root page tests. renamed "invoice-tab" to "invoices-tab"

* migration for note added

* interchange save & cancel button in SelectProject.tsx

* initial commit

* calendar added

* useEffect for dayInfo to entryList

* Akash's changes added

* html entity added

* daily & monthly sync

* total daily hours patch added

* patch added

* patch added

* restored duration validation

* fixed starting day in week

* changed variable names in hhmm-parser.ts

* auto resize textarea added

* default values added

* added functionality in org edit page

* added functionality in org edit page

* Owner or admin can add clients for a company (#126)

* Owner or admin can add clients for a company

* Avoid instance vars in views, pass local vars instead

* Pass local vars to views and toggle new client view display based on validation errors

* Fix UI and support country and timezone

* Configure failure and success messages via locales

* Show total hours logged for each client

* Fix eslint err

* Remove memoization for client

* Keep autofocus only on name

* Refactor client specs

* Bifurcate validations and associations into different describe blocks

* Camelize hash keys when sending to react component

* Use locales for labels

* Extract clients hash merge into a method and split long exp into multiple lines

* Add placeholders for input fields, fix dialog header text and fix locales

* DRY up the styling

* Follow BEM style

* Replace with correct class

* Fix model spec

* Follow BEM style

* Set company_id with other params

* Fix class names

* Move toaster to bottom center with a close button

* Fix robocop issues

* Config modal width as per design

* Fix FactoryBot for client

* conflicts resolved

* revert new changes

* restored client controller

* -5:00 default for crate org page

* default scope added to Client and Project

* added map in client spec

* added map in client spec

* rename variable result to results

* replaced map with match_array

* removed duplicate results

* removed more duplicate results

* auto billable checkbox added

Co-authored-by: Mohini Dahiya <[email protected]>
Co-authored-by: Apoorv Mishra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants