Merge branch 'handlerupdate' into sync_handler_merge

Conflicts:
	js/all-app.js
	version.num
This commit is contained in:
Anand Doshi 2012-03-23 13:55:20 +05:30
commit 9b56a8ada9
174 changed files with 3572 additions and 7736 deletions

View File

@ -3,14 +3,22 @@
"lib/js/core.min.js": [ "lib/js/core.min.js": [
"lib/js/wn/class.js", "lib/js/wn/class.js",
"lib/js/wn/provide.js", "lib/js/wn/provide.js",
"lib/js/wn/xmlhttp.js",
"lib/js/wn/versions.js", "lib/js/wn/versions.js",
"lib/js/wn/assets.js", "lib/js/wn/assets.js",
"lib/js/wn/require.js", "lib/js/wn/require.js",
"lib/js/wn/dom.js", "lib/js/wn/dom.js",
"lib/js/wn/page.js", "lib/js/wn/model.js",
"lib/js/wn/misc/tools.js",
"lib/js/wn/misc/user.js", "lib/js/wn/misc/user.js",
"lib/js/lib/json2.js", "lib/js/lib/json2.js",
"lib/js/wn/router.js",
"lib/js/wn/ui/listing.js",
"lib/js/wn/views/container.js",
"lib/js/wn/views/doclistview.js",
"lib/js/wn/views/pageview.js",
"lib/js/wn/views/formview.js",
"lib/js/wn/views/reportview.js",
"lib/js/wn/request.js",
"lib/js/core.js" "lib/js/core.js"
] ]
}, },
@ -57,10 +65,12 @@
"lib/css/legacy/grid.css", "lib/css/legacy/grid.css",
"lib/css/legacy/listing.css", "lib/css/legacy/listing.css",
"lib/css/legacy/report.css", "lib/css/legacy/report.css",
"lib/css/legacy/autosuggest.css",
"lib/css/legacy/dialog.css", "lib/css/legacy/dialog.css",
"lib/css/legacy/tabs.css", "lib/css/legacy/tabs.css",
"lib/css/legacy/sidebar.css", "lib/css/legacy/sidebar.css",
"lib/css/Aristo/aristo.selected.css",
"lib/css/ui/list.css",
"lib/css/ui/fonts.css",
"lib/css/bootstrap/headings.css", "lib/css/bootstrap/headings.css",
"lib/css/bootstrap/buttons.css", "lib/css/bootstrap/buttons.css",
"lib/css/bootstrap/navbar.css", "lib/css/bootstrap/navbar.css",
@ -68,7 +78,8 @@
"lib/css/bootstrap/tooltip.css", "lib/css/bootstrap/tooltip.css",
"lib/css/bootstrap/label.css", "lib/css/bootstrap/label.css",
"lib/css/bootstrap/icons.css", "lib/css/bootstrap/icons.css",
"erpnext/startup/startup.css" "lib/css/bootstrap/popover.css",
"erpnext/startup/startup.css"
] ]
}, },
@ -87,15 +98,13 @@
"lib/js/legacy/utils/shortcut.js", "lib/js/legacy/utils/shortcut.js",
"lib/js/legacy/widgets/form/fields.js", "lib/js/legacy/widgets/form/fields.js",
"lib/js/wn/ui/dialog.js", "lib/js/wn/ui/dialog.js",
"lib/js/wn/ui/button.js",
"lib/js/legacy/widgets/dialog.js", "lib/js/legacy/widgets/dialog.js",
"lib/js/wn/ui/listing.js", "lib/js/wn/ui/listing.js",
"lib/js/legacy/widgets/layout.js", "lib/js/legacy/widgets/layout.js",
"lib/js/legacy/webpage/page_header.js", "lib/js/legacy/webpage/page_header.js",
"lib/js/legacy/widgets/select.js",
"lib/js/legacy/webpage/history.js",
"lib/js/legacy/webpage/search.js", "lib/js/legacy/webpage/search.js",
"lib/js/legacy/webpage/spinner.js", "lib/js/legacy/webpage/spinner.js",
"lib/js/legacy/webpage/freeze_page.js",
"lib/js/legacy/webpage/error_console.js", "lib/js/legacy/webpage/error_console.js",
"lib/js/legacy/webpage/loaders.js", "lib/js/legacy/webpage/loaders.js",
"lib/js/legacy/webpage/uploader.js", "lib/js/legacy/webpage/uploader.js",
@ -104,7 +113,6 @@
"lib/js/legacy/wn/widgets/footer.js", "lib/js/legacy/wn/widgets/footer.js",
"lib/js/legacy/model/local_data.js", "lib/js/legacy/model/local_data.js",
"lib/js/legacy/model/doclist.js", "lib/js/legacy/model/doclist.js",
"lib/js/legacy/webpage/body.js",
"lib/js/legacy/app.js", "lib/js/legacy/app.js",
"js/app.js", "js/app.js",
"erpnext/startup/startup.js", "erpnext/startup/startup.js",
@ -115,8 +123,10 @@
{ {
"js/all-app.js": [ "js/all-app.js": [
"lib/js/lib/history/history.min.js:concat", "lib/js/lib/history/history.min.js:concat",
"lib/js/legacy/jquery/jquery-ui.min.js:concat", "lib/js/lib/jquery/jquery.ui.core.js:concat",
"lib/js/legacy/tiny_mce_33/jquery.tinymce.js:concat", "lib/js/lib/jquery/jquery.ui.datepicker.js:concat",
"lib/js/lib/jquery/jquery.ui.autocomplete.js:concat",
"lib/js/lib/tiny_mce_33/jquery.tinymce.js:concat",
"lib/js/lib/bootstrap.min.js:concat", "lib/js/lib/bootstrap.min.js:concat",
"lib/js/lib/sprintf.js", "lib/js/lib/sprintf.js",
"lib/js/core.min.js:concat", "lib/js/core.min.js:concat",
@ -130,19 +140,15 @@
"lib/js/legacy/utils/printElement.js", "lib/js/legacy/utils/printElement.js",
"lib/js/legacy/widgets/form/fields.js", "lib/js/legacy/widgets/form/fields.js",
"lib/js/wn/ui/dialog.js", "lib/js/wn/ui/dialog.js",
"lib/js/wn/ui/button.js",
"lib/js/legacy/widgets/dialog.js", "lib/js/legacy/widgets/dialog.js",
"lib/js/legacy/widgets/listing.js",
"lib/js/wn/ui/listing.js",
"lib/js/legacy/widgets/layout.js", "lib/js/legacy/widgets/layout.js",
"lib/js/legacy/widgets/tabbedpage.js", "lib/js/legacy/widgets/tabbedpage.js",
"lib/js/legacy/webpage/page_header.js", "lib/js/legacy/webpage/page_header.js",
"lib/js/legacy/widgets/select.js",
"lib/js/legacy/widgets/tags.js", "lib/js/legacy/widgets/tags.js",
"lib/js/legacy/widgets/export_query.js", "lib/js/legacy/widgets/export_query.js",
"lib/js/legacy/webpage/history.js",
"lib/js/legacy/webpage/search.js", "lib/js/legacy/webpage/search.js",
"lib/js/legacy/webpage/spinner.js", "lib/js/legacy/webpage/spinner.js",
"lib/js/legacy/webpage/freeze_page.js",
"lib/js/legacy/webpage/error_console.js", "lib/js/legacy/webpage/error_console.js",
"lib/js/legacy/webpage/loaders.js", "lib/js/legacy/webpage/loaders.js",
"lib/js/legacy/webpage/uploader.js", "lib/js/legacy/webpage/uploader.js",
@ -153,9 +159,8 @@
"lib/js/legacy/model/local_data.js", "lib/js/legacy/model/local_data.js",
"lib/js/legacy/model/doclist.js", "lib/js/legacy/model/doclist.js",
"lib/js/wn/ui/toolbar.min.js:concat", "lib/js/wn/ui/toolbar.min.js:concat",
"lib/js/legacy/webpage/body.js",
"lib/js/legacy/widgets/form/fields.js", "lib/js/legacy/widgets/form/fields.js",
"lib/js/legacy/widgets/form/form_container.js", "lib/js/legacy/widgets/form/form_dialog.js",
"lib/js/legacy/widgets/form/form_header.js", "lib/js/legacy/widgets/form/form_header.js",
"lib/js/legacy/widgets/form/form.js", "lib/js/legacy/widgets/form/form.js",
"lib/js/legacy/widgets/form/form_fields.js", "lib/js/legacy/widgets/form/form_fields.js",

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,8 @@
/* /*
* lib/css/legacy/body.css * lib/css/legacy/body.css
*/html { */
html {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
@ -10,7 +11,7 @@ body {
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
font-family: Arial, Helvetica, Sans; font-family: Arial, Helvetica, Sans;
font-size: 12px; font-size: 14px;
color: #000; color: #000;
background-color: #e2e2e2; background-color: #e2e2e2;
} }
@ -25,19 +26,22 @@ label {
} }
select, input, textarea { select, input, textarea {
border: 1px solid #AAA; border: 1px solid #ccc;
-moz-border-radius: 4px; -moz-border-radius: 4px;
-webkit-border-radius: 4px; -webkit-border-radius: 4px;
font-size: 13px; font-size: inherit;
padding: 4px; padding: 4px;
color: #222; color: #444;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
} }
textarea { textarea {
font-family: inherit; font-family: inherit;
height: 120px; height: 120px;
width: 90%; width: 90%;
font-size: 12px; font-size: inherit;
white-space: normal; white-space: normal;
} }
@ -100,8 +104,16 @@ div.fix_ff_cursor { overflow: auto; }
div.comment { color: #444; } div.comment { color: #444; }
.small {
font-size: 11px;
}
.help {
margin: 3px 0px;
color: #888;
}
div#body_div { div#body_div {
position: relative;
display: none; display: none;
padding-right: 7px; padding-right: 7px;
width: 900px; width: 900px;
@ -109,15 +121,40 @@ div#body_div {
margin-top: 56px; margin-top: 56px;
} }
footer { .content {
width: 900px; width: 900px;
margin: auto; margin-bottom: 30px;
}
.background-fade-in {
-webkit-transition: background 1s ease-in; /* property duration timing-function delay */
-moz-transition: background 1s ease-in;
-o-transition: background 1s ease-in;
transition: background 1s ease-in;
}
footer {
position: absolute;
bottom: 0px;
width: 100%;
} }
header .container { header .container {
width: 900px; width: 900px;
margin: auto; margin: auto;
} }
@media (max-width: 1200px) {
div#body_div, header .container, .content, #opened-page-selector, footer {
width: 900px;
}
}
@media (min-width: 1200px) {
div#body_div, header .container, .content, #opened-page-selector, footer {
width: 1100px;
}
}
div.no_script { div.no_script {
display: none; display: none;
} }
@ -131,7 +168,6 @@ div.loading_div {
display: none; display: none;
text-align: center; text-align: center;
padding: 2px; padding: 2px;
font-size: 12px;
border: 1px solid #FF4; border: 1px solid #FF4;
} }
@ -156,27 +192,18 @@ div.std-footer-item {
-moz-border-radius: 5px; -moz-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
} }
.gradient {
background: #ededed; /* Old browsers */
background: -moz-linear-gradient(top, #ededed 0%, #d1d1d1 47%, #b7b7b7 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ededed), color-stop(47%,#d1d1d1), color-stop(100%,#b7b7b7)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#b7b7b7',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* W3C */
}
.layout_wrapper, .layout-wrapper { .layout_wrapper, .layout-wrapper {
-moz-box-shadow: 1px 1px 8px #555; -moz-box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
-webkit-box-shadow: 1px 1px 8px #555; -webkit-box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
box-shadow: 1px 1px 8px #555; box-shadow: 0px 0px 6px rgba(0,0,0,0.3);
background-color: #fff; background-color: #fff;
padding: 15px; padding: 15px;
margin-bottom: 30px;
} }
.layout-wrapper-background { .layout-wrapper-background {
background-color: #f2f2f2 !important; background-color: #fafafa !important;
padding: 0px; padding: 0px;
} }
@ -185,7 +212,7 @@ div.std-footer-item {
float: left; float: left;
padding: 15px; padding: 15px;
background-color: #FFF; background-color: #FFF;
min-height: 450px; min-height: 600px;
-moz-box-shadow: 7px 0px 6px -2px #ddd; -moz-box-shadow: 7px 0px 6px -2px #ddd;
-webkit-box-shadow: 7px 0px 6px -2px #ddd; -webkit-box-shadow: 7px 0px 6px -2px #ddd;
box-shadow: 7px 0px 6px -2px #ddd; box-shadow: 7px 0px 6px -2px #ddd;
@ -194,10 +221,10 @@ div.std-footer-item {
.layout-side-section { .layout-side-section {
width: 22%; width: 22%;
/*float: right;*/ /*float: right;*/
color: #606060; color: #606060;
overflow-x: hidden; overflow-x: hidden;
padding: 15px; padding: 15px;
min-height: 450px; min-height: 600px;
} }
/* from bootstrap */ /* from bootstrap */
@ -232,17 +259,20 @@ div.std-footer-item {
.avatar-small { .avatar-small {
display: inline-block; display: inline-block;
min-width: 29px; width: 24px;
height: 20px;
vertical-align: middle;
overflow: hidden;
margin: 0px 3px;
} }
.avatar-small img { .avatar-small img {
height: 24px; width: 24px;
margin-bottom: -7px;
max-width: 24px;
} }
/* /*
* lib/css/legacy/messages.css * lib/css/legacy/messages.css
*/ */
/* FLOATING MESSAGE */ /* FLOATING MESSAGE */
.btn-img { cursor: pointer; } .btn-img { cursor: pointer; }
@ -291,9 +321,11 @@ div.notice {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
} }
/* /*
* lib/css/legacy/dialog.css * lib/css/legacy/dialog.css
*//***** Dialogs *******/ */
/***** Dialogs *******/
div.dialog_wrapper { div.dialog_wrapper {
position: absolute; position: absolute;
@ -371,9 +403,11 @@ div.dialog_row table td textarea {
font-size: 12px; font-size: 12px;
} }
/* /*
* lib/css/bootstrap/headings.css * lib/css/bootstrap/headings.css
*//* heading from bootstrap */ */
/* heading from bootstrap */
h1, h1,
h2, h2,
@ -434,9 +468,12 @@ h6 {
color: #999999; color: #999999;
text-transform: uppercase; text-transform: uppercase;
} }
/* /*
* lib/css/bootstrap/buttons.css * lib/css/bootstrap/buttons.css
*/.close { */
.close {
font-family: Helvetica, Sans;
float: right; float: right;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
@ -819,9 +856,11 @@ button.btn.small, input[type="submit"].btn.small {
.btn-small .caret { .btn-small .caret {
margin-top: 4px; margin-top: 4px;
} }
/* /*
* lib/css/bootstrap/navbar.css * lib/css/bootstrap/navbar.css
*/.nav { */
.nav {
margin-left: 0; margin-left: 0;
margin-bottom: 18px; margin-bottom: 18px;
list-style: none; list-style: none;
@ -1287,9 +1326,11 @@ button.btn.small, input[type="submit"].btn.small {
padding: 0px 20px; padding: 0px 20px;
} }
/* /*
* lib/css/bootstrap/dropdown.css * lib/css/bootstrap/dropdown.css
*/.dropdown { */
.dropdown {
position: relative; position: relative;
} }
.dropdown-toggle { .dropdown-toggle {
@ -1389,9 +1430,11 @@ button.btn.small, input[type="submit"].btn.small {
.dropdown.open .dropdown-menu { .dropdown.open .dropdown-menu {
display: block; display: block;
} }
/* /*
* lib/css/bootstrap/tooltip.css * lib/css/bootstrap/tooltip.css
*/.tooltip { */
.tooltip {
position: absolute; position: absolute;
z-index: 1020; z-index: 1020;
display: block; display: block;
@ -1557,16 +1600,18 @@ button.btn.small, input[type="submit"].btn.small {
.popover-content p, .popover-content ul, .popover-content ol { .popover-content p, .popover-content ul, .popover-content ol {
margin-bottom: 0; margin-bottom: 0;
} }
/* /*
* erpnext/startup/startup.css * erpnext/startup/startup.css
*/h1, h2, h3, h4, h5 { */
font-family: Tahoma, Arial, Verdana, sans-serif; h1, h2, h3, h4, h5 {
font-family: "Lato", Helvetica, "Helvetica Neue", sans-serif;
font-weight: bold; font-weight: bold;
} }
body { body {
font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-family: "Lato", Helvetica, "Helvetica Neue", sans-serif;
font-size: 12px; font-size: 13px;
} }
span, div, td, input, textarea, button, select { span, div, td, input, textarea, button, select {
@ -1574,7 +1619,11 @@ span, div, td, input, textarea, button, select {
} }
body { body {
background: url(../images/stripedbg.png) repeat; background: url(../images/redbeech.jpg) repeat;
}
.small {
font-size: 11.5px;
} }
.erpnext-footer { .erpnext-footer {
@ -1644,9 +1693,11 @@ body {
max-width: 260px !important; max-width: 260px !important;
} }
/* /*
* erpnext/website/css/website.css * erpnext/website/css/website.css
*/.layout_wrapper { */
.layout_wrapper {
padding: 20px; padding: 20px;
} }
@ -1757,4 +1808,4 @@ footer a:hover {
.web-footer-menu ul li:last-child { .web-footer-menu ul li:last-child {
border-right: 0px solid #777 !important; border-right: 0px solid #777 !important;
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,629 +0,0 @@
/*
* lib/css/legacy/body.css
*/html {
margin: 0px;
padding: 0px;
}
body {
margin: 0px;
padding: 0px;
font-family: Arial, Helvetica, Sans;
font-size: 12px;
color: #000;
}
/* heading from bootstrap */
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-weight: bold;
color: #333333;
text-rendering: optimizelegibility;
margin-bottom: 0.3em;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small {
font-weight: normal;
color: #999999;
}
h1 {
font-size: 30px;
line-height: 36px;
}
h1 small {
font-size: 18px;
}
h2 {
font-size: 24px;
line-height: 36px;
}
h2 small {
font-size: 18px;
}
h3 {
line-height: 27px;
font-size: 18px;
}
h3 small {
font-size: 14px;
}
h4, h5, h6 {
line-height: 18px;
}
h4 {
font-size: 14px;
}
h4 small {
font-size: 12px;
}
h5 {
font-size: 12px;
}
h6 {
font-size: 11px;
color: #999999;
text-transform: uppercase;
}
pre { margin: 0px; padding: 0px; }
button { margin: 2px; margin-left: 0px; }
label {
padding-top: 15px;
color: #404040;
}
select, input, textarea {
border: 1px solid #AAA;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
font-size: 13px;
padding: 4px;
color: #222;
}
textarea {
font-family: inherit;
height: 120px;
width: 90%;
font-size: 12px;
white-space: normal;
}
table { padding: 0px; border-collapse: 'collapse'}
td {
padding:0px;
margin: 0px;
vertical-align: top;
}
p {
margin: 0px 0px 9px 0px;
line-height: 1.5em;
}
li {
line-height: 1.5em;
}
a:active { outline:none; }
:focus { -moz-outline-style:none; }
table.simpletable { border-collapse: collapse; margin-bottom: 10px;}
table.simpletable td {border: 1pt solid #000; vertical-align: top; padding: 2px; }
div.fix_ff_cursor { overflow: auto; }
/* --- Layout --- */
div.comment { color: #444; }
div#body_div {
position: relative;
display: none;
margin-top: 56px;
padding-right: 7px;
}
div.no_script {
display: none;
}
div.loading_div {
position: absolute;
background-color: #FFFFCC;
z-index: 1999;
right: 5px;
width: 90px;
display: none;
text-align: center;
padding: 2px;
font-size: 12px;
border: 1px solid #FF4;
}
div#head_div { background-color: #FFF; }
#head_banner { background-color: #FFF; }
.link_type {
padding:2px;
color: #00b;
text-decoration: underline;
cursor: pointer;
}
.link_type:hover {
color: #fff !important;
background-color: #07b;
text-decoration: none;
}
div.std-footer {
margin: 13px 0px;
border-top: 1px solid #AAA;
padding: 13px;
}
div.std-footer-item {
margin: 0px 13px 13px 0px;
}
.shadow {
-moz-box-shadow: 0px 2px 2px #888;
-webkit-box-shadow: 0px 2px 2px #888;
box-shadow: 0px 2px 2px #888;
}
.round {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.gradient {
background: #ededed; /* Old browsers */
background: -moz-linear-gradient(top, #ededed 0%, #d1d1d1 47%, #b7b7b7 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ededed), color-stop(47%,#d1d1d1), color-stop(100%,#b7b7b7)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#b7b7b7',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #ededed 0%,#d1d1d1 47%,#b7b7b7 100%); /* W3C */
}
.header-gradient {
background: #84827c; /* Old browsers */
background: -moz-linear-gradient(top, #84827c 0%, #27211c 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#84827c), color-stop(100%,#27211c)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #84827c 0%,#27211c 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #84827c 0%,#27211c 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, #84827c 0%,#27211c 100%); /* IE10+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#84827c', endColorstr='#27211c',GradientType=0 ); /* IE6-9 */
background: linear-gradient(top, #84827c 0%,#27211c 100%); /* W3C */
color: #FFF;
}
.layout_wrapper {
padding: 15px;
-moz-box-shadow: 1px 1px 6px #AAA;
-webkit-box-shadow: 1px 1px 6px #AAA;
box-shadow: 1px 1px 6px #AAA;
background-color: #FFF;
}
/* from bootstrap */
.container {
margin-left: auto;
margin-right: auto;
zoom: 1;
}
.container:before, .container:after {
display: table;
content: "";
zoom: 1;
}
.container:after {
clear: both;
}
/*
* lib/css/legacy/menus.css
*/
/******** Menus - menu.js ************/
ul.menu_toolbar {
z-index: 30;
padding: 0px;
margin: 0px;
margin-top: 1px;
}
ul.menu_toolbar li {
list-style: none;
margin: 0px;
float: left;
}
.top_menu {
margin: 0px;
padding: 4px;
cursor: pointer;
color: #FFF;
margin-right: 8px;
}
.top_menu_mo {
background-color: #000;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
div.menu_toolbar_dropdown {
position: absolute;
margin-top: 4px;
margin-left: 8px;
width: 140px;
background-color: #FFF;
color: #000;
display: none;
border: 2px solid #333;
z-index: 31;
overflow-y: auto;
overflow-x: hidden;
}
div.dd_item {
cursor: pointer;
padding: 4px;
background-color: #FFF;
}
div.dd_item_mo { background-color: #FE8; }
/*
* lib/css/legacy/messages.css
*/
/* FLOATING MESSAGE */
.btn-img { cursor: pointer; }
div.fetching { color: #888; text-align:right; }
div.notice {
postion: absolute;
background-color: #000;
-moz-border-radius: 5px; -webkit-border-radius: 5px;
opacity: 0.6;
right: 0;
top: 0;
margin-top: 8px;
z-index: -1;
padding: 8px;
}
/** help **/
.info-box {
background-color: #F8F8F8;
border: 1px solid #CCCCCC;
border-radius: 3px 3px 3px 3px;
line-height: 1.6em;
overflow: auto;
padding: 6px 10px;
margin-bottom: 9px;
}
.help_box, .help-box {
background-color:#FFC;
font-size: 13px;
color: #864;
padding: 7px;
margin: 11px 0px;
border: 1px solid #EEB;
}
.help_box_big {
background-color:#FFC;
color: #864;
padding: 7px;
margin: 7px 0px;
border: 1px solid #EEB;
text-align: center;
font-size: 14px;
}
/*
* lib/css/legacy/dialog.css
*//***** Dialogs *******/
div.dialog_wrapper {
position: absolute;
width: 440px;
display: none;
z-index: 90;
background-color: #FFF;
border: 3px solid #222;
box-shadow:1px 1px 5px #777;
-moz-box-shadow: 1px 1px 5px #777;
-webkit-box-shadow: 1px 1px 5px #777;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
div.dialog_head {
height: 22px;
padding: 4px;
background-color: #222;
color: #FFF;
}
div.dialog_body {
padding: 8px 4px 16px 4px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
div.dialog_back {
position: fixed;
display: none;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
background-color: #EEE;
opacity: 0.6;
z-index: 50;
text-align: center;
}
div.dialog_message {
display: none;
position: absolute;
width: 250px;
font-size: 12px;
z-index: 91;
background-color:#FFF;
padding: 12px;
border: 1px solid #444;
}
div.dialog_row {
padding: 8px 8px 0px 8px;
}
div.dialog_row table {
width: 100%;
}
div.dialog_row table td {
}
div.dialog_row input[type="text"], div.dialog_row input[type="password"], div.dialog_row textarea, div.dialog_row select {
width: 80%;
font-size: 14px;
}
div.dialog_row table td textarea {
width: 80%;
height: 200px;
font-size: 12px;
}
/*
* lib/css/legacy/bootstrap-buttons.css
*/.btn.danger,
.alert-message.danger,
.btn.danger:hover,
.alert-message.danger:hover,
.btn.error,
.alert-message.error,
.btn.error:hover,
.alert-message.error:hover,
.btn.success,
.alert-message.success,
.btn.success:hover,
.alert-message.success:hover,
.btn.info,
.alert-message.info,
.btn.info:hover,
.alert-message.info:hover {
color: #ffffff;
}
.btn .close, .alert-message .close {
font-family: Arial, sans-serif;
line-height: 18px;
}
.btn.danger,
.alert-message.danger,
.btn.error,
.alert-message.error {
background-color: #c43c35;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ee5f5b), color-stop(100%, #c43c35));
background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
background-image: linear-gradient(top, #ee5f5b, #c43c35);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-color: #c43c35 #c43c35 #882a25;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}
.btn.success, .alert-message.success {
background-color: #57a957;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#62c462), to(#57a957));
background-image: -moz-linear-gradient(top, #62c462, #57a957);
background-image: -ms-linear-gradient(top, #62c462, #57a957);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #62c462), color-stop(100%, #57a957));
background-image: -webkit-linear-gradient(top, #62c462, #57a957);
background-image: -o-linear-gradient(top, #62c462, #57a957);
background-image: linear-gradient(top, #62c462, #57a957);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-color: #57a957 #57a957 #3d773d;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}
.btn.info, .alert-message.info {
background-color: #339bb9;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#5bc0de), to(#339bb9));
background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);
background-image: -ms-linear-gradient(top, #5bc0de, #339bb9);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #5bc0de), color-stop(100%, #339bb9));
background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);
background-image: -o-linear-gradient(top, #5bc0de, #339bb9);
background-image: linear-gradient(top, #5bc0de, #339bb9);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-color: #339bb9 #339bb9 #22697d;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}
.btn {
cursor: pointer;
display: inline-block;
background-color: #e6e6e6;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
padding: 5px 14px 6px;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
color: #333;
font-size: 11px;
line-height: normal;
border: 1px solid #ccc;
border-bottom-color: #bbb;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-webkit-transition: 0.1s linear all;
-moz-transition: 0.1s linear all;
-ms-transition: 0.1s linear all;
-o-transition: 0.1s linear all;
transition: 0.1s linear all;
}
.btn:hover {
background-position: 0 -15px;
color: #333;
text-decoration: none;
}
.btn:focus {
outline: 1px dotted #666;
}
.btn.primary {
color: #ffffff;
background-color: #0064cd;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
background-image: -moz-linear-gradient(top, #049cdb, #0064cd);
background-image: -ms-linear-gradient(top, #049cdb, #0064cd);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);
background-image: -o-linear-gradient(top, #049cdb, #0064cd);
background-image: linear-gradient(top, #049cdb, #0064cd);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-color: #0064cd #0064cd #003f81;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}
.btn.active, .btn :active {
-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn.disabled {
cursor: default;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
filter: alpha(opacity=65);
-khtml-opacity: 0.65;
-moz-opacity: 0.65;
opacity: 0.65;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.btn[disabled] {
cursor: default;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
filter: alpha(opacity=65);
-khtml-opacity: 0.65;
-moz-opacity: 0.65;
opacity: 0.65;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.btn.large {
font-size: 15px;
line-height: normal;
padding: 9px 14px 9px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
.btn.small {
padding: 5px 7px 5px;
font-size: 11px;
}
:root .alert-message, :root .btn {
border-radius: 0 \0;
}
button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
padding: 0;
border: 0;
}
/* CLose */
.close {
float: right;
color: #000000;
font-size: 15px;
font-weight: bold;
line-height: 13.5px;
margin-bottom: -2px;
text-shadow: 0 1px 0 #ffffff;
filter: alpha(opacity=25);
-khtml-opacity: 0.25;
-moz-opacity: 0.25;
opacity: 0.25;
text-decoration: none;
}
.close:hover {
color: #000000;
text-decoration: none;
filter: alpha(opacity=40);
-khtml-opacity: 0.4;
-moz-opacity: 0.4;
opacity: 0.4;
cursor: pointer;
font-weight: bold;
}

View File

@ -1,411 +0,0 @@
# Module Def, Accounts
[
# These values are common in all dictionaries
{
'creation': '2010-09-25 10:50:37',
'docstatus': 0,
'modified': '2011-12-07 16:18:28',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Module Def Role
{
'doctype': 'Module Def Role',
'name': '__common__',
'parent': 'Accounts',
'parentfield': 'roles',
'parenttype': 'Module Def'
},
# These values are common for all Module Def Item
{
'doctype': 'Module Def Item',
'name': '__common__',
'parent': 'Accounts',
'parentfield': 'items',
'parenttype': 'Module Def'
},
# These values are common for all Module Def
{
'disabled': 'No',
'doctype': u'Module Def',
'doctype_list': 'GL Mapper, Journal Voucher\nGL Mapper, Payable Voucher\nGL Mapper, Receivable Voucher\nDocType Label, Receivable Voucher\nDocType Label, Payable Voucher',
'file_list': 'finance.gif,FileData/00210',
'is_hidden': 'No',
'last_updated_date': '2010-12-08 10:13:30',
'module_desc': 'Data about your payables, receivables and books of accounts',
'module_icon': 'Accounts.gif',
'module_label': 'Accounts',
'module_name': 'Accounts',
'module_seq': 5,
'name': '__common__'
},
# Module Def, Accounts
{
'doctype': u'Module Def',
'name': 'Accounts'
},
# Module Def Item
{
'click_function': "show_chart_browser('Accounts Browser','Account')",
'description': 'Manage your accounts',
'display_name': 'Chart of Accounts',
'doc_name': 'Accounts Browser',
'doc_type': 'Pages',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'click_function': "show_chart_browser('Accounts Browser','Cost Center')",
'description': 'Manage your cost centers',
'display_name': 'Chart of Cost Centers',
'doc_name': 'Accounts Browser',
'doc_type': 'Pages',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Regular journal entry',
'display_name': 'Journal Voucher',
'doc_name': 'Journal Voucher',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'voucher_type\nvoucher_date\nfiscal_year\ntotal_debit\ntotal_credit'
},
# Module Def Item
{
'description': 'Outgoing Invoice to your customers',
'display_name': 'Sales Invoice',
'doc_name': 'Receivable Voucher',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'voucher_date\ndue_date\ndebit_to\ngrand_total\noutstanding_amount'
},
# Module Def Item
{
'description': 'Incoming invoice from your service providers',
'display_name': 'Purchase Invoice',
'doc_name': 'Payable Voucher',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'voucher_date\ncredit_to\nbill_no\ngrand_total\noutstanding_amount'
},
# Module Def Item
{
'description': 'Lease Agreement for Vehicles',
'display_name': 'Lease Agreement',
'doc_name': 'Lease Agreement',
'doc_type': 'Forms',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Profit & Loss and Balance Sheet builder',
'display_name': 'Financial Statements',
'doc_name': 'Financial Statements',
'doc_type': 'Pages',
'doctype': 'Module Def Item',
'icon': 'table.gif'
},
# Module Def Item
{
'description': 'Update your actual clearance dates and find out if bank ledger tallies with your bank statement.',
'display_name': 'Bank Reconciliation',
'doc_name': 'Bank Reconciliation',
'doc_type': 'Single DocType',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Link your invoices and payment vouchers to clear/update outstanding amount',
'display_name': 'Internal Reconciliation',
'doc_name': 'Internal Reconciliation',
'doc_type': 'Single DocType',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'TDS Payment',
'doc_name': 'TDS Payment',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'TDS Return Acknowledgement',
'doc_name': 'TDS Return Acknowledgement',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Form 16A',
'doc_name': 'Form 16A',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Account closing entry (Profit Booking) on any date',
'display_name': 'Period Closing Voucher',
'doc_name': 'Period Closing Voucher',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'You can export balance of selected ledgers within a specific period',
'display_name': 'Ledger Balance Export',
'doc_name': 'Ledger Balance Export',
'doc_type': 'Single DocType',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Track C-Form received from customers',
'display_name': 'C-Form',
'doc_name': 'C-Form',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'General Ledger',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Accounts Receivable',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Accounts Payable',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Bank Reconciliation Statement',
'doc_name': 'Journal Voucher Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Trial Balance',
'doc_name': 'Account',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Sales Register',
'doc_name': 'Receivable Voucher',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Purchase Register',
'doc_name': 'Payable Voucher',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Bank Clearance report',
'doc_name': 'Journal Voucher Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Monthly Ledger Summary Report',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Collection Report',
'doc_name': 'Journal Voucher Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Total amout collection for a period - Customerwise',
'doc_name': 'Account',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Payment Report',
'doc_name': 'Journal Voucher Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Itemwise Sales Register',
'doc_name': 'RV Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Itemwise Purchase Register',
'doc_name': 'PV Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Cost Center wise Expense',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'TDS Return',
'doc_name': 'TDS Payment Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Budget Variance Report',
'doc_name': 'Budget Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Payment Receipt Report',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Track total commission given to your Business Associate',
'display_name': 'Business Associate Commission Report',
'doc_name': 'Receivable Voucher',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Lease Agreement List',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Lease Monthly Future Installment Inflows',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Lease Overdue Age Wise',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Lease Overdue List',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Lease Receipts Client Wise',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Lease Yearly Future Installment Inflows',
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Voucher wise tax details',
'doc_name': 'RV Tax Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Accounts Manager'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Accounts User'
}
]

View File

@ -3,25 +3,26 @@
# These values are common in all dictionaries # These values are common in all dictionaries
{ {
'creation': '2011-10-19 14:27:47', 'creation': '2011-12-21 11:08:55',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-10-19 14:29:45', 'modified': '2012-03-20 12:29:49',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all Print Format # These values are common for all Print Format
{ {
'doc_type': u'Receivable Voucher',
'doctype': 'Print Format', 'doctype': 'Print Format',
'html': '<html>\n<head>\n<!--Other charges function-->\n<script>\n var make_row = function(title,val,bold){\n var bstart = \'<b>\'; var bend = \'</b>\';\n return \'<tr><td style="width:50%">\'+(bold?bstart:\'\')+title+(bold?bend:\'\')+\'</td>\'\n +\'<td style="width:20%">\'+doc.currency+\'</td>\'\n +\'<td style="width:30%;text-align:right">\'+(val?val:\'0.00\')+\'</td>\'\n +\'</tr>\'\n }\n var make_row1 = function(title,val,bold){\n var bstart = \'<b>\'; var bend = \'</b>\';\n \n return \'<tr style="font-family:courier new; line-height:150%"><td style="width:50%">\'+(bold?bstart:\'\')+title+(bold?bend:\'\')+\'</td>\'\n +\'<td style="width:50%;text-align:right">\'+(bold?bstart:\'\')+(val?val:\'0.00\')+(bold?bend:\'\')+\'</td>\'\n +\'</tr>\'\n }\n\nfunction get_letter_head() {\n\t// add letter head\n\tvar cp = locals[\'Control Panel\'][\'Control Panel\'];\n\tif(doc.letter_head)\n\t\tvar lh= cstr(_p.letter_heads[doc.letter_head]);\n\telse if(cp.letter_head)\n\t\tvar lh= cp.letter_head;\n\telse \n\t\tvar lh= \'\';\n\t\t\n\treturn lh;\n}\n\n function get_tax_details(){\n \n var cl = getchildren(\'RV Tax Detail\',doc.name,\'other_charges\');\n var out = \'\';\n\n// if(cl.length){\n out += \'<div><table style="float: right;">\';\n for(var i=0;i<cl.length;i++){\n out += make_row1(cl[i].description,fmt_money(convert_rate(cl[i].tax_amount)),0);\n }\n\n out += make_row1(\'TOTAL\',fmt_money(doc.grand_total),1);\n // }\n out +=\'</table></div>\';\n return out;\n }\n function get_other_charges(){\n var out =\'\';\n out += \'<div><table cssClass="noborder" style="width:100%">\';\n \n out += make_row(\'Net Total\',fmt_money(convert_rate(doc.net_total)),1)\n +make_row(\'Total Taxes\',fmt_money(convert_rate(doc.other_charges_total)),0)\n +make_row(\'Grand Total\',fmt_money(convert_rate(doc.grand_total)),1)\n +make_row(\'Rounded Total\',fmt_money(convert_rate(doc.rounded_total)),1)\n +make_row(\'Outstanding Amount\',fmt_money(convert_rate(doc.outstanding_amount)),1)\n out += \'</table></div>\';\n return out;\n }\n\n \n function convert_rate(val){ \n var new_val = flt(val)/flt(doc.conversion_rate);\n return new_val;\n }\n \n</script>\n</head>\n<body>\n\n<div><script>get_letter_head()</script></div>\n<table width="100%" style="font-family: courier new; line-height:200%">\n<tr>\n<td align="left">NO: <script>doc.name</script></td>\n<td align="right">DATE: <script>date.str_to_user(doc.voucher_date)</script></td>\n</tr>\n<tr>\n<td>M/s <script>doc.contact_display</script></td>\n</tr>\n</table>\n<!--Item Table-->\n<div>\n <script>\n var t = print_table(\'Receivable Voucher\', doc.name, \'entries\', \'RV Detail\', [\'description\',\'qty\',\'basic_rate\',\'amount\'], [\'ITEM\', \'QTY\',\'RATE\',\'AMOUNT\'], [\'35%\',\'20%\',\'20%\',\'25%\'])\n if(t.appendChild) {\n // single\n out = t.innerHTML.replace(/border: 1px/gi,\'border: 0px\').replace(/style="/gi,\'style="font-family:courier new;line-height:150%;\');\n }\n else {//multiple\n out = \'<table class="None" border="0px" width="100%" style="border:0px; font-family:courier-new">\';\n\n for(var i=0;i<t.length;i++) \n {\n\t\tif(i==0)\n\t\t{\n\t\t\tout+=\'<tr>\'+t[i].childNodes[0].childNodes[0].childNodes[0].innerHTML.replace(/style="border: 1px solid rgb\\(0, 0, 0\\);/gi,\'style="font-family:courier new;\')+\'</tr>\'\n\t\t}\n\t\tout+=\'<tr>\'+t[i].childNodes[0].childNodes[0].childNodes[1].innerHTML.replace(/style="border: 1px solid rgb\\(0, 0, 0\\);/gi,\'style="font-family:courier new;\')+\'</tr>\'\n }\n\tout += \'</table>\'\n }\n out;\n </script>\n\n</div>\n\n<!--Tax table-->\n<div><script>get_tax_details();</script>\n </table>\n</div>\n\n<br>\n<table style="font-family:courier new;">\n<tr><td><b><script>doc.terms</script></b></td></tr>\n<tr><td nowrap><b>For <script>doc.company</script></b></td></tr>\n<tr><td>&nbsp;</td></tr>\n<tr><td nowrap><b>Signatory</b></td></tr>\n</table>\n</body>\n</html>', 'html': u'<html>\n<head>\n<!--Other charges function-->\n<script>\nvar make_row = function(title,val,bold){\nvar bstart = \'<b>\'; var bend = \'</b>\';\nreturn \'<tr><td style="width:50%">\'+(bold?bstart:\'\')+title+(bold?bend:\'\')+\'</td>\'\n +\'<td style="width:20%">\'+doc.currency+\'</td>\'\n +\'<td style="width:30%;text-align:right">\'+(val?val:\'0.00\')+\'</td>\'\n +\'</tr>\'\n}\nvar make_row1 = function(title,val,bold){\n var bstart = \'<b>\'; var bend = \'</b>\';\n \n return \'<tr style="font-family:courier new; line-height:150%"><td style="width:50%">\'+(bold?bstart:\'\')+title+(bold?bend:\'\')+\'</td>\'\n +\'<td style="width:50%;text-align:right">\'+(bold?bstart:\'\')+(val?val:\'0.00\')+(bold?bend:\'\')+\'</td>\'\n +\'</tr>\'\n}\n\nfunction get_letter_head() {\n // add letter head\n var cp = wn.boot.control_panel;\n if(doc.letter_head)\n var lh= cstr(_p.letter_heads[doc.letter_head]);\n else if(cp.letter_head)\n var lh= cp.letter_head;\n else \n var lh= \'\';\n \n return lh;\n}\n\nfunction get_tax_details(){\n var cl = getchildren(\'RV Tax Detail\',doc.name,\'other_charges\');\n var out = \'\';\n\n out += \'<div><table style="float: right;">\';\n for(var i=0;i<cl.length;i++){\n if(cl[i].tax_amount) {\n out += make_row1(cl[i].description,fmt_money(convert_rate(cl[i].tax_amount)),0);\n }\n }\n out += make_row1(\'TOTAL\',doc.currency + " " + fmt_money(convert_rate(doc.grand_total)),1);\n out +=\'</table></div>\';\n return out;\n}\n\nfunction convert_rate(val){ \n var new_val = flt(val)/flt(doc.conversion_rate);\n return new_val;\n}\n</script>\n<style>\n table, td, tr, div, span {\n font-family: courier new;\n line-height: 200%;\n }\n</style>\n</head>\n\n<body>\n<table width="100%" style="font-family: courier new; line-height:200%">\n<tr>\n <td align="left">NO: <script>doc.name</script></td>\n <td align="right">DATE: <script>date.str_to_user(doc.posting_date)</script></td>\n</tr>\n<tr>\n <td>M/s <script>doc.contact_display</script></td>\n</tr>\n</table>\n<!--Item Table-->\n<div>\n<script>\nvar t = print_table(\'Receivable Voucher\', doc.name, \'entries\', \'RV Detail\',\n [\'description\',\'qty\',\'export_rate\',\'export_amount\'], [\'ITEM\', \'QTY\',\'RATE\',\'AMOUNT\'],\n [\'35%\',\'20%\',\'20%\',\'25%\']);\nif(t.appendChild) { // single\n out = t.innerHTML.replace(/style="/gi,\'style="font-family:courier new;line-height:150%;\');\n} else { //multiple\n out = \'<table class="None" border="0px" width="100%" style="border:0px; font-family:courier-new">\';\n\n for(var i=0;i<t.length;i++) {\n if(i==0) {\n out += \'<tr>\' + t[i].childNodes[0].childNodes[0].childNodes[0].innerHTML\n .replace(/style="border: 1px solid rgb\\(0, 0, 0\\);/gi,\'style="font-family:courier new;\')\n + \'</tr>\';\n }\n out += \'<tr>\' + t[i].childNodes[0].childNodes[0].childNodes[1].innerHTML\n .replace(/style="border: 1px solid rgb\\(0, 0, 0\\);/gi,\'style="font-family:courier new;\')\n + \'</tr>\';\n }\n out += \'</table>\';\n}\nout;\n</script>\n</div>\n<!--Tax table-->\n<div><script>get_tax_details();</script></div><br />\n<table style="font-family:courier new;">\n <tr><td><b><script>doc.terms</script></b></td></tr>\n <tr><td nowrap><b>For <script>doc.company</script></b></td></tr>\n <tr><td>&nbsp;</td></tr>\n <tr><td nowrap><b>Signatory</b></td></tr>\n</table>\n</body>\n</html>\n',
'module': 'Accounts', 'module': u'Accounts',
'name': '__common__', 'name': '__common__',
'standard': 'Yes' 'standard': u'Yes'
}, },
# Print Format, POS Invoice # Print Format, POS Invoice
{ {
'doctype': 'Print Format', 'doctype': 'Print Format',
'name': 'POS Invoice' 'name': u'POS Invoice'
} }
] ]

View File

@ -1,26 +0,0 @@
# Role, Accounts Manager
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:08:51',
'docstatus': 0,
'modified': '2009-03-19 14:57:46',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Role
{
'doctype': 'Role',
'module': 'Accounts',
'name': '__common__',
'role_name': 'Accounts Manager'
},
# Role, Accounts Manager
{
'doctype': 'Role',
'name': 'Accounts Manager'
}
]

View File

@ -1,26 +0,0 @@
# Role, Accounts User
[
# These values are common in all dictionaries
{
'creation': '2010-08-08 17:08:51',
'docstatus': 0,
'modified': '2010-04-08 12:05:21',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Role
{
'doctype': 'Role',
'module': 'Accounts',
'name': '__common__',
'role_name': 'Accounts User'
},
# Role, Accounts User
{
'doctype': 'Role',
'name': 'Accounts User'
}
]

View File

@ -18,6 +18,11 @@ import webnotes
from webnotes.utils import flt from webnotes.utils import flt
from webnotes.model.code import get_obj from webnotes.model.code import get_obj
install_docs = [
{"doctype":"Role", "name":"Accounts Manager"},
{"doctype":"Role", "name":"Accounts User"}
]
@webnotes.whitelist() @webnotes.whitelist()
def get_default_bank_account(): def get_default_bank_account():
""" """

View File

@ -560,10 +560,12 @@ def send_notification(new_rv):
<table cellspacing= "5" cellpadding="5" width = "100%%"> <table cellspacing= "5" cellpadding="5" width = "100%%">
<tr> <tr>
<td width = "50%%"><b>Customer</b><br>%s<br>%s</td> <td width = "50%%"><b>Customer</b><br>%s<br>%s</td>
<td width = "50%%">Invoice Date: %s<br>Due Date: %s</td> <td width = "50%%">Invoice Date : %s<br>Invoice Period : %s to %s <br>Due Date : %s</td>
</tr> </tr>
</table> </table>
''' % (com, new_rv.doc.name, new_rv.doc.customer, new_rv.doc.address_display, new_rv.doc.posting_date, new_rv.doc.due_date) ''' % (com, new_rv.doc.name, new_rv.doc.customer, new_rv.doc.address_display, getdate(new_rv.doc.posting_date).strftime("%d-%m-%Y"), \
getdate(add_days(add_months(new_rv.doc.posting_date, -1), 1)).strftime("%d-%m-%Y"), getdate(new_rv.doc.posting_date).strftime("%d-%m-%Y"),\
getdate(new_rv.doc.due_date).strftime("%d-%m-%Y"))
tbl = '''<table border="1px solid #CCC" width="100%%" cellpadding="0px" cellspacing="0px"> tbl = '''<table border="1px solid #CCC" width="100%%" cellpadding="0px" cellspacing="0px">
@ -596,10 +598,10 @@ def send_notification(new_rv):
</table> </table>
</td> </td>
</tr> </tr>
<tr><td>Terms:</td></tr> <tr><td>Terms and Conditions:</td></tr>
<tr><td>%s</td></tr> <tr><td>%s</td></tr>
</table> </table>
''' % (new_rv.doc.net_total, new_rv.doc.total_tax,new_rv.doc.grand_total, new_rv.doc.in_words,new_rv.doc.terms) ''' % (new_rv.doc.net_total, new_rv.doc.other_charges_total,new_rv.doc.grand_total, new_rv.doc.in_words,new_rv.doc.terms)
msg = hd + tbl + totals msg = hd + tbl + totals

View File

@ -0,0 +1,34 @@
wn.doclistviews['Journal Voucher'] = wn.views.ListView.extend({
init: function(d) {
this._super(d);
this.fields = this.fields.concat([
'`tabJournal Voucher`.voucher_type',
'`tabJournal Voucher`.remark',
'`tabJournal Voucher`.total_debit'
]);
this.stats = this.stats.concat(['voucher_type']);
},
prepare_data: function(data) {
this._super(data);
if(!data.remark) data.remark = '';
if(data.remark.length> 30) {
data.remark = '<span title="'+data.remark+'">' + data.remark.substr(0,30)
+ '...</span>';
}
},
columns: [
{width: '5%', content:'avatar'},
{width: '3%', content:'docstatus'},
{width: '12%', content:'name'},
{width: '15%', content:'voucher_type'},
{width: '38%', content:'tags+remark', css: {'color':'#aaa'}},
{
width: '18%',
content: function(parent, data) {
$(parent).html(sys_defaults.currency + ' ' + fmt_money(data.total_debit))
},
css: {'text-align':'right'}
},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
],
});

View File

@ -17,8 +17,8 @@
cur_frm.cscript.tname = "PV Detail"; cur_frm.cscript.tname = "PV Detail";
cur_frm.cscript.fname = "entries"; cur_frm.cscript.fname = "entries";
cur_frm.cscript.other_fname = "purchase_tax_details"; cur_frm.cscript.other_fname = "purchase_tax_details";
$import(Purchase Other Charges) wn.require('erpnext/buying/doctype/purchase_other_charges/purchase_other_charges.js');
$import(Purchase Common) wn.require('erpnext/buying/doctype/purchase_common/purchase_common.js');
// On Load // On Load
// -------- // --------
@ -162,7 +162,7 @@ cur_frm.cscript.is_opening = function(doc, dt, dn) {
// Recalculate Button // Recalculate Button
// ------------------- // -------------------
cur_frm.cscript['Recalculate'] = function(doc, dt, dn) { cur_frm.cscript['Recalculate'] = function(doc, cdt, cdn) {
cur_frm.cscript['Calculate Tax'](doc,cdt,cdn); cur_frm.cscript['Calculate Tax'](doc,cdt,cdn);
calc_total_advance(doc,cdt,cdn); calc_total_advance(doc,cdt,cdn);
} }

View File

@ -123,7 +123,10 @@ class DocType(TransactionBase):
def get_pv_details(self, arg): def get_pv_details(self, arg):
import json import json
item_det = sql("select item_name, brand, description, item_group,purchase_account,cost_center from tabItem where name=%s",arg,as_dict=1) item_det = sql("select item_name, brand, description, item_group,purchase_account,cost_center, last_purchase_rate from tabItem where name=%s",arg,as_dict=1)
lpr = item_det and flt(item_det[0]['last_purchase_rate']) or 0
import_lpr = lpr / flt(self.doc.conversion_rate) or 1
tax = sql("select tax_type, tax_rate from `tabItem Tax` where parent = %s" , arg) tax = sql("select tax_type, tax_rate from `tabItem Tax` where parent = %s" , arg)
t = {} t = {}
for x in tax: t[x[0]] = flt(x[1]) for x in tax: t[x[0]] = flt(x[1])
@ -132,13 +135,17 @@ class DocType(TransactionBase):
'brand' : item_det and item_det[0]['brand'] or '', 'brand' : item_det and item_det[0]['brand'] or '',
'description' : item_det and item_det[0]['description'] or '', 'description' : item_det and item_det[0]['description'] or '',
'item_group' : item_det and item_det[0]['item_group'] or '', 'item_group' : item_det and item_det[0]['item_group'] or '',
'rate' : 0.00, 'rate' : lpr,
'purchase_ref_rate' : lpr,
'import_ref_rate' : import_lpr,
'import_rate' : import_lpr,
'qty' : 0.00, 'qty' : 0.00,
'amount' : 0.00, 'amount' : 0.00,
'expense_head' : item_det and item_det[0]['purchase_account'] or '', 'expense_head' : item_det and item_det[0]['purchase_account'] or '',
'cost_center' : item_det and item_det[0]['cost_center'] or '', 'cost_center' : item_det and item_det[0]['cost_center'] or '',
'item_tax_rate' : json.dumps(t) 'item_tax_rate' : json.dumps(t)
} }
return ret return ret

View File

@ -0,0 +1,32 @@
// render
wn.doclistviews['Receivable Voucher'] = wn.views.ListView.extend({
init: function(d) {
this._super(d)
this.fields = this.fields.concat([
"`tabReceivable Voucher`.customer",
"ifnull(`tabReceivable Voucher`.outstanding_amount,0) as outstanding_amount",
"ifnull(`tabReceivable Voucher`.grand_total,0) as grand_total",
"`tabReceivable Voucher`.currency",
"ifnull(`tabReceivable Voucher`.grand_total_export,0) as grand_total_export"
]);
},
prepare_data: function(data) {
this._super(data);
data.paid = flt((data.grand_total - data.outstanding_amount) / data.grand_total * 100, 2);
},
columns: [
{width: '5%', content:'avatar'},
{width: '3%', content:'docstatus'},
{width: '15%', content:'name'},
{width: '37%', content:'tags+customer', css: {color:'#aaa'}},
{
width: '18%',
content: function(parent, data) {
$(parent).html(data.currency + ' ' + fmt_money(data.grand_total_export))
},
css: {'text-align':'right'}
},
{width: '10%', content: 'paid', type:'bar-graph', label:'Paid'},
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
]
});

View File

@ -22,9 +22,10 @@ cur_frm.cscript.sales_team_fname = "sales_team";
// print heading // print heading
cur_frm.pformat.print_heading = 'Invoice'; cur_frm.pformat.print_heading = 'Invoice';
$import(Sales Common) wn.require('erpnext/selling/doctype/sales_common/sales_common.js');
$import(Other Charges) wn.require('erpnext/setup/doctype/other_charges/other_charges.js');
$import(SMS Control) wn.require('erpnext/utilities/doctype/sms_control/sms_control.js');
wn.require('erpnext/setup/doctype/notification_control/notification_control.js');
// On Load // On Load
// ------- // -------
@ -162,14 +163,24 @@ cur_frm.cscript.warehouse = function(doc, cdt , cdn) {
cur_frm.cscript.customer = function(doc,dt,dn,onload) { cur_frm.cscript.customer = function(doc,dt,dn,onload) {
var callback = function(r,rt) { var callback = function(r,rt) {
var callback2 = function(doc, dt, dn) {
doc = locals[dt][dn];
if(doc.debit_to && doc.posting_date){
get_server_fields('get_cust_and_due_date','','',doc,dt,dn,1,
function(doc, dt, dn) {
cur_frm.refresh();
});
}
}
var doc = locals[cur_frm.doctype][cur_frm.docname]; var doc = locals[cur_frm.doctype][cur_frm.docname];
get_server_fields('get_debit_to','','',doc, dt, dn, 0); get_server_fields('get_debit_to','','',doc, dt, dn, 0, callback2);
cur_frm.refresh();
} }
var args = onload ? 'onload':'' var args = onload ? 'onload':''
if(doc.customer) $c_obj(make_doclist(doc.doctype, doc.name), 'get_default_customer_address', args, callback); if(doc.customer) $c_obj(make_doclist(doc.doctype, doc.name), 'get_default_customer_address', args, callback);
if(doc.customer) unhide_field(['customer_address','contact_person','customer_name','address_display','contact_display','contact_mobile','contact_email','territory','customer_group']); if(doc.customer) unhide_field(['customer_address','contact_person','customer_name','address_display','contact_display','contact_mobile','contact_email','territory','customer_group']);
} }
@ -476,7 +487,6 @@ cur_frm.cscript.convert_into_recurring_invoice = function(doc) {
} }
} }
$import(Notification Control)
cur_frm.cscript.on_submit = function(doc, cdt, cdn) { cur_frm.cscript.on_submit = function(doc, cdt, cdn) {
var args = { var args = {
type: 'Sales Invoice', type: 'Sales Invoice',

View File

@ -1,4 +1,4 @@
<div class="layout_wrapper"> <div class="layout_wrapper">
<div id="ab_header"></div> <div id="ab_header"></div>
<div id="ab_body" style="margin: 16px"></div> <div id="ab_body" style="margin: 16px;"></div>
</div> </div>

View File

@ -46,7 +46,7 @@ pscript.make_chart = function(b) {
//================== table body====================================== //================== table body======================================
var ac_main_grid = make_table($i('ab_body'),1,2,'100%',['60%','40%'],{border:"0px", padding:"4px",tableLayout: "fixed", borderCollapse: "collapse"}); var ac_main_grid = make_table($i('ab_body'),1,2,'100%',['60%','40%'],{border:"0px", padding:"4px",tableLayout: "fixed", borderCollapse: "collapse"});
$y($td(ac_main_grid,0,0),{border: "1px solid #dddddd", padding: "8px"}); $y($td(ac_main_grid,0,0),{border: "1px solid #dddddd", padding: "8px"});
pscript.account_tree = $a($td(ac_main_grid,0,0),'div'); pscript.account_tree = $a($td(ac_main_grid,0,0),'div', '',{minHeight:'400px'});
$y($td(ac_main_grid,0,1),{border: "1px solid #DDD"}); $y($td(ac_main_grid,0,1),{border: "1px solid #DDD"});
pscript.la = $a($td(ac_main_grid,0,1),'div'); pscript.la = $a($td(ac_main_grid,0,1),'div');
pscript.acc_period_bal = $a($td(ac_main_grid,0,1),'div'); pscript.acc_period_bal = $a($td(ac_main_grid,0,1),'div');

View File

@ -1,5 +1,5 @@
SELECT gl.account,sum(gl.credit) as amount SELECT gl.account,sum(gl.credit) as amount
FROM `tabGL Entry` gl, `tabAccount` a FROM `tabGL Entry` gl, `tabAccount` a
WHERE gl.account=a.name and a.master_type='Customer' and gl.posting_date between '%(date)s' and '%(date1)s' WHERE gl.account=a.name and a.master_type='Customer' and gl.posting_date between '%(date)s' and '%(date1)s' and ifnull(gl.is_cancelled, 'No') = 'No'
GROUP BY gl.account GROUP BY gl.account
ORDER BY posting_date ORDER BY posting_date

View File

@ -114,8 +114,8 @@ for r in res:
r.append(flt(opening<0 and -opening or 0)) r.append(flt(opening<0 and -opening or 0))
r.append(flt(debit)) r.append(flt(debit))
r.append(flt(credit)) r.append(flt(credit))
r.append(flt(closing>0 and closing or 0)) r.append(flt(closing>0.01 and closing or 0))
r.append(flt(closing<0 and -closing or 0)) r.append(flt(closing<-0.01 and -closing or 0))
out =[] out =[]

View File

@ -1,155 +0,0 @@
# Module Def, Buying
[
# These values are common in all dictionaries
{
'creation': '2011-07-01 17:40:38',
'docstatus': 0,
'modified': '2012-01-10 17:52:19',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Module Def Role
{
'doctype': 'Module Def Role',
'name': '__common__',
'parent': 'Buying',
'parentfield': 'roles',
'parenttype': 'Module Def'
},
# These values are common for all Module Def Item
{
'doctype': 'Module Def Item',
'name': '__common__',
'parent': 'Buying',
'parentfield': 'items',
'parenttype': 'Module Def'
},
# These values are common for all Module Def
{
'disabled': 'No',
'doctype': u'Module Def',
'doctype_list': 'DocType Mapper, Purchase Receipt-Payable Voucher\nDocType Mapper, Purchase Order-Payable Voucher\nDocType Mapper, Purchase Order-Purchase Receipt\nDocType Mapper, Indent-Purchase Order\nPrint Format, Purchase Order Format\nPrint Format, Purchase Receipt Format\nDocType Label, Indent',
'file_list': 'scm.gif,FileData/00209',
'is_hidden': 'No',
'module_desc': '<p>All details about your Suppliers and past transactions</p>',
'module_icon': 'Buying.gif',
'module_label': 'Buying',
'module_name': 'Buying',
'module_seq': 4,
'name': '__common__'
},
# Module Def, Buying
{
'doctype': u'Module Def',
'name': 'Buying'
},
# Module Def Item
{
'description': 'Your Supplier Database',
'display_name': 'Supplier',
'doc_name': 'Supplier',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'id\nsupplier_type\nsupplier_status\ncompany'
},
# Module Def Item
{
'description': 'Buy requests from various people in your company',
'display_name': 'Indent',
'doc_name': 'Indent',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'status\ntransaction_date\nsales_order_no\nremark'
},
# Module Def Item
{
'description': 'Orders you have placed to your suppliers',
'display_name': 'Purchase Order',
'doc_name': 'Purchase Order',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'status\nsupplier\ntransaction_date\ngrand_total'
},
# Module Def Item
{
'display_name': 'Itemwise Receipt Details',
'doc_name': 'Purchase Receipt Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Purchase in Transit',
'doc_name': 'PV Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Pending PO Items To Receive',
'doc_name': 'PO Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Pending PO Items To Bill',
'doc_name': 'PO Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Itemwise Purchase Details',
'doc_name': 'PO Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Ledger details of your creditors',
'display_name': "Creditor's Ledger",
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item',
'icon': 'accept.gif'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Purchase User'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Purchase Manager'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Administrator'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Purchase Master Manager'
}
]

View File

@ -17,8 +17,8 @@
cur_frm.cscript.tname = "Indent Detail"; cur_frm.cscript.tname = "Indent Detail";
cur_frm.cscript.fname = "indent_details"; cur_frm.cscript.fname = "indent_details";
$import(Purchase Common) wn.require('erpnext/buying/doctype/purchase_common/purchase_common.js');
$import(SMS Control) wn.require('erpnext/utilities/doctype/sms_control/sms_control.js');
cur_frm.cscript.indent_doctype_label = get_doctype_label('Indent'); cur_frm.cscript.indent_doctype_label = get_doctype_label('Indent');
//========================== On Load ================================================= //========================== On Load =================================================

View File

@ -393,12 +393,12 @@ cur_frm.cscript.calc_amount = function(doc, n) {
refresh_field('net_total'); refresh_field('net_total');
refresh_field('net_total_import'); refresh_field('net_total_import');
cur_frm.cscript.val_cal_charges(doc, cdt, cdn, tname, fname, other_fname); cur_frm.cscript.val_cal_charges(doc, tname, fname, other_fname);
} }
//======== Function was broken away from cur_frm.cscript.calc_amount as PV has fieldname 'rate' instead of 'purchase_rate'=========== //======== Function was broken away from cur_frm.cscript.calc_amount as PV has fieldname 'rate' instead of 'purchase_rate'===========
cur_frm.cscript.val_cal_charges = function(doc, cdt, cdn, tname, fname, other_fname){ cur_frm.cscript.val_cal_charges = function(doc, tname, fname, other_fname){
doc = locals[doc.doctype][doc.name] doc = locals[doc.doctype][doc.name]
if(flt(doc.net_total) > 0) { if(flt(doc.net_total) > 0) {
@ -416,7 +416,7 @@ cur_frm.cscript.val_cal_charges = function(doc, cdt, cdn, tname, fname, other_fn
} }
cur_frm.cscript.calc_other_charges(doc , tname , fname , other_fname); // calculate other charges cur_frm.cscript.calc_other_charges(doc , tname , fname , other_fname); // calculate other charges
} }
cur_frm.cscript.calc_doc_values(doc, cdt, cdn, tname, fname, other_fname); // calculates total amounts cur_frm.cscript.calc_doc_values(doc, tname, fname, other_fname); // calculates total amounts
refresh_many(['net_total', 'grand_total', 'rounded_total', 'grand_total_import', 'rounded_total_import', 'in_words', 'in_words_import', 'purchase_tax_details', 'total_tax', 'other_charges_added', 'other_charges_deducted', 'net_total_import', 'other_charges_added_import', 'other_charges_deducted_import']); refresh_many(['net_total', 'grand_total', 'rounded_total', 'grand_total_import', 'rounded_total_import', 'in_words', 'in_words_import', 'purchase_tax_details', 'total_tax', 'other_charges_added', 'other_charges_deducted', 'net_total_import', 'other_charges_added_import', 'other_charges_deducted_import']);
@ -545,9 +545,10 @@ cur_frm.cscript.calc_other_charges = function(doc , tname , fname , other_fname)
// ******* Calculation of total amounts of document (item amount + other charges)**************** // ******* Calculation of total amounts of document (item amount + other charges)****************
cur_frm.cscript.calc_doc_values = function(doc, cdt, cdn, tname, fname, other_fname) { cur_frm.cscript.calc_doc_values = function(doc, tname, fname, other_fname) {
doc = locals[doc.doctype][doc.name]; doc = locals[doc.doctype][doc.name];
var net_total = 0; var total_tax = 0; var other_charges_added = 0; var other_charges_deducted = 0; var net_total = 0; var total_tax = 0; var other_charges_added = 0;
var other_charges_deducted = 0;
var cl = getchildren(tname, doc.name, fname); var cl = getchildren(tname, doc.name, fname);
for(var i = 0; i<cl.length; i++){ for(var i = 0; i<cl.length; i++){
net_total += flt(cl[i].amount); net_total += flt(cl[i].amount);

View File

@ -17,9 +17,11 @@
cur_frm.cscript.tname = "PO Detail"; cur_frm.cscript.tname = "PO Detail";
cur_frm.cscript.fname = "po_details"; cur_frm.cscript.fname = "po_details";
cur_frm.cscript.other_fname = "purchase_tax_details"; cur_frm.cscript.other_fname = "purchase_tax_details";
$import(Purchase Common)
$import(Purchase Other Charges) wn.require('erpnext/buying/doctype/purchase_other_charges/purchase_other_charges.js');
$import(SMS Control) wn.require('erpnext/buying/doctype/purchase_common/purchase_common.js');
wn.require('erpnext/utilities/doctype/sms_control/sms_control.js');
wn.require('erpnext/setup/doctype/notification_control/notification_control.js');
//========================== On Load ================================================= //========================== On Load =================================================
cur_frm.cscript.onload = function(doc, cdt, cdn) { cur_frm.cscript.onload = function(doc, cdt, cdn) {
@ -270,7 +272,6 @@ cur_frm.pformat.indent_no = function(doc, cdt, cdn){
return out; return out;
} }
$import(Notification Control)
cur_frm.cscript.on_submit = function(doc, cdt, cdn) { cur_frm.cscript.on_submit = function(doc, cdt, cdn) {
var args = { var args = {
type: 'Purchase Order', type: 'Purchase Order',

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
$import(Contact Control) wn.require('erpnext/setup/doctype/contact_control/contact_control.js');
cur_frm.cscript.onload = function(doc,dt,dn){ cur_frm.cscript.onload = function(doc,dt,dn){
@ -54,19 +54,10 @@ cur_frm.cscript.refresh = function(doc,dt,dn) {
cur_frm.cscript.make_address = function() { cur_frm.cscript.make_address = function() {
if(!cur_frm.address_list) { if(!cur_frm.address_list) {
cur_frm.address_list = new wn.widgets.Listing({ cur_frm.address_list = new wn.ui.Listing({
parent: cur_frm.fields_dict['Address HTML'].wrapper, parent: cur_frm.fields_dict['Address HTML'].wrapper,
page_length: 2, page_length: 2,
new_doctype: "Address", new_doctype: "Address",
new_doc_onload: function(dn) {
ndoc = locals["Address"][dn];
ndoc.supplier = cur_frm.doc.name;
ndoc.supplier_name = cur_frm.doc.supplier_name;
ndoc.address_type = 'Office';
},
new_doc_onsave: function(dn) {
cur_frm.address_list.run()
},
get_query: function() { get_query: function() {
return "select name, address_type, address_line1, address_line2, city, state, country, pincode, fax, email_id, phone, is_primary_address, is_shipping_address from tabAddress where supplier='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_address desc" return "select name, address_type, address_line1, address_line2, city, state, country, pincode, fax, email_id, phone, is_primary_address, is_shipping_address from tabAddress where supplier='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_address desc"
}, },
@ -96,18 +87,10 @@ cur_frm.cscript.make_address = function() {
cur_frm.cscript.make_contact = function() { cur_frm.cscript.make_contact = function() {
if(!cur_frm.contact_list) { if(!cur_frm.contact_list) {
cur_frm.contact_list = new wn.widgets.Listing({ cur_frm.contact_list = new wn.ui.Listing({
parent: cur_frm.fields_dict['Contact HTML'].wrapper, parent: cur_frm.fields_dict['Contact HTML'].wrapper,
page_length: 2, page_length: 2,
new_doctype: "Contact", new_doctype: "Contact",
new_doc_onload: function(dn) {
ndoc = locals["Contact"][dn];
ndoc.supplier = cur_frm.doc.name;
ndoc.supplier_name = cur_frm.doc.supplier_name;
},
new_doc_onsave: function(dn) {
cur_frm.contact_list.run()
},
get_query: function() { get_query: function() {
return "select name, first_name, last_name, email_id, phone, mobile_no, department, designation, is_primary_contact from tabContact where supplier='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_contact desc" return "select name, first_name, last_name, email_id, phone, mobile_no, department, designation, is_primary_contact from tabContact where supplier='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_contact desc"
}, },
@ -128,6 +111,7 @@ cur_frm.cscript.make_contact = function() {
// make purchase order list // make purchase order list
cur_frm.cscript.make_po_list = function(parent, doc){ cur_frm.cscript.make_po_list = function(parent, doc){
wn.require('lib/js/legacy/widgets/listing.js');
var lst = new Listing(); var lst = new Listing();
lst.colwidths = ['5%','25%','20%','25%','25%']; lst.colwidths = ['5%','25%','20%','25%','25%'];
lst.colnames = ['Sr.','Id','Status','PO Date','Grand Total']; lst.colnames = ['Sr.','Id','Status','PO Date','Grand Total'];
@ -142,6 +126,7 @@ cur_frm.cscript.make_po_list = function(parent, doc){
// make purchase receipt list // make purchase receipt list
cur_frm.cscript.make_pr_list = function(parent,doc){ cur_frm.cscript.make_pr_list = function(parent,doc){
wn.require('lib/js/legacy/widgets/listing.js');
var lst = new Listing(); var lst = new Listing();
lst.colwidths = ['5%','20%','20%','20%','15%','20%']; lst.colwidths = ['5%','20%','20%','20%','15%','20%'];
lst.colnames = ['Sr.','Id','Status','Receipt Date','% Billed','Grand Total']; lst.colnames = ['Sr.','Id','Status','Receipt Date','% Billed','Grand Total'];
@ -156,6 +141,7 @@ cur_frm.cscript.make_pr_list = function(parent,doc){
// make purchase invoice list // make purchase invoice list
cur_frm.cscript.make_pi_list = function(parent,doc){ cur_frm.cscript.make_pi_list = function(parent,doc){
wn.require('lib/js/legacy/widgets/listing.js');
var lst = new Listing(); var lst = new Listing();
lst.colwidths = ['5%','20%','20%','20%','15%','20%']; lst.colwidths = ['5%','20%','20%','20%','15%','20%'];
lst.colnames = ['Sr.','Id','Posting Date','Credit To','Bill Date','Grand Total']; lst.colnames = ['Sr.','Id','Posting Date','Credit To','Bill Date','Grand Total'];

View File

@ -1,5 +1,5 @@
wn.pages['activity'].onload = function(wrapper) { wn.pages['activity'].onload = function(wrapper) {
var list = new wn.widgets.Listing({ var list = new wn.ui.Listing({
method: 'home.page.activity.activity.get_feed', method: 'home.page.activity.activity.get_feed',
parent: $('#activity-list'), parent: $('#activity-list'),
render_row: function(row, data) { render_row: function(row, data) {

View File

@ -16,12 +16,12 @@
pscript.onload_dashboard = function() { pscript.onload_dashboard = function() {
// load jqplot // load jqplot
wn.require('lib/css/jqplot.css'); wn.require('lib/css/lib/jqplot.css');
wn.require('lib/js/legacy/jquery/jquery.jqplot.min.js'); wn.require('lib/js/lib/jqplot/jquery.jqplot.min.js');
wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.barRenderer.js'); wn.require('lib/js/lib/jqplot/jqplot-plugins/jqplot.barRenderer.js');
wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.canvasAxisTickRenderer.min.js'); wn.require('lib/js/lib/jqplot/jqplot-plugins/jqplot.canvasAxisTickRenderer.min.js');
wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.canvasTextRenderer.min.js'); wn.require('lib/js/lib/jqplot/jqplot-plugins/jqplot.canvasTextRenderer.min.js');
wn.require('lib/js/legacy/jquery/jqplot-plugins/jqplot.categoryAxisRenderer.min.js'); wn.require('lib/js/lib/jqplot/jqplot-plugins/jqplot.categoryAxisRenderer.min.js');
pscript.dashboard_settings = { pscript.dashboard_settings = {

View File

@ -46,10 +46,10 @@
width: 56px; width: 56px;
height: 56px; height: 56px;
border: 4px solid white; border: 4px solid white;
box-shadow: 0 0 10px 1px black; box-shadow: 0 0 4px 1px black;
-moz-box-shadow: 0 0 10px 1px black; -moz-box-shadow: 0 0 4px 1px black;
-webkit-box-shadow: 0 0 10px 1px black; -webkit-box-shadow: 0 0 4px 1px black;
-o-box-shadow: 0 0 10px 1px black; -o-box-shadow: 0 0 4px 1px black;
margin: auto; margin: auto;
} }
@ -62,17 +62,16 @@
.case-label { .case-label {
color: white; color: white;
/*font-size: 12px;*/
padding-top: 10px; padding-top: 10px;
text-align: center; text-align: center;
text-shadow: 1px 1px 5px #000, 3px 3px 5px #000; text-shadow: 1px 1px 2px #000, 1px 1px 2px #000, 1px 1px 2px #000, 0px 0px 2px #000;
} }
/* Hover and click effects */ /* Hover and click effects */
.case-border:hover, .circle:hover, .hover-effect { .case-border:hover, .circle:hover, .hover-effect {
box-shadow: 0 0 2px 0px black, 0 0 10px 1px white !important; box-shadow: 0 0 2px 0px black, 0 0 4px 1px white !important;
-moz-box-shadow: 0 0 2px 0px black, 0 0 10px 1px white !important; -moz-box-shadow: 0 0 2px 0px black, 0 0 4px 1px white !important;
-webkit-box-shadow: 0 0 2px 0px black, 0 0 10px 1px white !important; -webkit-box-shadow: 0 0 2px 0px black, 0 0 4px 1px white !important;
-o-box-shadow: 0 0 2px 0px black, 0 0 10px 1px white !important; -o-box-shadow: 0 0 2px 0px black, 0 0 10px 1px white !important;
} }
@ -105,10 +104,10 @@
margin-top: -74px; margin-top: -74px;
margin-right: 10px; margin-right: 10px;
border: 2px solid white; border: 2px solid white;
box-shadow: 0 0 10px 1px black; box-shadow: 0 0 4px 1px black;
-moz-box-shadow: 0 0 10px 1px black; -moz-box-shadow: 0 0 4px 1px black;
-webkit-box-shadow: 0 0 10px 1px black; -webkit-box-shadow: 0 0 4px 1px black;
-o-box-shadow: 0 0 10px 1px black; -o-box-shadow: 0 0 4px 1px black;
} }
.circle-text { .circle-text {

View File

@ -470,7 +470,7 @@ FeedList.prototype.make_list = function() {
var me = this; var me = this;
this.list_area = $a(this.wrapper,'div') this.list_area = $a(this.wrapper,'div')
this.list = new wn.widgets.Listing({ this.list = new wn.ui.Listing({
parent: this.list_area, parent: this.list_area,
query: repl('select \ query: repl('select \
distinct t1.name, t1.feed_type, t1.doc_type, t1.doc_name, t1.subject, t1.modified_by, \ distinct t1.name, t1.feed_type, t1.doc_type, t1.doc_name, t1.subject, t1.modified_by, \
@ -600,7 +600,7 @@ pscript.home_make_status = function() {
// get values // get values
$c_page('home', 'event_updates', 'get_status_details', user, $c_page('home', 'event_updates', 'get_status_details', user,
function(r,rt) { function(r,rt) {
//page_body.wntoolbar.set_new_comments(r.message.unread_messages); //wn.container.wntoolbar.set_new_comments(r.message.unread_messages);
// render online users // render online users
pscript.online_users_obj.render(r.message.online_users); pscript.online_users_obj.render(r.message.online_users);

View File

@ -179,7 +179,7 @@ MemberList.prototype.make_list = function() {
var me = this; var me = this;
this.lst_area = $a(this.list_wrapper, 'div'); this.lst_area = $a(this.list_wrapper, 'div');
this.lst = new wn.widgets.Listing({ this.lst = new wn.ui.Listing({
parent: this.lst_area, parent: this.lst_area,
as_dict: 1, as_dict: 1,
get_query: function() { get_query: function() {
@ -692,7 +692,7 @@ MemberConversation = function(parent, uid, fullname) {
this.my_messages_box = $a(this.lst_area, 'div', 'my-company-conversation-head', {marginBottom:'7px'}, 'Messages by everyone to me<br>To send a message, click on the user on the left') this.my_messages_box = $a(this.lst_area, 'div', 'my-company-conversation-head', {marginBottom:'7px'}, 'Messages by everyone to me<br>To send a message, click on the user on the left')
} }
this.lst = new wn.widgets.Listing({ this.lst = new wn.ui.Listing({
parent: this.lst_area, parent: this.lst_area,
as_dict: 1, as_dict: 1,
no_result_message: (user==uid no_result_message: (user==uid

View File

@ -100,7 +100,7 @@ cur_frm.cscript.sanctioned_amount = function(doc,cdt,cdn){
cur_frm.cscript.calculate_total(doc,cdt,cdn); cur_frm.cscript.calculate_total(doc,cdt,cdn);
} }
$import(Notification Control); wn.require('erpnext/setup/doctype/notification_control/notification_control.js');
cur_frm.cscript['Approve'] = function(doc,cdt,cdn){ cur_frm.cscript['Approve'] = function(doc,cdt,cdn){
@ -244,7 +244,6 @@ cur_frm.cscript['Update Voucher'] = function(doc){
}); });
} }
$import(Notification Control)
cur_frm.cscript.on_submit = function(doc, cdt, cdn) { cur_frm.cscript.on_submit = function(doc, cdt, cdn) {
var args = { var args = {
type: 'Expense Voucher', type: 'Expense Voucher',

View File

@ -131,7 +131,7 @@ KBAnswerList = function(args) {
this.make_list = function() { this.make_list = function() {
this.list = new wn.widgets.Listing({ this.list = new wn.ui.Listing({
parent: me.parent, parent: me.parent,
as_dict: 1, as_dict: 1,
no_result_message: 'No answers yet, be the first one to answer!', no_result_message: 'No answers yet, be the first one to answer!',
@ -185,4 +185,4 @@ KBAnswer = function(body, data, ans_list) {
} }
$import(knowledge_base/page/kb_common/kb_common.js); wn.require('erpnext/knowledge_base/page/kb_common/kb_common.js');

View File

@ -107,7 +107,7 @@ function KnowledgeBase(w) {
this.list_area = $a(w, 'div', '', {marginRight:'13px'}) this.list_area = $a(w, 'div', '', {marginRight:'13px'})
this.no_result = $a(w, 'div','help_box',{display:'none'},'No questions asked yet! Be the first one to ask') this.no_result = $a(w, 'div','help_box',{display:'none'},'No questions asked yet! Be the first one to ask')
this.list = new wn.widgets.Listing({ this.list = new wn.ui.Listing({
parent: this.list_area, parent: this.list_area,
no_results_message: 'No questions found. Ask a new question!', no_results_message: 'No questions found. Ask a new question!',
as_dict: 1, as_dict: 1,
@ -215,4 +215,4 @@ KBQuestion = function(parent, det, kb) {
this.make() this.make()
} }
$import(knowledge_base/page/kb_common/kb_common.js); wn.require('erpnext/knowledge_base/page/kb_common/kb_common.js');

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('accounts', 'doctype', 'pv_detail') reload_doc('accounts', 'doctype', 'pv_detail')
reload_doc('buying', 'doctype', 'po_detail') reload_doc('buying', 'doctype', 'po_detail')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('setup', 'doctype', 'company') reload_doc('setup', 'doctype', 'company')
reload_doc('setup', 'doctype', 'manage_account') reload_doc('setup', 'doctype', 'manage_account')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('setup', 'doctype', 'manage_account') reload_doc('setup', 'doctype', 'manage_account')
reload_doc('stock', 'doctype', 'item') reload_doc('stock', 'doctype', 'item')
webnotes.conn.sql("delete from `tabDocField` where fieldname='minimum_inventory_level' and parent='item'") webnotes.conn.sql("delete from `tabDocField` where fieldname='minimum_inventory_level' and parent='item'")

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('accounts', 'doctype', 'receivable_voucher') reload_doc('accounts', 'doctype', 'receivable_voucher')
reload_doc('accounts', 'doctype', 'c_form') reload_doc('accounts', 'doctype', 'c_form')

View File

@ -21,7 +21,7 @@ def execute():
* Reload email_digest doctype * Reload email_digest doctype
* Create default email digest * Create default email digest
""" """
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
# Minor fix in print_format doctype # Minor fix in print_format doctype
#reload_doc('core', 'doctype', 'print_format') #reload_doc('core', 'doctype', 'print_format')

View File

@ -22,7 +22,7 @@
""" """
def execute(): def execute():
from webnotes.model.doc import Document from webnotes.model.doc import Document
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('hr', 'search_criteria', 'employeewise_balance_leave_report') reload_doc('hr', 'search_criteria', 'employeewise_balance_leave_report')
d = Document('Search Criteria', 'employeewise_balance_leave_report') d = Document('Search Criteria', 'employeewise_balance_leave_report')
d.criteria_name = 'Employee Leave Balance Report' d.criteria_name = 'Employee Leave Balance Report'

View File

@ -19,7 +19,7 @@
import webnotes import webnotes
from webnotes.model import delete_doc from webnotes.model import delete_doc
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
from webnotes.modules.export_module import export_to_files from webnotes.modules.export_module import export_to_files
sql = webnotes.conn.sql sql = webnotes.conn.sql

View File

@ -68,7 +68,7 @@ def execute():
""" """
Install print formats Install print formats
""" """
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('core', 'doctype', 'print_format') reload_doc('core', 'doctype', 'print_format')
#copy_doctype_to_pfs() #copy_doctype_to_pfs()

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'landed_cost_wizard') reload_doc('stock', 'doctype', 'landed_cost_wizard')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'delivery_note_detail') reload_doc('stock', 'doctype', 'delivery_note_detail')
reload_doc('stock', 'Print Format', 'Delivery Note Packing List Wise') reload_doc('stock', 'Print Format', 'Delivery Note Packing List Wise')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('accounts', 'doctype', 'receivable_voucher') reload_doc('accounts', 'doctype', 'receivable_voucher')
reload_doc('stock', 'doctype', 'delivery_note') reload_doc('stock', 'doctype', 'delivery_note')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
sql = webnotes.conn.sql sql = webnotes.conn.sql
# Reload item table # Reload item table

View File

@ -16,6 +16,6 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('utilities', 'doctype', 'address') reload_doc('utilities', 'doctype', 'address')

View File

@ -16,6 +16,6 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('production', 'doctype', 'bill_of_materials') reload_doc('production', 'doctype', 'bill_of_materials')

View File

@ -18,7 +18,7 @@
Reload DocLayer, DocLayerField and Print Format doctypes Reload DocLayer, DocLayerField and Print Format doctypes
""" """
def execute(): def execute():
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('core', 'doctype', 'print_format') reload_doc('core', 'doctype', 'print_format')
reload_doc('core', 'doctype', 'doclayer') reload_doc('core', 'doctype', 'doclayer')
reload_doc('core', 'doctype', 'doclayerfield') reload_doc('core', 'doctype', 'doclayerfield')

View File

@ -15,5 +15,5 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
def execute(): def execute():
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('Setup', 'DocType', 'Email Digest') reload_doc('Setup', 'DocType', 'Email Digest')

View File

@ -16,5 +16,5 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('hr', 'search_criteria', 'employeewise_balance_leave_report') reload_doc('hr', 'search_criteria', 'employeewise_balance_leave_report')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
from webnotes.modules import webnotes from webnotes.modules import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('production', 'doctype', 'flat_bom_detail') reload_doc('production', 'doctype', 'flat_bom_detail')
reload_doc('production', 'doctype', 'bom_material') reload_doc('production', 'doctype', 'bom_material')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
# reload jv gl mapper # reload jv gl mapper
reload_doc('accounts', 'GL Mapper', 'Journal Voucher') reload_doc('accounts', 'GL Mapper', 'Journal Voucher')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
from webnotes.model import delete_doc from webnotes.model import delete_doc
delete_doc('DocType', 'Landed Cost Wizard') delete_doc('DocType', 'Landed Cost Wizard')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
from webnotes.model.doc import addchild from webnotes.model.doc import addchild
from webnotes.model.code import get_obj from webnotes.model.code import get_obj
reload_doc('stock', 'Print Format', 'Delivery Note Packing List Wise') reload_doc('stock', 'Print Format', 'Delivery Note Packing List Wise')

View File

@ -18,6 +18,6 @@
Reload Task Doctype of Project Module Reload Task Doctype of Project Module
""" """
def execute(): def execute():
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('Projects', 'DocType', 'Ticket') reload_doc('Projects', 'DocType', 'Ticket')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'stock_reconciliation') reload_doc('stock', 'doctype', 'stock_reconciliation')
webnotes.conn.sql("delete from `tabDocField` where (label in ('Validate Data', 'Attachment HTML', 'Attachment') or fieldname in ('next_step', 'company', 'fiscal_year', 'amendment_date')) and parent = 'Stock Reconciliation'") webnotes.conn.sql("delete from `tabDocField` where (label in ('Validate Data', 'Attachment HTML', 'Attachment') or fieldname in ('next_step', 'company', 'fiscal_year', 'amendment_date')) and parent = 'Stock Reconciliation'")

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
from webnotes.model.code import get_obj from webnotes.model.code import get_obj
reload_doc('accounts', 'doctype', 'receivable_voucher') reload_doc('accounts', 'doctype', 'receivable_voucher')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('Support', 'DocType', 'Support Ticket') reload_doc('Support', 'DocType', 'Support Ticket')
from webnotes.model.code import get_obj from webnotes.model.code import get_obj
get_obj('DocType', 'Support Ticket').validate() get_obj('DocType', 'Support Ticket').validate()

View File

@ -17,7 +17,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
sql = webnotes.conn.sql sql = webnotes.conn.sql
reload_doc('hr', 'doctype', 'salary_manager') reload_doc('hr', 'doctype', 'salary_manager')

View File

@ -16,5 +16,5 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('projects', 'doctype', 'ticket') reload_doc('projects', 'doctype', 'ticket')

View File

@ -32,5 +32,5 @@ def execute():
AND label='Make Maintenance Visit' AND label='Make Maintenance Visit'
""") """)
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('support', 'doctype', 'customer_issue') reload_doc('support', 'doctype', 'customer_issue')

View File

@ -18,5 +18,5 @@ def execute():
""" """
* Reload ToDo Item * Reload ToDo Item
""" """
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('utilities', 'doctype', 'todo_item') reload_doc('utilities', 'doctype', 'todo_item')

View File

@ -26,7 +26,7 @@ def execute():
patch_primary_address() patch_primary_address()
def reload_sc(): def reload_sc():
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('selling', 'search_criteria', 'customer_address_contact') reload_doc('selling', 'search_criteria', 'customer_address_contact')
reload_doc('selling', 'Module Def', 'Selling') reload_doc('selling', 'Module Def', 'Selling')

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
def execute(): def execute():
delete_fields_dn_detail() delete_fields_dn_detail()

View File

@ -24,5 +24,5 @@ def execute():
UPDATE `tabDocField` SET options=NULL UPDATE `tabDocField` SET options=NULL
WHERE parent='DocLayer' AND fieldname='doc_type' WHERE parent='DocLayer' AND fieldname='doc_type'
""") """)
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('core', 'doctype', 'doclayer') reload_doc('core', 'doctype', 'doclayer')

View File

@ -1,6 +1,6 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
webnotes.conn.sql("delete from `tabField Mapper Detail` where from_field = 'transaction_date' and parent in ('Sales Order-Delivery Note', 'Purchase Order-Purchase Receipt')") webnotes.conn.sql("delete from `tabField Mapper Detail` where from_field = 'transaction_date' and parent in ('Sales Order-Delivery Note', 'Purchase Order-Purchase Receipt')")
reload_doc('stock', 'DocType Mapper', 'Sales Order-Delivery Note') reload_doc('stock', 'DocType Mapper', 'Sales Order-Delivery Note')

View File

@ -25,5 +25,5 @@ def execute():
WHERE parent = 'Email Settings' AND fieldname = 'mail_port' WHERE parent = 'Email Settings' AND fieldname = 'mail_port'
""") """)
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('setup', 'doctype', 'email_settings') reload_doc('setup', 'doctype', 'email_settings')

View File

@ -20,7 +20,7 @@ def execute():
Patch includes: Patch includes:
* Reload of Stock Entry Detail * Reload of Stock Entry Detail
""" """
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'stock_entry_detail') reload_doc('stock', 'doctype', 'stock_entry_detail')
reload_doc('stock', 'doctype', 'item_supplier') reload_doc('stock', 'doctype', 'item_supplier')

View File

@ -1,7 +1,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.model import delete_doc from webnotes.model import delete_doc
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
dt = { dt = {
'selling': ['quotation', 'sales_order', 'quotation_detail', 'sales_order_detail'], 'selling': ['quotation', 'sales_order', 'quotation_detail', 'sales_order_detail'],

View File

@ -17,7 +17,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.model.code import get_obj from webnotes.model.code import get_obj
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
sql = webnotes.conn.sql sql = webnotes.conn.sql
reload_doc('hr', 'doctype', 'appraisal') reload_doc('hr', 'doctype', 'appraisal')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
from webnotes.model import delete_doc from webnotes.model import delete_doc
sql = webnotes.conn.sql sql = webnotes.conn.sql

View File

@ -16,5 +16,5 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('core', 'doctype', 'doctype') reload_doc('core', 'doctype', 'doctype')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'item') reload_doc('stock', 'doctype', 'item')
webnotes.conn.sql("update `tabItem` set re_order_qty = min_order_qty") webnotes.conn.sql("update `tabItem` set re_order_qty = min_order_qty")

View File

@ -16,5 +16,5 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('stock', 'DocType Mapper', 'Purchase Order-Purchase Receipt') reload_doc('stock', 'DocType Mapper', 'Purchase Order-Purchase Receipt')

View File

@ -0,0 +1,4 @@
def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
reload_doc('selling', 'doctype', 'quotation')

View File

@ -1,6 +1,6 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('selling', 'doctype', 'quotation_detail') reload_doc('selling', 'doctype', 'quotation_detail')
reload_doc('selling', 'doctype', 'sales_order_detail') reload_doc('selling', 'doctype', 'sales_order_detail')
reload_doc('stock', 'doctype', 'delivery_note_detail') reload_doc('stock', 'doctype', 'delivery_note_detail')

View File

@ -26,5 +26,5 @@ def execute():
AND fieldtype='Button' AND fieldtype='Button'
""") """)
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('accounts', 'doctype', 'journal_voucher') reload_doc('accounts', 'doctype', 'journal_voucher')

View File

@ -47,7 +47,7 @@ def reload_related_doctype():
* purchase_order * purchase_order
* po_detail * po_detail
""" """
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('buying', 'doctype', 'indent') reload_doc('buying', 'doctype', 'indent')
reload_doc('buying', 'doctype', 'purchase_order') reload_doc('buying', 'doctype', 'purchase_order')
reload_doc('buying', 'doctype', 'po_detail') reload_doc('buying', 'doctype', 'po_detail')

View File

@ -30,5 +30,5 @@ def execute():
webnotes.conn.commit() webnotes.conn.commit()
webnotes.conn.begin() webnotes.conn.begin()
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'serial_no') reload_doc('stock', 'doctype', 'serial_no')

View File

@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
def execute(): def execute():
""" """

View File

@ -0,0 +1,6 @@
def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
reload_doc('stock', 'doctype', 'stock_entry')
webnotes.conn.sql("update `tabDocField` set options = concat(options, '\nOthers') where fieldname = 'purpose' and parent = 'Stock Entry'")

View File

@ -0,0 +1,3 @@
def execute():
import webnotes
webnotes.conn.sql("update `tabDocField` set options = replace(options, 'Others', 'Other') where fieldname = 'purpose' and parent = 'Stock Entry'")

View File

@ -0,0 +1,6 @@
def execute():
import webnotes
webnotes.conn.sql("update `tabDocField` set options = 'Bill Of Materials' where fieldname = 'bom_no' and parent = 'Stock Entry'")
from webnotes.modules.module_manager import reload_doc
reload_doc('stock', 'doctype', 'stock_entry')

View File

@ -16,7 +16,7 @@
def execute(): def execute():
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('website', 'doctype', 'website_settings') reload_doc('website', 'doctype', 'website_settings')
res = webnotes.conn.sql("""\ res = webnotes.conn.sql("""\

View File

@ -0,0 +1,5 @@
def execute():
import webnotes
webnotes.conn.sql("DELETE FROM `tabDocFormat` WHERE format='POS Invoice'")
from webnotes.modules.module_manager import reload_doc
reload_doc('accounts', 'Print Format', 'POS Invoice')

View File

@ -21,7 +21,7 @@ from webnotes.utils import load_json, cint, cstr
from webnotes import msgprint, errprint from webnotes import msgprint, errprint
def make_address(): def make_address():
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('utilities','doctype','address') reload_doc('utilities','doctype','address')
from webnotes.model.db_schema import updatedb from webnotes.model.db_schema import updatedb
@ -128,7 +128,7 @@ def delete_unwanted_fields():
# export_to_files(record_list=[['DocType',dt]]) # export_to_files(record_list=[['DocType',dt]])
def reload_doc_files(): def reload_doc_files():
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('utilities', 'doctype', 'contact') reload_doc('utilities', 'doctype', 'contact')
reload_doc('selling', 'doctype', 'customer') reload_doc('selling', 'doctype', 'customer')
reload_doc('support', 'doctype', 'customer_issue') reload_doc('support', 'doctype', 'customer_issue')
@ -149,7 +149,7 @@ def reload_doc_files():
reload_doc('buying', 'doctype', 'supplier') reload_doc('buying', 'doctype', 'supplier')
def reload_mapper_files(): def reload_mapper_files():
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('Mapper', 'DocType Mapper', 'Customer Issue-Maintenance Visit') reload_doc('Mapper', 'DocType Mapper', 'Customer Issue-Maintenance Visit')
reload_doc('Mapper', 'DocType Mapper', 'Delivery Note-Installation Note') reload_doc('Mapper', 'DocType Mapper', 'Delivery Note-Installation Note')
reload_doc('Mapper', 'DocType Mapper', 'Delivery Note-Receivable Voucher') reload_doc('Mapper', 'DocType Mapper', 'Delivery Note-Receivable Voucher')

View File

@ -21,7 +21,7 @@ def set_doctype_permissions():
# remove descriptions # remove descriptions
webnotes.conn.sql("update tabDocType set description=null") webnotes.conn.sql("update tabDocType set description=null")
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('core','doctype','custom_script') reload_doc('core','doctype','custom_script')
reload_doc('core','doctype','custom_field') reload_doc('core','doctype','custom_field')
reload_doc('core','doctype','property_setter') reload_doc('core','doctype','property_setter')

View File

@ -110,7 +110,7 @@ def set_subjects_and_tagfields():
def support_patch(): def support_patch():
# relaod support and other doctypes # relaod support and other doctypes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
webnotes.model.delete_doc('DocType','Support Ticket') webnotes.model.delete_doc('DocType','Support Ticket')
reload_doc('setup','doctype','support_email_settings') reload_doc('setup','doctype','support_email_settings')

View File

@ -781,12 +781,12 @@ elif patch_no == 184:
except: pass except: pass
# import # import
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('event_updates','doctype','feed') reload_doc('event_updates','doctype','feed')
elif patch_no==185: elif patch_no==185:
sql("delete from tabDocTrigger where method = 'webnotes.widgets.follow.on_docsave'") sql("delete from tabDocTrigger where method = 'webnotes.widgets.follow.on_docsave'")
elif patch_no==186: elif patch_no==186:
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('event_updates','doctype','feed') reload_doc('event_updates','doctype','feed')
elif patch_no == 187: elif patch_no == 187:
sql("update tabDocType set autoname = '' where name = 'QA Inspection Report'") sql("update tabDocType set autoname = '' where name = 'QA Inspection Report'")
@ -807,7 +807,7 @@ elif patch_no == 194:
sql("delete from `tabModule Def Item` where parent = 'SRM' and doc_name = 'Landed Cost Wizard' and display_name = 'Landed Cost Wizard'") sql("delete from `tabModule Def Item` where parent = 'SRM' and doc_name = 'Landed Cost Wizard' and display_name = 'Landed Cost Wizard'")
import_from_files(record_list = [['stock', 'Module Def', 'Material Management']]) import_from_files(record_list = [['stock', 'Module Def', 'Material Management']])
elif patch_no == 195: elif patch_no == 195:
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('setup','doctype','manage_account') reload_doc('setup','doctype','manage_account')
elif patch_no == 196: elif patch_no == 196:
sql("update `tabModule Def` set module_page = null where name = 'Material Management'") sql("update `tabModule Def` set module_page = null where name = 'Material Management'")

View File

@ -24,7 +24,7 @@ last_patch = 388
def execute(patch_no): def execute(patch_no):
return return
import webnotes import webnotes
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
from webnotes.model.code import get_obj from webnotes.model.code import get_obj
sql = webnotes.conn.sql sql = webnotes.conn.sql
@ -377,7 +377,7 @@ def execute(patch_no):
elif patch_no == 370: elif patch_no == 370:
sql("update `tabDocField` set `hidden` = 0 where fieldname = 'group_or_ledger' and parent = 'Cost Center'") sql("update `tabDocField` set `hidden` = 0 where fieldname = 'group_or_ledger' and parent = 'Cost Center'")
elif patch_no == 371: elif patch_no == 371:
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('setup', 'doctype','features_setup') reload_doc('setup', 'doctype','features_setup')
flds = ['page_break', 'projects', 'packing_details', 'discounts', 'brands', 'item_batch_nos', 'after_sales_installations', 'item_searial_nos', 'item_group_in_details', 'exports', 'imports', 'item_advanced', 'sales_extras', 'more_info', 'quality', 'manufacturing', 'pos', 'item_serial_nos'] flds = ['page_break', 'projects', 'packing_details', 'discounts', 'brands', 'item_batch_nos', 'after_sales_installations', 'item_searial_nos', 'item_group_in_details', 'exports', 'imports', 'item_advanced', 'sales_extras', 'more_info', 'quality', 'manufacturing', 'pos', 'item_serial_nos']
@ -393,7 +393,7 @@ def execute(patch_no):
get_obj('Features Setup', 'Features Setup').doc.save() get_obj('Features Setup', 'Features Setup').doc.save()
elif patch_no == 372: elif patch_no == 372:
from webnotes.modules.module_manager import reload_doc from webnotes.modules import reload_doc
reload_doc('setup', 'doctype','features_setup') reload_doc('setup', 'doctype','features_setup')
flds = ['page_break', 'projects', 'packing_details', 'discounts', 'brands', 'item_batch_nos', 'after_sales_installations', 'item_searial_nos', 'item_group_in_details', 'exports', 'imports', 'item_advanced', 'sales_extras', 'more_info', 'quality', 'manufacturing', 'pos', 'item_serial_nos'] flds = ['page_break', 'projects', 'packing_details', 'discounts', 'brands', 'item_batch_nos', 'after_sales_installations', 'item_searial_nos', 'item_group_in_details', 'exports', 'imports', 'item_advanced', 'sales_extras', 'more_info', 'quality', 'manufacturing', 'pos', 'item_serial_nos']

View File

@ -187,5 +187,25 @@ patch_list = [
'patch_file': 'update_stockreco_perm', 'patch_file': 'update_stockreco_perm',
'description': 'Update stock reco permission' 'description': 'Update stock reco permission'
}, },
{
'patch_module': 'patches.jan_mar_2012',
'patch_file': 'stock_entry_others_patch',
'description': 'new purpose others in stock entry'
},
{
'patch_module': 'patches.jan_mar_2012',
'patch_file': 'reload_quote',
'description': 'reload quote: organization fld added'
},
{
'patch_module': 'patches.jan_mar_2012',
'patch_file': 'update_purpose_se',
'description': 'Purpose SE: Others to Other'
},
{
'patch_module': 'patches.jan_mar_2012',
'patch_file': 'update_se_fld_options',
'description': 'Purpose SE: Others to Other'
},
] ]

View File

@ -1,141 +0,0 @@
[
{
'_last_update': '1300959287',
'creation': '2010-11-30 17:31:44',
'disabled': 'No',
'docstatus': 0,
'doctype': u'Module Def',
'doctype_list': None,
'file_list': 'undefined,undefined',
'idx': None,
'is_hidden': 'No',
'last_updated_date': '2011-03-10 15:57:47',
'modified': '2011-03-24 15:07:53',
'modified_by': 'Administrator',
'module_desc': '<div id="projects_div"></div>',
'module_icon': 'puzzle.png',
'module_label': 'Projects',
'module_name': 'Projects',
'module_page': None,
'module_seq': 2,
'name': 'Projects',
'owner': 'Administrator',
'parent': None,
'parentfield': None,
'parenttype': None,
'trash_reason': None,
'widget_code': None
},
{
'click_function': None,
'creation': '2010-11-30 17:31:44',
'description': None,
'display_name': 'Project',
'doc_name': 'Project',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': 1,
'modified': '2011-03-24 15:07:53',
'modified_by': 'Administrator',
'name': 'MDI00099',
'owner': 'Administrator',
'parent': 'Projects',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': None,
'description': None,
'display_name': 'Task',
'doc_name': 'Ticket',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': 2,
'modified': '2011-03-24 15:07:53',
'modified_by': 'Administrator',
'name': 'MDI00285',
'owner': None,
'parent': 'Projects',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': None,
'description': None,
'display_name': 'Gantt Chart',
'doc_name': 'Projects',
'doc_type': 'Pages',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': 3,
'modified': '2011-03-24 15:07:53',
'modified_by': 'Administrator',
'name': 'MDI00286',
'owner': None,
'parent': 'Projects',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'click_function': None,
'creation': None,
'description': None,
'display_name': 'Timesheet',
'doc_name': 'Timesheet',
'doc_type': 'Forms',
'docstatus': 0,
'doctype': 'Module Def Item',
'fields': None,
'hide': None,
'icon': None,
'idx': 4,
'modified': '2011-03-24 15:07:53',
'modified_by': 'Administrator',
'name': 'MDI00287',
'owner': None,
'parent': 'Projects',
'parentfield': 'items',
'parenttype': 'Module Def'
},
{
'creation': '2010-11-30 17:31:44',
'docstatus': 0,
'doctype': 'Module Def Role',
'idx': 1,
'modified': '2011-03-24 15:07:53',
'modified_by': 'Administrator',
'name': 'MDR00012',
'owner': 'Administrator',
'parent': 'Projects',
'parentfield': 'roles',
'parenttype': 'Module Def',
'role': 'Projects User'
},
{
'creation': '2010-11-30 17:31:44',
'docstatus': 0,
'doctype': 'Module Def Role',
'idx': 2,
'modified': '2011-03-24 15:07:53',
'modified_by': 'Administrator',
'name': 'MDR00013',
'owner': 'Administrator',
'parent': 'Projects',
'parentfield': 'roles',
'parenttype': 'Module Def',
'role': 'System Manager'
}
]

View File

@ -0,0 +1,5 @@
You can use projects to:
1. Track budgets (Purchase Orders, Invoices).
2. Track material consumption.
3. Create and assign tasks (and view them on a Gantt Chart).

View File

@ -5,47 +5,51 @@
{ {
'creation': '2010-08-08 17:09:14', 'creation': '2010-08-08 17:09:14',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-01-05 15:24:43', 'modified': '2012-03-12 16:07:48',
'modified_by': 'Administrator', 'modified_by': u'Administrator',
'owner': 'Administrator' 'owner': u'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1305714062', '_last_update': u'1331542508',
'allow_attach': 1,
'allow_trash': 1, 'allow_trash': 1,
'autoname': 'field:project_name', 'autoname': u'field:project_name',
'colour': 'White:FFF', 'colour': u'White:FFF',
'default_print_format': u'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'document_type': 'Master', 'document_type': u'Master',
'module': 'Projects', 'max_attachments': 4,
'module': u'Projects',
'name': '__common__', 'name': '__common__',
'search_fields': 'customer, status, priority, is_active', 'search_fields': u'customer, status, priority, is_active',
'section_style': 'Tabbed', 'section_style': u'Tabbed',
'server_code_error': ' ', 'server_code_error': u' ',
'subject': ' ', 'show_in_menu': 0,
'tag_fields': 'status', 'subject': u' ',
'version': 32 'tag_fields': u'status',
'version': 38
}, },
# These values are common for all DocField # These values are common for all DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'name': '__common__', 'name': '__common__',
'parent': 'Project', 'parent': u'Project',
'parentfield': 'fields', 'parentfield': u'fields',
'parenttype': 'DocType' 'parenttype': u'DocType'
}, },
# These values are common for all DocPerm # These values are common for all DocPerm
{ {
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'name': '__common__', 'name': '__common__',
'parent': 'Project', 'parent': u'Project',
'parentfield': 'permissions', 'parentfield': u'permissions',
'parenttype': 'DocType', 'parenttype': u'DocType',
'permlevel': 0, 'permlevel': 0,
'read': 1, 'read': 1,
'write': 1 'write': 1
@ -54,45 +58,58 @@
# DocType, Project # DocType, Project
{ {
'doctype': 'DocType', 'doctype': 'DocType',
'name': 'Project' 'name': u'Project'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 1, 'role': u'All'
'role': 'All'
}, },
# DocPerm # DocPerm
{ {
'doctype': 'DocPerm', 'doctype': u'DocPerm',
'idx': 2, 'role': u'Projects User'
'role': 'Projects User'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Helps you keep track of your projects and links to Tasks. You can tag a task to a project to track its progress', 'description': u'Helps you keep track of your projects and links to Tasks. You can tag a task to a project to track its progress',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 1, 'label': u'Basic Info',
'label': 'Basic Info', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'description': 'Project will get saved and will be searchable with project name given', 'description': u'Project will get saved and will be searchable with project name given',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'project_name', 'fieldname': u'project_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 2, 'label': u'Project Name',
'label': 'Project Name', 'oldfieldname': u'project_name',
'oldfieldname': 'project_name', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data', 'permlevel': 0,
'reqd': 1
},
# DocField
{
'colour': u'White:FFF',
'default': u'Open',
'doctype': u'DocField',
'fieldname': u'status',
'fieldtype': u'Select',
'in_filter': 1,
'label': u'Status',
'no_copy': 1,
'oldfieldname': u'status',
'oldfieldtype': u'Select',
'options': u'Open\nCompleted\nCancelled',
'permlevel': 0, 'permlevel': 0,
'reqd': 1, 'reqd': 1,
'search_index': 1 'search_index': 1
@ -100,385 +117,357 @@
# DocField # DocField
{ {
'colour': 'White:FFF', 'doctype': u'DocField',
'default': 'Open', 'fieldname': u'is_active',
'doctype': 'DocField', 'fieldtype': u'Select',
'fieldname': 'status', 'label': u'Is Active',
'fieldtype': 'Select', 'oldfieldname': u'is_active',
'idx': 3, 'oldfieldtype': u'Select',
'options': u'Yes\nNo',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'priority',
'fieldtype': u'Select',
'label': u'Priority',
'oldfieldname': u'priority',
'oldfieldtype': u'Select',
'options': u'Medium\nLow\nHigh',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Column Break',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'project_type',
'fieldtype': u'Data',
'label': u'Project Type',
'oldfieldname': u'project_type',
'oldfieldtype': u'Data',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'project_start_date',
'fieldtype': u'Date',
'in_filter': 1, 'in_filter': 1,
'label': 'Status', 'label': u'Project Start Date',
'oldfieldname': 'status', 'oldfieldname': u'project_start_date',
'oldfieldtype': 'Select', 'oldfieldtype': u'Date',
'options': 'Open\nCompleted\nCancelled',
'permlevel': 0,
'reqd': 1,
'search_index': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'is_active',
'fieldtype': 'Select',
'idx': 4,
'label': 'Is Active',
'oldfieldname': 'is_active',
'oldfieldtype': 'Select',
'options': 'Yes\nNo',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'priority', 'fieldname': u'completion_date',
'fieldtype': 'Select', 'fieldtype': u'Date',
'idx': 5, 'label': u'Completion Date',
'label': 'Priority', 'oldfieldname': u'completion_date',
'oldfieldname': 'priority', 'oldfieldtype': u'Date',
'oldfieldtype': 'Select',
'options': 'Medium\nLow\nHigh',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'project_value', 'fieldname': u'act_completion_date',
'fieldtype': 'Currency', 'fieldtype': u'Date',
'idx': 6, 'label': u'Actual Completion Date',
'label': 'Project Value', 'oldfieldname': u'act_completion_date',
'oldfieldname': 'project_value', 'oldfieldtype': u'Date',
'oldfieldtype': 'Currency',
'permlevel': 0,
'reqd': 1,
'trigger': 'Client'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'gross_margin_value',
'fieldtype': 'Currency',
'idx': 7,
'label': 'Gross Margin Value',
'oldfieldname': 'gross_margin_value',
'oldfieldtype': 'Currency',
'permlevel': 0,
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'per_gross_margin',
'fieldtype': 'Currency',
'idx': 8,
'label': 'Gross Margin %',
'oldfieldname': 'per_gross_margin',
'oldfieldtype': 'Currency',
'permlevel': 0,
'reqd': 1
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'est_material_cost',
'fieldtype': 'Currency',
'idx': 9,
'label': 'Estimated Material Cost',
'oldfieldname': 'est_material_cost',
'oldfieldtype': 'Currency',
'permlevel': 0,
'trigger': 'Client'
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'project_type',
'fieldtype': 'Data',
'idx': 10,
'label': 'Project Type',
'oldfieldname': 'project_type',
'oldfieldtype': 'Data',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'project_start_date', 'fieldname': u'amemdment_date',
'fieldtype': 'Date', 'fieldtype': u'Date',
'idx': 11,
'in_filter': 1,
'label': 'Project Start Date',
'oldfieldname': 'project_start_date',
'oldfieldtype': 'Date',
'permlevel': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'completion_date',
'fieldtype': 'Date',
'idx': 12,
'label': 'Completion Date',
'oldfieldname': 'completion_date',
'oldfieldtype': 'Date',
'permlevel': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'act_completion_date',
'fieldtype': 'Date',
'idx': 13,
'label': 'Actual Completion Date',
'oldfieldname': 'act_completion_date',
'oldfieldtype': 'Date',
'permlevel': 0
},
# DocField
{
'doctype': 'DocField',
'fieldname': 'amended_from',
'fieldtype': 'Data',
'hidden': 1, 'hidden': 1,
'idx': 14, 'label': u'Amemdment Date',
'label': 'Amended From',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': u'amemdment_date',
'oldfieldtype': 'Data', 'oldfieldtype': u'Date',
'permlevel': 1
},
# DocField
{
'doctype': u'DocField',
'fieldname': u'amended_from',
'fieldtype': u'Data',
'hidden': 1,
'label': u'Amended From',
'no_copy': 1,
'oldfieldname': u'amended_from',
'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'print_hide': 0 'print_hide': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'amemdment_date', 'fieldtype': u'Section Break',
'fieldtype': 'Date', 'label': u'Details',
'hidden': 1, 'oldfieldtype': u'Section Break',
'idx': 15,
'label': 'Amemdment Date',
'no_copy': 1,
'oldfieldname': 'amemdment_date',
'oldfieldtype': 'Date',
'permlevel': 1
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Section Break',
'idx': 16,
'label': 'Project Details',
'oldfieldtype': 'Section Break',
'options': 'Simple',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Column Break', 'fieldname': u'notes',
'idx': 17, 'fieldtype': u'Text Editor',
'oldfieldtype': 'Column Break', 'label': u'Notes',
'oldfieldname': u'notes',
'oldfieldtype': u'Text Editor',
'permlevel': 0
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Section Break',
'label': u'Financials',
'oldfieldtype': u'Section Break',
'permlevel': 0
},
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'project_value',
'fieldtype': u'Currency',
'label': u'Project Value',
'oldfieldname': u'project_value',
'oldfieldtype': u'Currency',
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'reqd': 0,
'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldname': u'est_material_cost',
'idx': 18, 'fieldtype': u'Currency',
'oldfieldtype': 'Section Break', 'label': u'Estimated Material Cost',
'options': 'Simple', 'oldfieldname': u'est_material_cost',
'oldfieldtype': u'Currency',
'permlevel': 0,
'trigger': u'Client'
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Column Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldname': 'notes', 'doctype': u'DocField',
'fieldtype': 'Text Editor', 'fieldname': u'per_gross_margin',
'idx': 19, 'fieldtype': u'Currency',
'label': 'Notes', 'label': u'Gross Margin %',
'oldfieldname': 'notes', 'oldfieldname': u'per_gross_margin',
'oldfieldtype': 'Text Editor', 'oldfieldtype': u'Currency',
'permlevel': 0,
'reqd': 0
},
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'gross_margin_value',
'fieldtype': u'Currency',
'label': u'Gross Margin Value',
'oldfieldname': u'gross_margin_value',
'oldfieldtype': u'Currency',
'permlevel': 0,
'reqd': 0
},
# DocField
{
'doctype': u'DocField',
'fieldtype': u'Section Break',
'label': u'Customer Details',
'oldfieldtype': u'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'colour': u'White:FFF',
'fieldtype': 'Section Break', 'description': u'Select name of Customer to whom project belongs',
'idx': 20, 'doctype': u'DocField',
'label': 'Customer Details', 'fieldname': u'customer',
'oldfieldtype': 'Section Break', 'fieldtype': u'Link',
'permlevel': 0
},
# DocField
{
'colour': 'White:FFF',
'description': 'Select name of Customer to whom project belongs',
'doctype': 'DocField',
'fieldname': 'customer',
'fieldtype': 'Link',
'idx': 21,
'in_filter': 1, 'in_filter': 1,
'label': 'Customer', 'label': u'Customer',
'oldfieldname': 'customer', 'oldfieldname': u'customer',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Customer', 'options': u'Customer',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 0, 'reqd': 0,
'search_index': 1, 'search_index': 1,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_name', 'fieldname': u'customer_name',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 22,
'in_filter': 1, 'in_filter': 1,
'label': 'Customer Name', 'label': u'Customer Name',
'oldfieldname': 'customer_name', 'oldfieldname': u'customer_name',
'oldfieldtype': 'Data', 'oldfieldtype': u'Data',
'permlevel': 1, 'permlevel': 1,
'search_index': 0 'search_index': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_address', 'fieldname': u'customer_address',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'idx': 23, 'label': u'Customer Address',
'label': 'Customer Address', 'oldfieldname': u'customer_address',
'oldfieldname': 'customer_address', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_person', 'fieldname': u'contact_person',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 24,
'in_filter': 1, 'in_filter': 1,
'label': 'Contact Person', 'label': u'Contact Person',
'oldfieldname': 'contact_person', 'oldfieldname': u'contact_person',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'permlevel': 0, 'permlevel': 0,
'reqd': 0, 'reqd': 0,
'trigger': 'Client' 'trigger': u'Client'
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'territory', 'fieldname': u'territory',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 25,
'in_filter': 1, 'in_filter': 1,
'label': 'Territory', 'label': u'Territory',
'oldfieldname': 'territory', 'oldfieldname': u'territory',
'oldfieldtype': 'Link', 'oldfieldtype': u'Link',
'options': 'Territory', 'options': u'Territory',
'permlevel': 0, 'permlevel': 0,
'reqd': 0, 'reqd': 0,
'search_index': 0, 'trigger': u'Client'
'trigger': 'Client'
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'contact_no', 'fieldname': u'contact_no',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 26, 'label': u'Contact No',
'label': 'Contact No', 'oldfieldname': u'contact_no',
'oldfieldname': 'contact_no', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'email_id', 'fieldname': u'email_id',
'fieldtype': 'Data', 'fieldtype': u'Data',
'idx': 27, 'label': u'Email Id',
'label': 'Email Id', 'oldfieldname': u'email_id',
'oldfieldname': 'email_id', 'oldfieldtype': u'Data',
'oldfieldtype': 'Data',
'permlevel': 1 'permlevel': 1
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'customer_group', 'fieldname': u'customer_group',
'fieldtype': 'Link', 'fieldtype': u'Link',
'idx': 28, 'label': u'Customer Group',
'label': 'Customer Group', 'oldfieldname': u'customer_group',
'oldfieldname': 'customer_group', 'oldfieldtype': u'Link',
'oldfieldtype': 'Link', 'options': u'Customer Group',
'options': 'Customer Group', 'permlevel': 1
'permlevel': 1,
'search_index': 0
}, },
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': u'White:FFF',
'description': 'Important dates and commitments in your project life cycle', 'description': u'Important dates and commitments in your project life cycle',
'doctype': 'DocField', 'doctype': u'DocField',
'fieldtype': 'Section Break', 'fieldtype': u'Section Break',
'idx': 29, 'label': u'Milestones',
'label': 'Milestones', 'oldfieldtype': u'Section Break',
'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'project_milestones', 'fieldname': u'project_milestones',
'fieldtype': 'Table', 'fieldtype': u'Table',
'idx': 30, 'label': u'Project Milestones',
'label': 'Project Milestones', 'oldfieldname': u'project_milestones',
'oldfieldname': 'project_milestones', 'oldfieldtype': u'Table',
'oldfieldtype': 'Table', 'options': u'Project Milestone',
'options': 'Project Milestone',
'permlevel': 0 'permlevel': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': u'DocField',
'fieldname': 'trash_reason', 'fieldname': u'trash_reason',
'fieldtype': 'Small Text', 'fieldtype': u'Small Text',
'hidden': 1, 'hidden': 1,
'idx': 31, 'label': u'Trash Reason',
'label': 'Trash Reason', 'oldfieldname': u'trash_reason',
'oldfieldname': 'trash_reason', 'oldfieldtype': u'Small Text',
'oldfieldtype': 'Small Text', 'permlevel': 0,
'print_hide': 1
},
# DocField
{
'colour': u'White:FFF',
'doctype': u'DocField',
'fieldname': u'file_list',
'fieldtype': u'Small Text',
'hidden': 1,
'label': u'File List',
'no_copy': 1,
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
} }

View File

@ -55,7 +55,7 @@ cur_frm.cscript.onload = function(doc, dt, dn) {
if (ci==0){ if (ci==0){
var d1 = $a(cell,'div'); var d1 = $a(cell,'div');
var img = $a(cell,'img','',{width:'40px'}); var img = $a(cell,'img','',{width:'40px'});
set_user_img(img,d[ri][0]) img.src = wn.user_info(d[ri][0]).image;
var d2 = $a(cell,'div'); var d2 = $a(cell,'div');
d2.innerHTML = d[ri][0] + ' on: ' + date.str_to_user(d[ri][1]); d2.innerHTML = d[ri][0] + ' on: ' + date.str_to_user(d[ri][1]);
} }

View File

@ -1,335 +0,0 @@
# Module Def, Selling
[
# These values are common in all dictionaries
{
'creation': '2011-07-01 17:39:08',
'docstatus': 0,
'modified': '2012-01-23 18:25:58',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all Module Def Role
{
'doctype': 'Module Def Role',
'name': '__common__',
'parent': 'Selling',
'parentfield': 'roles',
'parenttype': 'Module Def'
},
# These values are common for all Module Def Item
{
'doctype': 'Module Def Item',
'name': '__common__',
'parent': 'Selling',
'parentfield': 'items',
'parenttype': 'Module Def'
},
# These values are common for all Module Def
{
'disabled': 'No',
'doctype': u'Module Def',
'doctype_list': 'Print Format, Sales Order\nPrint Format, Quotation Format\nPrint Format, Delivery Note Format',
'file_list': 'crm.gif,FileData/00208',
'is_hidden': 'No',
'module_desc': 'Manage you sales team, with your leads, customers, quotes, orders etc.',
'module_icon': 'Selling.gif',
'module_label': 'Selling',
'module_name': 'Selling',
'module_seq': 3,
'name': '__common__'
},
# Module Def, Selling
{
'doctype': u'Module Def',
'name': 'Selling'
},
# Module Def Item
{
'description': 'Database of potential customers you need to keep in touch with',
'display_name': 'Lead',
'doc_name': 'Lead',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'status\nlead_owner\nlead_name\ncontact_no\ncontact_by\ncontact_date\nexpected_month'
},
# Module Def Item
{
'description': 'Your Customer Database',
'display_name': 'Customer',
'doc_name': 'Customer',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'customer_group\ncountry'
},
# Module Def Item
{
'description': 'Specific requirements from a Lead / Customer',
'display_name': 'Enquiry',
'doc_name': 'Enquiry',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'status\ntransaction_date\ncustomer\ncontact_person\ncost_center\ncompany'
},
# Module Def Item
{
'description': 'Offers you have made to your customers',
'display_name': 'Quotation',
'doc_name': 'Quotation',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'status\ntransaction_date\ncustomer\ncontact_person\ncost_center\ngrand_total\ncompany'
},
# Module Def Item
{
'description': 'Database of confirmed Sale Orders from your Customers',
'display_name': 'Sales Order',
'doc_name': 'Sales Order',
'doc_type': 'Forms',
'doctype': 'Module Def Item',
'fields': 'status\ntransaction_date\ncustomer\ncost_center\ngrand_total\nper_delivered\nper_billed\ncompany'
},
# Module Def Item
{
'display_name': 'Sales Dashboard',
'doc_name': 'Sales Dashboard',
'doc_type': 'Pages',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'doc_name': 'Reports',
'doc_type': 'Separator',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'doc_name': 'Reports',
'doc_type': 'Separator',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Gross Profit',
'doc_name': 'Delivery Note Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Territory, Item Group wise GP',
'doc_name': 'Delivery Note',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Itemwise Sales Details',
'doc_name': 'Sales Order Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Itemwise Delivery Details',
'doc_name': 'Delivery Note Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Sales Personwise Transaction Summary',
'doc_name': 'Sales Person',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Total Target Variance Report',
'doc_name': 'Target Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Sales Persons Target Variance (Item Group wise)',
'doc_name': 'Target Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Territories Target Variance (Item Group wise)',
'doc_name': 'Target Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Sales Order Pending Items',
'doc_name': 'Sales Order Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Sales Orderwise Booking & Delivery Summary',
'doc_name': 'Sales Order Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Sales Orderwise Pending Qty To Deliver',
'doc_name': 'Sales Order Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Sales Orderwise Pending Amount To Bill',
'doc_name': 'Sales Order Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Delivered Items to be Install',
'doc_name': 'Delivery Note Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Itemwise Price List',
'doc_name': 'Ref Rate Detail',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'display_name': 'Follow-up Report',
'doc_name': 'Follow up',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Ledger details of your debtors',
'display_name': "Debtor's Ledger",
'doc_name': 'GL Entry',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Report displaying Customer, Primary Address Details & Primary Contact Details',
'display_name': 'Customer Address Contact',
'doc_name': 'Customer',
'doc_type': 'Reports',
'doctype': 'Module Def Item'
},
# Module Def Item
{
'description': 'Customer Category',
'display_name': 'Customer Group',
'doc_name': 'Customer Group',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item',
'fields': 'id\ndescription'
},
# Module Def Item
{
'description': 'Sales person details',
'display_name': 'Sales Person',
'doc_name': 'Sales Person',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item',
'fields': 'id\nterritory\ndepartment\nmobile_no\nemail_id'
},
# Module Def Item
{
'description': 'Item master',
'display_name': 'Item',
'doc_name': 'Item',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item',
'fields': 'name\nitem_group\ndescription'
},
# Module Def Item
{
'description': 'Sales partner details',
'display_name': 'Sales Partner',
'doc_name': 'Sales Partner',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item',
'fields': 'id\npartner_type\nmobile\nemail\nterritory'
},
# Module Def Item
{
'description': 'Business campaigns',
'display_name': 'Campaign',
'doc_name': 'Campaign',
'doc_type': 'Setup Forms',
'doctype': 'Module Def Item',
'fields': 'id\ncampaign_name\ndescription'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Administrator'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Sales Manager'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Sales User'
},
# Module Def Role
{
'doctype': 'Module Def Role',
'role': 'Sales Master Manager'
}
]

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
$import(Contact Control) wn.require('erpnext/setup/doctype/contact_control/contact_control.js');
/* ********************************* onload ********************************************* */ /* ********************************* onload ********************************************* */
@ -68,19 +68,10 @@ cur_frm.cscript.refresh = function(doc,dt,dn) {
cur_frm.cscript.make_address = function() { cur_frm.cscript.make_address = function() {
if(!cur_frm.address_list) { if(!cur_frm.address_list) {
cur_frm.address_list = new wn.widgets.Listing({ cur_frm.address_list = new wn.ui.Listing({
parent: cur_frm.fields_dict['Address HTML'].wrapper, parent: cur_frm.fields_dict['Address HTML'].wrapper,
page_length: 2, page_length: 2,
new_doctype: "Address", new_doctype: "Address",
new_doc_onload: function(dn) {
ndoc = locals["Address"][dn];
ndoc.customer = cur_frm.doc.name;
ndoc.customer_name = cur_frm.doc.customer_name;
ndoc.address_type = 'Office';
},
new_doc_onsave: function(dn) {
cur_frm.address_list.run()
},
get_query: function() { get_query: function() {
return "select name, address_type, address_line1, address_line2, city, state, country, pincode, fax, email_id, phone, is_primary_address, is_shipping_address from tabAddress where customer='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_address desc" return "select name, address_type, address_line1, address_line2, city, state, country, pincode, fax, email_id, phone, is_primary_address, is_shipping_address from tabAddress where customer='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_address desc"
}, },
@ -110,21 +101,10 @@ cur_frm.cscript.make_address = function() {
cur_frm.cscript.make_contact = function() { cur_frm.cscript.make_contact = function() {
if(!cur_frm.contact_list) { if(!cur_frm.contact_list) {
cur_frm.contact_list = new wn.widgets.Listing({ cur_frm.contact_list = new wn.ui.Listing({
parent: cur_frm.fields_dict['Contact HTML'].wrapper, parent: cur_frm.fields_dict['Contact HTML'].wrapper,
page_length: 2, page_length: 2,
new_doctype: "Contact", new_doctype: "Contact",
new_doc_onload: function(dn) {
ndoc = locals["Contact"][dn];
ndoc.customer = cur_frm.doc.name;
ndoc.customer_name = cur_frm.doc.customer_name;
if(cur_frm.doc.customer_type == 'Individual') {
ndoc.first_name = cur_frm.doc.customer_name;
}
},
new_doc_onsave: function(dn) {
cur_frm.contact_list.run()
},
get_query: function() { get_query: function() {
return "select name, first_name, last_name, email_id, phone, mobile_no, department, designation, is_primary_contact from tabContact where customer='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_contact desc" return "select name, first_name, last_name, email_id, phone, mobile_no, department, designation, is_primary_contact from tabContact where customer='"+cur_frm.docname+"' and docstatus != 2 order by is_primary_contact desc"
}, },
@ -174,6 +154,7 @@ cur_frm.fields_dict['lead_name'].get_query = function(doc,dt,dn){
// make quotation list // make quotation list
// -------------------- // --------------------
cur_frm.cscript.make_qtn_list = function(parent,doc){ cur_frm.cscript.make_qtn_list = function(parent,doc){
wn.require('lib/js/legacy/widgets/listing.js');
var lst = new Listing(); var lst = new Listing();
lst.colwidths = ['5%','20%','20%','20%','20%','15%']; lst.colwidths = ['5%','20%','20%','20%','20%','15%'];
@ -191,6 +172,8 @@ cur_frm.cscript.make_qtn_list = function(parent,doc){
// make so list // make so list
// ------------- // -------------
cur_frm.cscript.make_so_list = function(parent,doc){ cur_frm.cscript.make_so_list = function(parent,doc){
wn.require('lib/js/legacy/widgets/listing.js');
var lst = new Listing(); var lst = new Listing();
lst.colwidths = ['5%','20%','20%','30%','25%']; lst.colwidths = ['5%','20%','20%','30%','25%'];
lst.colnames = ['Sr.','Id','Status','Sales Order Date','Grand Total']; lst.colnames = ['Sr.','Id','Status','Sales Order Date','Grand Total'];
@ -207,6 +190,8 @@ cur_frm.cscript.make_so_list = function(parent,doc){
// make dn list // make dn list
// ------------- // -------------
cur_frm.cscript.make_dn_list = function(parent,doc){ cur_frm.cscript.make_dn_list = function(parent,doc){
wn.require('lib/js/legacy/widgets/listing.js');
var lst = new Listing(); var lst = new Listing();
lst.colwidths = ['5%','20%','20%','20%','20%','15%']; lst.colwidths = ['5%','20%','20%','20%','20%','15%'];
lst.colnames = ['Sr.','Id','Status','Delivery Note Date','Territory','Grand Total']; lst.colnames = ['Sr.','Id','Status','Delivery Note Date','Territory','Grand Total'];
@ -223,6 +208,8 @@ cur_frm.cscript.make_dn_list = function(parent,doc){
// make si list // make si list
// ------------- // -------------
cur_frm.cscript.make_si_list = function(parent,doc){ cur_frm.cscript.make_si_list = function(parent,doc){
wn.require('lib/js/legacy/widgets/listing.js');
var lst = new Listing(); var lst = new Listing();
lst.colwidths = ['5%','20%','20%','20%','20%','15%']; lst.colwidths = ['5%','20%','20%','20%','20%','15%'];
lst.colnames = ['Sr.','Id','Posting Date','Due Date','Debit To','Grand Total']; lst.colnames = ['Sr.','Id','Posting Date','Due Date','Debit To','Grand Total'];

View File

@ -203,7 +203,7 @@
# DocField # DocField
{ {
'colour': u'White:FFF', 'colour': u'White:FFF',
'description': u'<a href="javascript:cur_frm.cscript.CGHelp();">To manage Customer Groups, click here</a>', 'description': u'<a href="#!Sales Browser/Customer Group">To manage Customer Groups, click here</a>',
'doctype': u'DocField', 'doctype': u'DocField',
'fieldname': u'customer_group', 'fieldname': u'customer_group',
'fieldtype': u'Link', 'fieldtype': u'Link',
@ -223,7 +223,7 @@
# DocField # DocField
{ {
'colour': u'White:FFF', 'colour': u'White:FFF',
'description': u'<a href="javascript:cur_frm.cscript.TerritoryHelp();">To manage Territory, click here</a>', 'description': u'<a href="#!Sales Browser/Territory">To manage Territory, click here</a>',
'doctype': u'DocField', 'doctype': u'DocField',
'fieldname': u'territory', 'fieldname': u'territory',
'fieldtype': u'Link', 'fieldtype': u'Link',

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
$import(SMS Control) wn.require('erpnext/utilities/doctype/sms_control/sms_control.js');
cur_frm.cscript.refresh = function(doc, cdt, cdn){ cur_frm.cscript.refresh = function(doc, cdt, cdn){

View File

@ -16,7 +16,7 @@
// Module CRM // Module CRM
$import(SMS Control) wn.require('erpnext/utilities/doctype/sms_control/sms_control.js');
cur_frm.cscript.onload = function(doc, cdt, cdn) { cur_frm.cscript.onload = function(doc, cdt, cdn) {
if(user =='Guest'){ if(user =='Guest'){

Some files were not shown because too many files have changed in this diff Show More