fix : sql missing check on sku existing and poc has content

pull/8040/head
Gauthier LO 2024-12-23 17:11:28 +01:00
parent f7fe3f1820
commit f976e11c83
1 changed files with 1 additions and 0 deletions

View File

@ -715,6 +715,7 @@
) AS shipping_available,
MIN(
CASE
WHEN poc.id IS NULL OR sku.id IS NULL THEN -1
WHEN po.purchase_invoice_number IS NULL AND stats.price_count = 0 THEN -1
WHEN po.purchase_invoice_number IS NOT NULL AND pur.paid_amount > 0.00 THEN 2
WHEN po.purchase_invoice_number IS NOT NULL AND pur.paid_amount = 0.00 THEN 1