Fixed: Stock Movement report showed purchase instead of issue
This commit is contained in:
1 parent
cc89a548a5
commit
8df9298724
2 files changed
+1
-2
No files matched your search
@@ -59,7 +59,7 @@ def build_stock_movement(start_date, finish_date):
|
||||
.join(Product.inventories).join(Inventory.voucher).join(Voucher.journals) \
|
||||
.filter(Voucher.date >= start_date) \
|
||||
.filter(Voucher.date <= finish_date) \
|
||||
.filter(Voucher.type != VoucherType.by_name('Issue').id) \
|
||||
.filter(Voucher.type == VoucherType.by_name('Issue').id) \
|
||||
.filter(Journal.cost_center_id == CostCenter.cost_center_purchase()) \
|
||||
.group_by(Product).all()
|
||||
for product, quantity in issues:
|
||||
|
||||
Reference in new issue
Block a user