Merias

block feature for sales order on items

Install Merias

bench get-app https://github.com/ahmadRagheb/merias

Add the Frappe Gems badge to your README

Maintain Merias? Paste this into your README:

[![Listed on Frappe Gems](https://frappegems.com/api/method/frappe_gems.seo.badge?app=ahmadRagheb%2Fmerias)](https://frappegems.com/gems/apps/ahmadRagheb/merias)

About Merias

Merias

Simple custoization to blocked items in Sales Order. to read more please refer to Documentation

This feature applied to: - Product Bundle which contains many items (showed in packed item) - Normal Item

Doctypes :

Recipient : Recipient Name and contact, used to definde the recipient informations, Linked doctype in Sales order. Release Blocked Item : for releasing blocked item in Sales order

Reports:

blocked items : Report to show blocked items

Tasks:

hourly task To msgprint how much sales order is blocked in Sales order with a redirect button to see it all and take action.

hooks:

Sales Order :
  • validate : "merias.api.mapqtytoblockedfield" , This is the start for all the logic we are building, in each items row there is a blcokedqty field equal to stockqty. we used stock qty to cover using different UOM .

  • onupdate : "merias.api.checkavailabilityforitemsbasedonbooked", check that actual qty is more than blocked qty in the warehouse . will check for both packeditems(product bundle items) and normal item.

  • beforeinsert : "merias.api.soteam" check if the creator of Sales order is a sales person , if so added sales team with allocated precentage 100

Sales Invoice
  • onsubmit : merias.api.siforitemsbasedonbooked" check that actual qty is more than blocked qty in the warehouse and and there is enough qty in warehouse to sell the qty in sales invoice . will check for both packed_items(product bundle items) and normal item.
Delivery Note
  • onsubmit : "merias.api.deliverynoteaffectsoblocked" free qty from blockedqty in SO because we deliver .

    NEED DOCS

  • oncancel : "merias.api.deliverynotecancel" add qty to blockedqty in SO because we cancel delivery .

Stock Entry
  • onsubmit : "merias.api.stockentry" For "Material Transfer" type : we calculate the real available qty after subtract blocked qty , and check if transfered qty is really exist in warehouse
  • validate : "merias.api.workflow", Conditional work flow we might can remove this if we used conditional workflow in v12
Customer
  • beforeinsert : "merias.api.generateuniquecustomernumber" naming customer with a naming series

License

MIT

Related Sales & CRM apps for Frappe & ERPNext

  • Crm — Fully featured, open source CRM
  • Flow — Frappe Flow — native AI agents, tools, and triggers for Frappe
  • Sales Kpi — Sales KPI app for ERPNext
  • Crm Override — An example Frappe app that demonstrates how to override Frappe UI based apps.
  • Eseller Suite — A comprehensive frappe app designed to help selling partners thrive on various online platforms like Amazon and Flipkart. With powerful tools for optimization, analytics, and automation, sellers can boost sales, optimize listings, and stay ahead of the competition effortlessly.
  • Sales Prediction — AI-powered sales forecasting using Prophet
  • Dlitscustom — Erpnext Custom Pricing rule , commission , tools etc..
  • Van Sales Pwa — Van Sales PWA: field sales app (customers, invoicing, payments, stock) with backend and frontend source in one app (like HRMS or POS Awesome). Install on any site, build, and open /pwa.