test: LCV entries after billing

(cherry picked from commit 53642e7417)

# Conflicts:
#	erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py
This commit is contained in:
Gursheen Anand
2024-02-29 11:26:31 +05:30
committed by Mergify
parent 83ccb32be6
commit c7c9d33954
2 changed files with 67 additions and 8 deletions

View File

@@ -118,7 +118,11 @@ class StockController(AccountsController):
if self.docstatus == 1:
if not gl_entries:
gl_entries = self.get_gl_entries(warehouse_account, via_landed_cost_voucher)
gl_entries = (
self.get_gl_entries(warehouse_account, via_landed_cost_voucher)
if self.doctype == "Purchase Receipt"
else self.get_gl_entries(warehouse_account)
)
make_gl_entries(gl_entries, from_repost=from_repost)
def validate_serialized_batch(self):