Skip to content

Commit 57cfdfb

Browse files
committed
Merge branch 'staging' into production
2 parents e719d90 + 183c8fc commit 57cfdfb

File tree

7 files changed

+18
-59
lines changed

7 files changed

+18
-59
lines changed

bloomstack_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
__version__ = '2.0.6'
4+
__version__ = '2.0.7'

bloomstack_core/bloomstack_core/custom/bom.json

Lines changed: 0 additions & 54 deletions
This file was deleted.

bloomstack_core/bloomstack_core/custom/package_tag.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@
419419
"parenttype": null,
420420
"property": "search_fields",
421421
"property_type": "Data",
422-
"value": "item_code,item_name,package_tag,item_group"
422+
"value": "item_code,item_name,item_group"
423423
}
424424
],
425425
"sync_on_migrate": 1
426-
}
426+
}

bloomstack_core/bloomstack_core/print_format/cheque_with_remittance/cheque_with_remittance.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"docstatus": 0,
99
"doctype": "Print Format",
1010
"font": "Default",
11-
"html": "\n<style>\n\t.print-format {\n\t\tpadding: 0px;\n\t}\n\t@media screen {\n\t\t.print-format {\n\t\t\tpadding: 0in;\n\t\t}\n\t}\n</style>\n<div style=\"position: relative; top:0.0cm\">\n\t<div style=\"width:20.0cm;height:9.0cm;\">\n\t\t<span style=\"top:2.0cm; left:11.15cm;\n\t\t\tposition: absolute;\">\n\t\t\t{{ frappe.utils.formatdate(doc.reference_date) or '' }}\n\t\t</span>\n\t\t<span style=\"top:0.75cm;left:18.0cm;\n\t\t\tposition: absolute; min-width: 6cm;\">\n\t\t\t{{ doc.account_no or '' }}\n\t\t</span>\n\t\t<span style=\"top:3.5cm;left: 3.0cm;\n\t\t\tposition: absolute; min-width: 6cm;\">\n\t\t\t{{doc.party_name}}\n\t\t</span>\n\t\t<span style=\"top:3.5cm;left: 16.5cm;\n\t\t\tposition: absolute; min-width: 4cm;\">\n\t\t\t{{doc.get_formatted(\"base_paid_amount\") or doc.get_formatted(\"base_received_amount\")}}\n\t\t</span>\n\t\t<span style=\"top:1.5cm;left: 4.0cm;\n\t\t\tposition: absolute; min-width: 6cm;\">\n\t\t\t{{doc.company}}\n\t\t</span>\n\t</div>\n</div>\n\n\n<div class=\"remittance padding\">\n <div class=\"wrapper\">\n <div class=\"bank-info\">\n <p class=\"text-left\">{{doc.company}}</p>\n <p class=\"text-middle\">Check Number : {{doc.reference_no or ''}}</p>\n <p class=\"text-right\">Check Date: {{ doc.reference_date or '' }}</p>\n </div>\n <table>\n <thead>\n <tr>\n <td width=\"15%\">Invoice Date</td>\n <td width=\"15%\">Invoice Number</td>\n <td width=\"55%\">Memo</td>\n <td class=\"text-right\" width=\"15%\">Amount Paid</td>\n </tr>\n </thead>\n <tbody>\n {% for reference in doc.references %}\n <tr>\n <td>{{ frappe.utils.formatdate(reference.due_date, \"MM/dd/yyyy\") }}</td>\n <td>{{reference.bill_no}}</td>\n {% set remarks = frappe.db.get_value(\"Purchase Invoice\", reference.reference_name, \"remarks\") %}\n <td>{{ remarks if remarks != \"No Remarks\" else \"\" }}</td>\n <td class=\"text-right\">{{ frappe.format_value(reference.total_amount, df = \"Currency\") }}</td>\n </tr>\n {% endfor %}\n </tbody>\n <tfoot>\n <tr>\n <td colspan = \"3\">Total Paid</td>\n <td class=\"text-right\">{{doc.get_formatted(\"paid_amount\")}}</td>\n </tr>\n </tfoot>\n </table>\n </div>\n</div>\n\n<div class=\"remittance no-padding\">\n <div class=\"wrapper\">\n <div class=\"bank-info\">\n <p class=\"text-left\">{{doc.company}}</p>\n <p class=\"text-middle\">Check Number : {{doc.reference_no or ''}}</p>\n <p class=\"text-right\">Check Date: {{ doc.reference_date or '' }}</p>\n </div>\n <table>\n <thead>\n <tr>\n <td width=\"15%\">Invoice Date</td>\n <td width=\"15%\">Invoice Number</td>\n <td width=\"55%\">Memo</td>\n <td class=\"text-right\" width=\"15%\">Amount Paid</td>\n </tr>\n </thead>\n <tbody>\n {% for reference in doc.references %}\n <tr>\n <td>{{ frappe.utils.formatdate(reference.due_date, \"MM/dd/yyyy\") }}</td>\n <td>{{reference.bill_no}}</td>\n {% set remarks = frappe.db.get_value(\"Purchase Invoice\", reference.reference_name, \"remarks\") %}\n <td>{{ remarks if remarks != \"No Remarks\" else \"\" }}</td>\n <td class=\"text-right\">{{ frappe.format_value(reference.total_amount, df = \"Currency\") }}</td>\n </tr>\n {% endfor %}\n </tbody>\n <tfoot>\n <tr>\n <td colspan = \"3\">Total Paid</td>\n <td class=\"text-right\">{{doc.get_formatted(\"paid_amount\")}}</td>\n </tr>\n </tfoot>\n </table>\n </div>\n</div>\n",
11+
"html": "\n<style>\n\t.print-format {\n\t\tpadding: 0px;\n\t}\n\t@media screen {\n\t\t.print-format {\n\t\t\tpadding: 0in;\n\t\t}\n\t}\n</style>\n<div style=\"position: relative; top:0.0cm\">\n\t<div style=\"width:20.0cm;height:9.0cm;\">\n\t\t<span style=\"top:2.0cm; left:11.15cm;\n\t\t\tposition: absolute;\">\n\t\t\t{{ frappe.utils.formatdate(doc.reference_date) or '' }}\n\t\t</span>\n\t\t<span style=\"top:0.75cm;left:18.0cm;\n\t\t\tposition: absolute; min-width: 6cm;\">\n\t\t\t{{ doc.account_no or '' }}\n\t\t</span>\n\t\t<span style=\"top:3.5cm;left: 3.0cm;\n\t\t\tposition: absolute; min-width: 6cm;\">\n\t\t\t{{doc.party_name}}\n\t\t</span>\n\t\t<span style=\"top:3.5cm;left: 16.5cm;\n\t\t\tposition: absolute; min-width: 4cm;\">\n\t\t\t{{doc.get_formatted(\"base_paid_amount\") or doc.get_formatted(\"base_received_amount\")}}\n\t\t</span>\n\t\t<span style=\"top:1.5cm;left: 4.0cm;\n\t\t\tposition: absolute; min-width: 6cm;\">\n\t\t\t{{doc.company}}\n\t\t</span>\n\t\t\t<span style=\"top:5cm;left: 3.0cm;\n\t\t\tposition: absolute; min-width: 6cm;\">\n\t\t\t{{frappe.utils.money_in_words(doc.base_paid_amount)}}\n\t\t</span>\n\t</div>\n</div>\n\n\n<div class=\"remittance padding\">\n <div class=\"wrapper\">\n <div class=\"bank-info\">\n <p class=\"text-left\">{{doc.company}}</p>\n <p class=\"text-middle\">Check Number : {{doc.reference_no or ''}}</p>\n <p class=\"text-right\">Check Date: {{ doc.reference_date or '' }}</p>\n </div>\n <table>\n <thead>\n <tr>\n <td width=\"15%\">Invoice Date</td>\n <td width=\"15%\">Invoice Number</td>\n <td width=\"55%\">Memo</td>\n <td class=\"text-right\" width=\"15%\">Amount Paid</td>\n </tr>\n </thead>\n <tbody>\n {% for reference in doc.references %}\n <tr>\n <td>{{ frappe.utils.formatdate(reference.due_date, \"MM/dd/yyyy\") }}</td>\n <td>{{reference.bill_no}}</td>\n {% set remarks = frappe.db.get_value(\"Purchase Invoice\", reference.reference_name, \"remarks\") %}\n <td>{{ remarks if remarks != \"No Remarks\" else \"\" }}</td>\n <td class=\"text-right\">{{ frappe.format_value(reference.total_amount, df = \"Currency\") }}</td>\n </tr>\n {% endfor %}\n </tbody>\n <tfoot>\n <tr>\n <td colspan = \"3\">Total Paid</td>\n <td class=\"text-right\">{{doc.get_formatted(\"paid_amount\")}}</td>\n </tr>\n </tfoot>\n </table>\n </div>\n</div>\n\n<div class=\"remittance no-padding\">\n <div class=\"wrapper\">\n <div class=\"bank-info\">\n <p class=\"text-left\">{{doc.company}}</p>\n <p class=\"text-middle\">Check Number : {{doc.reference_no or ''}}</p>\n <p class=\"text-right\">Check Date: {{ doc.reference_date or '' }}</p>\n </div>\n <table>\n <thead>\n <tr>\n <td width=\"15%\">Invoice Date</td>\n <td width=\"15%\">Invoice Number</td>\n <td width=\"55%\">Memo</td>\n <td class=\"text-right\" width=\"15%\">Amount Paid</td>\n </tr>\n </thead>\n <tbody>\n {% for reference in doc.references %}\n <tr>\n <td>{{ frappe.utils.formatdate(reference.due_date, \"MM/dd/yyyy\") }}</td>\n <td>{{reference.bill_no}}</td>\n {% set remarks = frappe.db.get_value(\"Purchase Invoice\", reference.reference_name, \"remarks\") %}\n <td>{{ remarks if remarks != \"No Remarks\" else \"\" }}</td>\n <td class=\"text-right\">{{ frappe.format_value(reference.total_amount, df = \"Currency\") }}</td>\n </tr>\n {% endfor %}\n </tbody>\n <tfoot>\n <tr>\n <td colspan = \"3\">Total Paid</td>\n <td class=\"text-right\">{{doc.get_formatted(\"paid_amount\")}}</td>\n </tr>\n </tfoot>\n </table>\n </div>\n</div>\n",
1212
"idx": 0,
1313
"line_breaks": 0,
14-
"modified": "2020-10-26 06:36:08.614152",
14+
"modified": "2020-12-24 02:08:12.055664",
1515
"modified_by": "Administrator",
1616
"module": "Bloomstack Core",
1717
"name": "Cheque with Remittance",

bloomstack_core/patches.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ bloomstack_core.patches.v0_0_1.set_item_group_in_batch
1212
bloomstack_core.patches.v0_0_1.set_task_name_in_timesheet
1313
bloomstack_core.patches.v0_0_1.move_compliance_item_to_item
1414
bloomstack_core.patches.v0_0_1.remove_bloomstack_user_integration
15+
bloomstack_core.patches.v0_0_1.delete_bom_from_property_setter
16+
bloomstack_core.patches.v0_0_1.removed_mandatory_for_attachment_field
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import frappe
2+
3+
def execute():
4+
# Delete BOM property from property setter.
5+
frappe.db.sql("""DELETE FROM `tabProperty Setter`
6+
WHERE
7+
doc_type='BOM' AND property='title_field'""")
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import frappe
2+
3+
def execute():
4+
frappe.delete_doc_if_exists("Custom Field", "Job Applicant-resume_attachment-reqd")

0 commit comments

Comments
 (0)