mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
Merge branch 'master' into edge
This commit is contained in:
@@ -2,23 +2,21 @@
|
|||||||
{
|
{
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2011-12-14 11:40:47",
|
"creation": "2012-07-03 13:29:54",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2012-04-06 17:29:50"
|
"modified": "2013-01-18 12:57:44"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"autoname": "naming_series:",
|
||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"module": "Accounts",
|
"is_submittable": 1,
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"name": "__common__",
|
"module": "Accounts",
|
||||||
"colour": "White:FFF",
|
|
||||||
"_last_update": "1333712835",
|
|
||||||
"show_in_menu": 0,
|
|
||||||
"max_attachments": 3,
|
"max_attachments": 3,
|
||||||
"version": 19
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"read_only": 0,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "C-Form",
|
"parent": "C-Form",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@@ -29,8 +27,10 @@
|
|||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "C-Form",
|
"parent": "C-Form",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
|
"submit": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
|
"report": 1,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -38,26 +38,7 @@
|
|||||||
"doctype": "DocType"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"print_width": "50%",
|
||||||
"doctype": "DocPerm",
|
|
||||||
"write": 1,
|
|
||||||
"role": "Accounts User",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"create": 1,
|
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 0,
|
|
||||||
"write": 1,
|
|
||||||
"role": "Accounts Manager",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"role": "All",
|
|
||||||
"permlevel": 1,
|
|
||||||
"doctype": "DocPerm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
"fieldname": "column_break0",
|
"fieldname": "column_break0",
|
||||||
@@ -67,11 +48,11 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Series",
|
"label": "Series",
|
||||||
"permlevel": 0,
|
"options": "\nC-FORM/",
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nC-FORM/"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@@ -92,13 +73,14 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer",
|
"label": "Customer",
|
||||||
"permlevel": 0,
|
"options": "Customer",
|
||||||
"fieldname": "customer",
|
"fieldname": "customer",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Customer"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"print_width": "50%",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
"fieldname": "column_break1",
|
"fieldname": "column_break1",
|
||||||
@@ -107,28 +89,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"permlevel": 0,
|
"label": "Company",
|
||||||
|
"options": "link:Company",
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"label": "Company",
|
"permlevel": 0
|
||||||
"options": "link:Company"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Fiscal Year"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"permlevel": 0,
|
"label": "Quarter",
|
||||||
|
"options": "\nI\nII\nIII\nIV",
|
||||||
"fieldname": "quarter",
|
"fieldname": "quarter",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"label": "Quarter",
|
"permlevel": 0
|
||||||
"options": "\nI\nII\nIII\nIV"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@@ -141,11 +123,11 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "State",
|
"label": "State",
|
||||||
"permlevel": 0,
|
"options": "link:State\ncountry='India'",
|
||||||
"fieldname": "state",
|
"fieldname": "state",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:State\ncountry='India'"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@@ -155,11 +137,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"permlevel": 0,
|
"label": "Invoice Details",
|
||||||
|
"options": "C-Form Invoice Detail",
|
||||||
"fieldname": "invoice_details",
|
"fieldname": "invoice_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"label": "Invoice Details",
|
"permlevel": 0
|
||||||
"options": "C-Form Invoice Detail"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@@ -177,5 +159,37 @@
|
|||||||
"fieldtype": "Text",
|
"fieldtype": "Text",
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 1,
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Amended From",
|
||||||
|
"options": "Sales Invoice",
|
||||||
|
"fieldname": "amended_from",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"write": 1,
|
||||||
|
"role": "Accounts User",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"write": 1,
|
||||||
|
"role": "Accounts Manager",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amend": 0,
|
||||||
|
"create": 0,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"role": "All",
|
||||||
|
"cancel": 0,
|
||||||
|
"permlevel": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -178,6 +178,7 @@ class DocType(TransactionBase):
|
|||||||
d.amount = flt(d.qty) * flt(d.incoming_rate)
|
d.amount = flt(d.qty) * flt(d.incoming_rate)
|
||||||
|
|
||||||
def get_incoming_rate(self, args):
|
def get_incoming_rate(self, args):
|
||||||
|
incoming_rate = 0
|
||||||
if self.doc.purpose == "Sales Return" and \
|
if self.doc.purpose == "Sales Return" and \
|
||||||
(self.doc.delivery_note_no or self.doc.sales_invoice_no):
|
(self.doc.delivery_note_no or self.doc.sales_invoice_no):
|
||||||
sle = webnotes.conn.sql("""select name, posting_date, posting_time,
|
sle = webnotes.conn.sql("""select name, posting_date, posting_time,
|
||||||
|
|||||||
Reference in New Issue
Block a user