> Saya biasanya capture di tempat temporary tidak langsung ke grid, nah > untuk memasukkan ke gridnya saya pakai SQL command

Cuman agak rumit nanti klo ada item barang yang sama dan berlaku promo / diskon berbeda.
dan bisa dibayar dengan voucher belanja juga.


Mr. Cmp


  ----- Original Message -----
  From: Sobari Tanuwijaya
  To: [EMAIL PROTECTED]
  Sent: Monday, October 25, 2004 1:08 PM
  Subject: Re: [Delphindo] Mendeteksi Qty dg Barcode


  Saya biasanya capture di tempat temporary tidak langsung ke grid, nah untuk memasukkan ke gridnya saya pakai SQL command, yang saya pakai kurang lebih seperti ini:

  oQry.SQL.Text := 'SELECT ItemCode FROM TempTransTb WHERE ItemCode = :ItemCode';
  oQry.ParamByname( 'ItemCode' ).AsString := cItemCode.Text;
  oQry.Open;

  if oQry.RecordCount <> 0 then
     begin
      oQry.Close;
      oQry.SQL.Text := 'UPDATE TempTransTb SET Qty = Qty + :Qty WHERE ItemCode = :ItemCode';
     end
  else
     begin
       oQry.Close;
       oQry.SQL.Text := 'INSERT INTO TempTransTb ( ItemCode, Qty, Price ) VALUES ( :ItemCode, :Qty, :Price );
       oQry.ParamByName( 'Price' ).asFloat := nPrice;

     end;

  oQry.ParamByName( 'Qty' ).asInteger := nQty;
  oQry.ParamByName( 'ItemCode' ).asString := cItemCode;
  oQry.ExecSQL;


  Best regards,
    Sobari Tanuwijaya
    ICQ # 141027563


  -------------------------------------------------
  There are no problems we cannot solve together,
  and very few that we can solve by ourselves
      - Lyndon Johnson.

  On Friday, October 22, 2004, 1:39:06 PM, hendrik c wrote:


  >  Dear All,

  > Untuk input quntity barang yg sama pada program POS yg memakai
  > scan barcode tembak yaitu dengan menembakkan barcode sebanyak 2 kali
  > berurutan.
  > bagaimanakah Triknya untuk hal diatas  ?

  > trims

  > Hendrikc

  > [Non-text portions of this message have been removed]




  > Berlangganan: [EMAIL PROTECTED]
  > Stop Berlangganan: [EMAIL PROTECTED]
  > Keluhan Milis(Unbouncing,spam,dll): [EMAIL PROTECTED]
  > Yahoo! Groups Links







  Berlangganan: [EMAIL PROTECTED]
  Stop Berlangganan: [EMAIL PROTECTED]
  Keluhan Milis(Unbouncing,spam,dll): [EMAIL PROTECTED]


        Yahoo! Groups Sponsor
              ADVERTISEMENT
            
      
      


------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/Delphindo/
     
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
     
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




[Non-text portions of this message have been removed]



Berlangganan: [EMAIL PROTECTED]
Stop Berlangganan: [EMAIL PROTECTED]
Keluhan Milis(Unbouncing,spam,dll): [EMAIL PROTECTED]



Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=:HM/A=2376776/rand=561903586


Yahoo! Groups Links

Reply via email to