Subversion Repositories SmartDukaan

Rev

Rev 10120 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10120 Rev 15045
Line 66... Line 66...
66
  	transitCompletionReferenceNumber = #{remoteTransferRefNumber},
66
  	transitCompletionReferenceNumber = #{remoteTransferRefNumber},
67
  	referenceUpdationDate = NOW()
67
  	referenceUpdationDate = NOW()
68
  	WHERE id = #{id}
68
  	WHERE id = #{id}
69
  </update>
69
  </update>
70
  
70
  
-
 
71
  <insert id="createRemovalStockShipmentReference" parameterType="removalStockShipmentReference" useGeneratedKeys="true" keyProperty="id">
-
 
72
    INSERT INTO removalStockShipmentReference 
-
 
73
    (id, shipmentReference, createdOn, source, inventoryType, quantity, unfulfilQuantity, completed)
-
 
74
    VALUES
-
 
75
    (#{id}, #{shipmentReference}, #{createdOn}, #{source}, #{inventoryType}, #{quantity}, #{unfulfilQuantity}, #{completed})
-
 
76
  </insert>
-
 
77
  
-
 
78
  <update id="updateStockShipment" parameterType="map" >
-
 
79
    UPDATE removalStockShipmentReference
-
 
80
    SET 
-
 
81
    unfulfilQuantity = unfulfilQuantity - #{lineItemQuantity} 
-
 
82
    WHERE id= #{id}
-
 
83
  </update>
-
 
84
  
-
 
85
  <update id="markStockShipmentComplete" parameterType= "java.lang.Long" >
-
 
86
  	UPDATE removalStockShipmentReference
-
 
87
  	SET 
-
 
88
  	completed =1 
-
 
89
  	WHERE id= #{id}
-
 
90
  </update>
-
 
91
  
-
 
92
  <select id="getAllUnCompletedStockShipments" parameterType="java.lang.String" resultType= "removalStockShipmentReference">
-
 
93
  	SELECT * FROM 
-
 
94
  	removalStockShipmentReference 
-
 
95
  	WHERE source= #{source} 
-
 
96
  	AND completed = 0 
-
 
97
  </select>
-
 
98
  
-
 
99
  <update id="updateShipmentReferenceTransferLot" parameterType="map">
-
 
100
  	UPDATE transferLot
-
 
101
  	SET 
-
 
102
  	shipmentReference = #{shipmentReference}
-
 
103
  	WHERE id= #{id}
-
 
104
  </update>
-
 
105
  
-
 
106
  <select id="getRemovalStockShipmentReferenceById" parameterType="java.lang.Long" resultType= "removalStockShipmentReference">
-
 
107
  	SELECT * FROM
-
 
108
  	removalStockShipmentReference 
-
 
109
  	WHERE id= #{id}
-
 
110
  </select>
71
</mapper>
111
</mapper>
72
 
112
 
73
 
113