mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 17:33:09 +00:00
refactor(stock): add _service suffix to serial_batch_bundle and quality_inspection modules
Consistent service-module naming: serial_batch_bundle_service.py / quality_inspection_service.py (matching stock_ledger_service.py). Importers updated; engine-module imports (stock.serial_batch_bundle) untouched.
This commit is contained in:
@@ -266,7 +266,7 @@ class StockEntry(StockController, SubcontractingInwardController):
|
||||
|
||||
def validate(self):
|
||||
from erpnext.stock.doctype.putaway_rule.putaway_rule import validate_putaway_capacity
|
||||
from erpnext.stock.services.serial_batch_bundle import SerialBatchBundleService
|
||||
from erpnext.stock.services.serial_batch_bundle_service import SerialBatchBundleService
|
||||
|
||||
sbb = SerialBatchBundleService(self)
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ class StockReconciliation(StockController):
|
||||
|
||||
def validate(self):
|
||||
from erpnext.stock.doctype.putaway_rule.putaway_rule import validate_putaway_capacity
|
||||
from erpnext.stock.services.serial_batch_bundle import SerialBatchBundleService
|
||||
from erpnext.stock.services.serial_batch_bundle_service import SerialBatchBundleService
|
||||
|
||||
sbb = SerialBatchBundleService(self)
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ class StockLedgerService:
|
||||
|
||||
def make_sl_entries(self, sl_entries, allow_negative_stock=False, via_landed_cost_voucher=False):
|
||||
from erpnext.stock.serial_batch_bundle import update_batch_qty
|
||||
from erpnext.stock.services.serial_batch_bundle import SerialBatchBundleService
|
||||
from erpnext.stock.services.serial_batch_bundle_service import SerialBatchBundleService
|
||||
from erpnext.stock.stock_ledger import make_sl_entries
|
||||
|
||||
make_sl_entries(sl_entries, allow_negative_stock, via_landed_cost_voucher)
|
||||
|
||||
Reference in New Issue
Block a user