Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore: release v14 #34733

Merged
merged 44 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
3e67994
fix: lost opportunity report issue (#34626)
mergify[bot] Mar 29, 2023
e3de229
Asset maintenance task add dropdown "3 Yearly" (#34607)
BevanTony1 Mar 29, 2023
6819f01
Merge pull request #34640 from frappe/mergify/bp/version-14-hotfix/pr…
anandbaburajan Mar 29, 2023
8d9305e
fix: incorrect arg name in asset value adjustment
anandbaburajan Mar 30, 2023
f47be46
fix: serial no with zero quantity issue in stock reco
rohitwaghchaure Mar 30, 2023
4dfc660
Merge pull request #34650 from frappe/mergify/bp/version-14-hotfix/pr…
anandbaburajan Mar 30, 2023
bae476c
Merge pull request #34652 from frappe/mergify/bp/version-14-hotfix/pr…
rohitwaghchaure Mar 30, 2023
8510c39
chore: auto fill asset name and available for use date (backport #346…
mergify[bot] Mar 30, 2023
a0df234
chore: improve asset depr posting failure msg (#34661)
anandbaburajan Mar 30, 2023
3494c9c
fix: incorrect balance qty in the stock ledger report
rohitwaghchaure Mar 30, 2023
bb5eeb6
fix: posting time issue
rohitwaghchaure Mar 29, 2023
61858a6
fix: plaid log_error syntax issue (backport #34642) (#34667)
mergify[bot] Mar 30, 2023
27a3f2c
Merge pull request #34665 from frappe/mergify/bp/version-14-hotfix/pr…
anandbaburajan Mar 30, 2023
9ce281d
Merge pull request #34671 from frappe/mergify/bp/version-14-hotfix/pr…
rohitwaghchaure Mar 30, 2023
e98e64f
Merge pull request #34669 from frappe/mergify/bp/version-14-hotfix/pr…
rohitwaghchaure Mar 30, 2023
5e03a4e
fix: Column value mismatch in COA blank template (#34658)
mergify[bot] Mar 31, 2023
5e28d02
fix: Total debit and credit while importing via Data Import (#34659)
mergify[bot] Mar 31, 2023
5ef98fc
chore: make `Production Plan Item Reference` table hidden in Producti…
s-aga-r Mar 31, 2023
bd0c20f
Merge pull request #34681 from frappe/mergify/bp/version-14-hotfix/pr…
s-aga-r Mar 31, 2023
b835760
fix: enclose ternary operator in parentheses
ruthra-kumar Mar 31, 2023
dcf62dc
Merge pull request #34686 from frappe/mergify/bp/version-14-hotfix/pr…
ruthra-kumar Mar 31, 2023
8757435
fix: BOM Update Cost, when no actual qty
s-aga-r Mar 30, 2023
a00459a
fix: Supplier RFQ email link (#34338)
mergify[bot] Apr 1, 2023
f1687cf
fix: Bank clearance for case loan (disburstment/repayment) (#34586)
mergify[bot] Apr 1, 2023
5677f25
fix: Multiple issues in purchase invoice submission (#34600)
mergify[bot] Apr 2, 2023
4ada090
Merge branch 'version-14-hotfix' into mergify/bp/version-14-hotfix/pr…
s-aga-r Apr 2, 2023
b34c78c
Merge pull request #34697 from frappe/mergify/bp/version-14-hotfix/pr…
s-aga-r Apr 2, 2023
c0f7f7d
fix: use stock qty to calculate POS reserved stock
vishdha Apr 3, 2023
be2990e
fix: Allocate tax loss to tax account head on early payment discount …
mergify[bot] Apr 3, 2023
6b866e2
fix(ui): recalculate difference amount on allocation change (#34694)
mergify[bot] Apr 3, 2023
2c54e76
fix: consider qty field precision
s-aga-r Apr 3, 2023
551190a
fix: bom update log not working for large batch size
rohitwaghchaure Apr 3, 2023
dff61ab
Merge pull request #34719 from frappe/mergify/bp/version-14-hotfix/pr…
rohitwaghchaure Apr 3, 2023
9372d46
Merge pull request #34711 from vishdha/reserved_pos_qty
rohitwaghchaure Apr 3, 2023
cbb8dd6
Merge branch 'version-14-hotfix' into mergify/bp/version-14-hotfix/pr…
s-aga-r Apr 3, 2023
12625d8
Merge pull request #34717 from frappe/mergify/bp/version-14-hotfix/pr…
s-aga-r Apr 4, 2023
3896d41
fix: don't include cancelled JVs in assdeprledger report
anandbaburajan Apr 4, 2023
16e554d
Merge branch 'version-14-hotfix' into asdeprledger_cancelled_deprs
anandbaburajan Apr 4, 2023
7c4a9b5
Merge pull request #34737 from AnandBaburajan/asdeprledger_cancelled_…
anandbaburajan Apr 5, 2023
88c8c36
fix: asset monthly WDV and DD schedule [v14] (#34644)
anandbaburajan Apr 5, 2023
3c0cc02
fix!: require sender and message for contact us page (#34707)
mergify[bot] Apr 5, 2023
05d24e3
feat: Auto allocate advance payments only against orders (#34727)
mergify[bot] Apr 5, 2023
3ad5d67
fix: Shop by category fixes (backport #34688) (#34750)
mergify[bot] Apr 5, 2023
8ba1e0f
fix: `payment entry is already created` on posawesome. (backport #347…
mergify[bot] Apr 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"determine_address_tax_category_from",
"column_break_19",
"add_taxes_from_item_tax_template",
"book_tax_discount_loss",
"print_settings",
"show_inclusive_tax_in_print",
"column_break_12",
Expand Down Expand Up @@ -347,14 +348,21 @@
"fieldname": "allow_multi_currency_invoices_against_single_party_account",
"fieldtype": "Check",
"label": "Allow multi-currency invoices against single party account "
},
{
"default": "0",
"description": "Split Early Payment Discount Loss into Income and Tax Loss",
"fieldname": "book_tax_discount_loss",
"fieldtype": "Check",
"label": "Book Tax Loss on Early Payment Discount"
}
],
"icon": "icon-cog",
"idx": 1,
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2022-11-27 21:49:52.538655",
"modified": "2023-03-28 09:50:20.375233",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Accounts Settings",
Expand Down
16 changes: 12 additions & 4 deletions erpnext/accounts/doctype/bank_clearance/bank_clearance.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_payment_entries(self):

loan_disbursement = frappe.qb.DocType("Loan Disbursement")

loan_disbursements = (
query = (
frappe.qb.from_(loan_disbursement)
.select(
ConstantColumn("Loan Disbursement").as_("payment_document"),
Expand All @@ -90,17 +90,22 @@ def get_payment_entries(self):
ConstantColumn(0).as_("debit"),
loan_disbursement.reference_number.as_("cheque_number"),
loan_disbursement.reference_date.as_("cheque_date"),
loan_disbursement.clearance_date.as_("clearance_date"),
loan_disbursement.disbursement_date.as_("posting_date"),
loan_disbursement.applicant.as_("against_account"),
)
.where(loan_disbursement.docstatus == 1)
.where(loan_disbursement.disbursement_date >= self.from_date)
.where(loan_disbursement.disbursement_date <= self.to_date)
.where(loan_disbursement.clearance_date.isnull())
.where(loan_disbursement.disbursement_account.isin([self.bank_account, self.account]))
.orderby(loan_disbursement.disbursement_date)
.orderby(loan_disbursement.name, order=frappe.qb.desc)
).run(as_dict=1)
)

if not self.include_reconciled_entries:
query = query.where(loan_disbursement.clearance_date.isnull())

loan_disbursements = query.run(as_dict=1)

loan_repayment = frappe.qb.DocType("Loan Repayment")

Expand All @@ -113,16 +118,19 @@ def get_payment_entries(self):
ConstantColumn(0).as_("credit"),
loan_repayment.reference_number.as_("cheque_number"),
loan_repayment.reference_date.as_("cheque_date"),
loan_repayment.clearance_date.as_("clearance_date"),
loan_repayment.applicant.as_("against_account"),
loan_repayment.posting_date,
)
.where(loan_repayment.docstatus == 1)
.where(loan_repayment.clearance_date.isnull())
.where(loan_repayment.posting_date >= self.from_date)
.where(loan_repayment.posting_date <= self.to_date)
.where(loan_repayment.payment_account.isin([self.bank_account, self.account]))
)

if not self.include_reconciled_entries:
query = query.where(loan_repayment.clearance_date.isnull())

if frappe.db.has_column("Loan Repayment", "repay_from_salary"):
query = query.where((loan_repayment.repay_from_salary == 0))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,14 @@ def get_template(template_type):

if template_type == "Blank Template":
for root_type in get_root_types():
writer.writerow(["", "", "", 1, "", root_type])
writer.writerow(["", "", "", "", 1, "", root_type])

for account in get_mandatory_group_accounts():
writer.writerow(["", "", "", 1, account, "Asset"])
writer.writerow(["", "", "", "", 1, account, "Asset"])

for account_type in get_mandatory_account_types():
writer.writerow(
["", "", "", 0, account_type.get("account_type"), account_type.get("root_type")]
["", "", "", "", 0, account_type.get("account_type"), account_type.get("root_type")]
)
else:
writer = get_sample_template(writer)
Expand Down
3 changes: 1 addition & 2 deletions erpnext/accounts/doctype/journal_entry/journal_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def validate(self):
self.validate_multi_currency()
self.set_amounts_in_company_currency()
self.validate_debit_credit_amount()

self.set_total_debit_credit()
# Do not validate while importing via data import
if not frappe.flags.in_import:
self.validate_total_debit_and_credit()
Expand Down Expand Up @@ -659,7 +659,6 @@ def validate_debit_credit_amount(self):
frappe.throw(_("Row {0}: Both Debit and Credit values cannot be zero").format(d.idx))

def validate_total_debit_and_credit(self):
self.set_total_debit_credit()
if not (self.voucher_type == "Exchange Gain Or Loss" and self.multi_currency):
if self.difference:
frappe.throw(
Expand Down
2 changes: 0 additions & 2 deletions erpnext/accounts/doctype/payment_entry/payment_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ frappe.ui.form.on('Payment Entry', {
frm.set_currency_labels(["total_amount", "outstanding_amount", "allocated_amount"],
party_account_currency, "references");

frm.set_currency_labels(["amount"], company_currency, "deductions");

cur_frm.set_df_property("source_exchange_rate", "description",
("1 " + frm.doc.paid_from_account_currency + " = [?] " + company_currency));

Expand Down
Loading