Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Project test case #1549

Merged
merged 60 commits into from
Aug 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
20af2e5
Remove duplicate column form fields list of company
Aug 4, 2021
376d927
update path of sales report
Aug 4, 2021
7e884c3
add warehouse which halting Item test case
ShahzadNaser Aug 5, 2021
639f6d4
Add flag is_sales_item for test case
ShahzadNaser Aug 10, 2021
d2fd604
Add flag is_sales_item for test case
ShahzadNaser Aug 10, 2021
29d5ee4
Add flag is_sales_item for test case
ShahzadNaser Aug 10, 2021
0b24ce6
Add flag is_sales_item for test case
ShahzadNaser Aug 10, 2021
42ea1b5
Add flag is_sales_item for test case
ShahzadNaser Aug 10, 2021
88d7c46
Add flag is_sales_item for test case
ShahzadNaser Aug 10, 2021
e789787
Add flag is_sales_item for creation of item for test case
ShahzadNaser Aug 10, 2021
bef3e04
Add condition if contact is already exist.
ShahzadNaser Aug 10, 2021
c5cc087
Add flag is_sales_item for creation of item for test case
ShahzadNaser Aug 10, 2021
c11e5fb
Add flag is_sales_item for creation of item for test case
ShahzadNaser Aug 10, 2021
1c17e49
Add valuation rate for test item
ShahzadNaser Aug 10, 2021
1ca7a8a
Add flag is_sales_item for creation of item for test case
ShahzadNaser Aug 10, 2021
6e5801c
Add flag is_sales_item for creation of item for test case
ShahzadNaser Aug 10, 2021
88ef0cf
check if same company already exists or not
ShahzadNaser Aug 10, 2021
3c1fb9d
Make item is sale able
ShahzadNaser Aug 11, 2021
83bf8ed
Add last name for employee because it is mandatory now.
ShahzadNaser Aug 11, 2021
cccfa24
Add last name for employee
ShahzadNaser Aug 11, 2021
671a6f6
Make email notification for leave application which cause error in te…
ShahzadNaser Aug 11, 2021
3b13b24
Make more items is sale able for test cases
ShahzadNaser Aug 11, 2021
7474d3c
Create item if not exist because it user in child table for purchase …
ShahzadNaser Aug 11, 2021
262ab23
Merge branch 'develop' of github.com:Bloomstack/erpnext into bugfix/t…
ShahzadNaser Aug 11, 2021
51dc655
Update HR Setting for leave application notifications on running test…
ShahzadNaser Aug 11, 2021
130b2ee
update First name for employee
ShahzadNaser Aug 11, 2021
455283f
fix: side issues
ShahzadNaser Aug 12, 2021
2f00f91
fix: remove spaces and add tabs
ShahzadNaser Aug 12, 2021
66fc417
fix: remove spaces and add tabs in leave application for sider
ShahzadNaser Aug 17, 2021
f3b3faa
Fix: Update Indentation
ShahzadNaser Aug 17, 2021
3371be1
Revert: Revert Indentation again
ShahzadNaser Aug 17, 2021
0429f3f
fix: update indentations
ShahzadNaser Aug 17, 2021
b2ad3de
Fix: add test records in json file and remove from test file
ShahzadNaser Aug 17, 2021
95647c9
Fix: Add new fiscal year
ShahzadNaser Aug 19, 2021
d760b61
Fix: Increase items quantity for testing because loyalty tiers are no…
ShahzadNaser Aug 19, 2021
519b437
Fix: Add new parameter for creation conditional courses enrollment
ShahzadNaser Aug 19, 2021
ad709e3
Fix: Add new argument for creation conditional courses enrollment on …
ShahzadNaser Aug 19, 2021
120609b
Fix: Add new parameter for creation conditional courses enrollment
ShahzadNaser Aug 19, 2021
04d026b
Fix: Remove templates for leave notification because its not necessar…
ShahzadNaser Aug 19, 2021
74b9b7d
Fix: add applicant type which uses to validate applicant
ShahzadNaser Aug 19, 2021
b498fd4
Fix: There was an error of modified document so i add reload before s…
ShahzadNaser Aug 19, 2021
9ddb321
Fix: remove values from warehouse and add them in item to just check …
ShahzadNaser Aug 19, 2021
a32cca7
Fix: add company condition in query to get warehouse by company
ShahzadNaser Aug 19, 2021
1dd4fcc
Fix: update quantities and condition for checking item consumption in…
ShahzadNaser Aug 19, 2021
100d3c0
Fix: Invalid account name and mark item as is_sales_item
ShahzadNaser Aug 19, 2021
1bb234c
Merge branch 'develop' of github.com:Bloomstack/erpnext into bugfix/t…
ShahzadNaser Aug 19, 2021
5069827
update test records
ShahzadNaser Aug 19, 2021
fbba9d6
Revert warehouse changes
ShahzadNaser Aug 19, 2021
03c4b53
fix: Enable cwip Accounting check before submit
ShahzadNaser Aug 23, 2021
eb458fc
Fix: add required parameters for project and tasks
ShahzadNaser Aug 23, 2021
492474c
Fix: Filter required object from report response and update assert ac…
ShahzadNaser Aug 23, 2021
13c57a2
Fix: Add new parameter because by default wrong account picket on sto…
ShahzadNaser Aug 23, 2021
0e37d12
Merge branch 'develop' of github.com:Bloomstack/erpnext into bugfix/t…
ShahzadNaser Aug 23, 2021
db13d8f
Fix: Add check in selling controller regarding credit note which caus…
ShahzadNaser Aug 26, 2021
151621b
Fix: Update condition on payment entry for payment type
ShahzadNaser Aug 26, 2021
f6c1ac5
Fix: Update Payload for payment entery
ShahzadNaser Aug 26, 2021
a8f1035
Merge branch 'develop' of github.com:Bloomstack/erpnext into bugfix/t…
ShahzadNaser Aug 26, 2021
81acd10
Fix: Add expected end date which is required in project
ShahzadNaser Aug 26, 2021
e980473
Fix: populate child table according to new development in tasks
ShahzadNaser Aug 26, 2021
f0e3157
Merge branch 'develop' of github.com:Bloomstack/erpnext into bugfix/t…
ShahzadNaser Aug 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion erpnext/projects/doctype/project/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ def copy_from_template(self):
exp_end_date = add_days(self.expected_start_date, task.start + task.duration),
description = task.description,
task_weight = task.task_weight
)).insert()
))
task_doc.append("projects", {
"is_default": 1,
"project": self.name
})
task_doc.insert()
if task.assigned_user:
args = {
'doctype': 'Task',
Expand Down
3 changes: 2 additions & 1 deletion erpnext/projects/doctype/project/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def get_project(name):
project_name = name,
status = 'Open',
project_template = template.name,
expected_start_date = '2019-01-01'
expected_start_date = '2019-01-01',
expected_end_date = '2019-01-31'
)).insert()

return project