home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- //Borland C++Builder
- //Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
- //----------------------------------------------------------------------------
- //---------------------------------------------------------------------------
- #include <vcl\vcl.h>
- #pragma hdrstop
-
- #include "CustDM.h"
- //---------------------------------------------------------------------------
- #pragma resource "*.dfm"
- TDataModule2 *DataModule2;
- //---------------------------------------------------------------------------
- __fastcall TDataModule2::TDataModule2(TComponent* Owner)
- : TDataModule(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TDataModule2::LineItemsCalcFields(TDataSet *DataSet)
- {
- LineItemsExtendedPrice->Value = LineItemsPrice->Value *
- ((100 - LineItemsDiscount->Value) / 100);
- LineItemsTotal->Value = LineItemsExtendedPrice->Value *
- LineItemsQty->Value;
- }
- //---------------------------------------------------------------------