Merge branch 'develop' into fix/scr-return-rejected-qty

This commit is contained in:
Sagar Sharma
2022-11-18 12:06:59 +05:30
committed by GitHub
5 changed files with 11 additions and 5 deletions

View File

@@ -302,7 +302,7 @@ def check_for_nexus(doc, tax_dict):
item.tax_collectable = flt(0) item.tax_collectable = flt(0)
item.taxable_amount = flt(0) item.taxable_amount = flt(0)
for tax in doc.taxes: for tax in list(doc.taxes):
if tax.account_head == TAX_ACCOUNT_HEAD: if tax.account_head == TAX_ACCOUNT_HEAD:
doc.taxes.remove(tax) doc.taxes.remove(tax)
return return

View File

@@ -159,6 +159,12 @@
} }
} }
.item-img {
@extend .image;
border-radius: 8px 8px 0 0;
object-fit: cover;
}
> .item-detail { > .item-detail {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@@ -103,9 +103,9 @@ erpnext.PointOfSale.ItemSelector = class {
<div class="flex items-center justify-center h-32 border-b-grey text-6xl text-grey-100"> <div class="flex items-center justify-center h-32 border-b-grey text-6xl text-grey-100">
<img <img
onerror="cur_pos.item_selector.handle_broken_image(this)" onerror="cur_pos.item_selector.handle_broken_image(this)"
class="h-full" src="${item_image}" class="h-full item-img" src="${item_image}"
alt="${frappe.get_abbr(item.item_name)}" alt="${frappe.get_abbr(item.item_name)}"
style="object-fit: cover;"> >
</div>`; </div>`;
} else { } else {
return `<div class="item-qty-pill"> return `<div class="item-qty-pill">

View File

@@ -222,7 +222,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters):
from frappe.desk.reportview import get_match_cond from frappe.desk.reportview import get_match_cond
from_doctype = cstr(filters.get("doctype")) from_doctype = cstr(filters.get("doctype"))
if not from_doctype or not frappe.db.exist("DocType", from_doctype): if not from_doctype or not frappe.db.exists("DocType", from_doctype):
return [] return []
mcond = get_match_cond(from_doctype) mcond = get_match_cond(from_doctype)

View File

@@ -394,7 +394,7 @@ def get_opening_balance(filters, columns, sl_entries):
) )
# check if any SLEs are actually Opening Stock Reconciliation # check if any SLEs are actually Opening Stock Reconciliation
for sle in sl_entries: for sle in list(sl_entries):
if ( if (
sle.get("voucher_type") == "Stock Reconciliation" sle.get("voucher_type") == "Stock Reconciliation"
and sle.posting_date == filters.from_date and sle.posting_date == filters.from_date