Something like this...
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[receipts_UpdateReceiptDetails]
(
@ReceiptID INT,
@SomeNewValue INT
)
AS
SET NOCOUNT ON
BEGIN TRY
BEGIN TRANSACTION
UPDATE
TBLA
SET
WhateverColumn = @SomeNewValue
Where
ReceiptNo = @ReceiptID
UPDATE
TBLC
SET
WhateverColumn = B.Adjamt
FROM
TBLC
JOIN
(
SELECT
Invno, Adjamt
FROM
tblb
Where
ReceiptNo = @ReceiptID
)
AS
B
ON
TBLC.Invno = B.InvNo
COMMIT
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0
ROLLBACK
DECLARE @ErrMsg nvarchar(4000), @ErrSeverity int
SELECT @ErrMsg = ERROR_MESSAGE(),
@ErrSeverity = ERROR_SEVERITY()
RAISERROR(@ErrMsg, @ErrSeverity, 1)
END CATCH
RETURN @@ERROR
SET NOCOUNT OFF