|
@@ -42,9 +42,10 @@ c.english_product_name as englishProductName,'成衣' as readyFabric,b.supplier
|
|
|
select a.id as id ,GROUP_CONCAT(b.id) as itemId,a.document_No as documentNo,a.create_by as createBy,
|
|
|
a.export_invoice_no as exportInvoiceNo,a.container_number as containerNumber,a.garment_Factory as garmentFactory,
|
|
|
b.supplier as supplier,a.plumbum_No as plumbumNo,a.customer_abbreviation as customerAbbreviation,
|
|
|
- case when b.u8_Pid is null then sum(b.inventory_quantity) else sum(b.gross_weight) end as Total,
|
|
|
- b.item_Number as itemNumber,b.small_Po as smallPo,b.plan_Quantity as planQuantity,sum(b.gross_weight) as grossWeight,
|
|
|
- sum(b.net_weight) as netWeight,sum(b.total_Volume) as totalVolume,b.distribution_Point as distributionPoint,
|
|
|
+ case when b.u8_Pid is null then sum(b.inventory_quantity) else sum(b.gross_weight) end as Total,b.inventory_quantity as number,
|
|
|
+ case when b.u8_Pid is null then '0' else sum(b.rolls) end as planQuantity,
|
|
|
+ b.item_Number as itemNumber,b.small_Po as smallPo,sum(b.gross_weight) as grossWeight,
|
|
|
+ sum(b.net_weight) as netWeight,'0' as totalVolume,b.distribution_Point as distributionPoint,
|
|
|
a.container_Code as containerCode,b.price,b.total_Price as totalPrice,b.pre_Delivery_Date as preDeliveryDate,
|
|
|
b.salesman as salesman,b.sales_Department as salesDepartment,b.pur_Or_Sub_Order as purOrSubOrder,
|
|
|
c.english_product_name as englishProductName,b.order_Number as orderNumber,'面料' as readyFabric from sy_packing_list_fabric a
|