|  | @@ -7,11 +7,12 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  select a.document_No as documentNo,a.id as id,GROUP_CONCAT(b.id) as itemId,a.item_number as itemNumber,b.hod as preDeliveryDate ,b.inventory_name as inventoryName,b.po_no as poNo,b.distribution_point as distributionPoint,
 | 
	
		
			
				|  |  |  a.memo,a.customer,b.colour,sum(b.box_number) as  boxNumber,b.ac_set_no as acSetNo,sum(b.total) as total,a.customer_abbreviation as customerAbbreviation,
 | 
	
		
			
				|  |  | -sum(b.total_net_weight) as totalNetWeight,a.order_type as orderType,b.plan_Quantity as totalQuantity,b.small_Po as smallPo,b.unit_price as unitPrice,
 | 
	
		
			
				|  |  | +sum(b.total_net_weight) as totalNetWeight,a.order_type as orderType,b.plan_Quantity as totalQuantity,b.small_po as smallPo,b.unit_price as unitPrice,
 | 
	
		
			
				|  |  |  sum(b.total_gross_weight) as totalGrossWeight,sum(b.total_volume) as totalVolume,sum(b.total_price) as totalPrice,b.factory_unit_price as factoryUnitPrice,
 | 
	
		
			
				|  |  |  a.depositary_receipt_no as depositaryReceiptNo,a.spur_Or_Sub_Order as spurOrSubOrder,sum(b.pieces_box) as piecesBox,b.size,a.order_number as orderNumber,
 | 
	
		
			
				|  |  |  b.starting_box_number as startingBoxNumber,b.end_case_number as endCaseNumber,b.outer_box_length as outerBoxLength,b.outer_box_width as outerBoxWidth,b.outer_box_height as outerBoxHeight,
 | 
	
		
			
				|  |  | -b.garment_factory as garmentFactory,b.hod as hod,b.style_no as styleNo,b.prepack_sku as prepackSku,a.salesman as salesman,a.sales_department
 | 
	
		
			
				|  |  | +b.garment_factory as garmentFactory,b.hod as hod,b.style_no as styleNo,b.prepack_sku as prepackSku,
 | 
	
		
			
				|  |  | +b.salesman as salesman,b.sales_Department as salesDepartment
 | 
	
		
			
				|  |  |  from sy_pre_assembled_packing_list_item b
 | 
	
		
			
				|  |  |  left join sy_pre_assembled_packing_list a
 | 
	
		
			
				|  |  |  on a.id = b.sy_pre_assembled_packing_list_id
 | 
	
	
		
			
				|  | @@ -95,7 +96,7 @@ on a.id = b.sy_letter_deposit_id
 | 
	
		
			
				|  |  |          select item_number as itemNumber,small_po as smallPo,total,box_number as boxNumber,pre_ids as preIds,sy_pre_assembled_packing_list_id as syPreAssembledPackingListId,
 | 
	
		
			
				|  |  |  total_gross_weight as totalGrossWeight,total_net_weight as totalNetWeight,total_volume as totalVolume,distribution_point as distributionPoint,
 | 
	
		
			
				|  |  |  container_code as containerCode,container_number as containerNumber,unit_price as unitPrice,total_price as totalPrice,
 | 
	
		
			
				|  |  | -hod
 | 
	
		
			
				|  |  | +hod,salesman,sales_Department as salesDepartment,spur_or_subOrder as spurOrSubOrder
 | 
	
		
			
				|  |  |           from sy_letter_deposit_item
 | 
	
		
			
				|  |  |           where del_flag = 0 and sy_letter_deposit_id = #{syId} group by letter_groupid
 | 
	
		
			
				|  |  |  
 |