|
|
|
@ -112,7 +112,7 @@
|
|
|
|
|
LEFT JOIN logpm_distribution_loadscan ldl on ldl.package_id = ldpl.id and ldl.scan_status !=1 |
|
|
|
|
LEFT JOIN logpm_distribution_delivery_list lddl on lddl.id = lds.delivery_id |
|
|
|
|
left join logpm_distribution_stock_article ldsa on ldsa.id = ldpl.stock_article_id |
|
|
|
|
LEFT JOIN logpm_distrilbution_bill_package AS ldbp ON ldbp.parce_list_id = ldpl.id |
|
|
|
|
LEFT JOIN logpm_distrilbution_bill_package AS ldbp ON ldbp.parce_list_id = ldpl.id and ldbp.bill_lading_status != 2 |
|
|
|
|
LEFT JOIN logpm_distrilbution_bill_lading ldbl ON ldbl.id = ldbp.bill_lading_id |
|
|
|
|
|
|
|
|
|
<where> |
|
|
|
|