INSERT INTO th_user_login (user_id,tgl_login,jam_login) VALUES('input','2025-11-03 ','08:39:19'); INSERT INTO th_saldo_hutang(tanggal,qty_awal,berat_awal,rp_awal,qty_akhir,berat_akhir,rp_akhir) VALUES ('2025-11-01','0','0','0','0','0','0'); DELETE FROM th_barang_saldo WHERE tanggal <= '2025-10-01'; INSERT INTO th_barang_saldo SELECT * FROM tt_barang_saldo WHERE tanggal = '2025-10-31'; UPDATE tt_barang_saldo SET status_close ='CLOS' WHERE tanggal='2025-10-31'; INSERT INTO tt_barang_saldo (kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_awal,berat_awal_asli,stock_awal,berat_akhir,berat_akhir_asli,stock_akhir) SELECT kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_akhir,berat_akhir_asli,stock_akhir,berat_akhir,berat_akhir_asli,stock_akhir FROM tt_barang_saldo WHERE tanggal='2025-10-31' AND berat_akhir*1 > '0' INSERT INTO th_cash_daily SELECT * FROM tt_cash_daily WHERE tanggal = '2025-10-31'; DELETE FROM tt_cash_daily WHERE tanggal <= '2025-10-31'; INSERT INTO th_bank_daily SELECT * FROM tt_bank_daily WHERE tanggal = '2025-10-31'; DELETE FROM tt_bank_daily WHERE tanggal <= '2025-10-31'; CREATE TABLE IF NOT EXISTS th_barang_saldo_202509 SELECT * FROM th_barang_saldo WHERE LEFT(tanggal,7)='2025-09'; DELETE FROM th_barang_saldo WHERE LEFT(tanggal,7)='2025-09'; UPDATE tt_barang_saldo SET tanggal= '2025-11-01' WHERE status_close ='OPEN'; DELETE FROM tt_barang_saldo WHERE tanggal <= '2025-10-31' OR stock_akhir*1<0 OR kode_lokasi_gudang='' OR kode_lokasi_toko='' OR status_close='CLOS'; UPDATE tp_system SET tgl_system='2025-11-01'; INSERT INTO th_user_login (user_id,tgl_login,jam_login) VALUES('input','2025-11-03 ','08:57:08'); INSERT INTO th_saldo_hutang(tanggal,qty_awal,berat_awal,rp_awal,qty_akhir,berat_akhir,rp_akhir) VALUES ('2025-11-02','0','0','0','0','0','0'); DELETE FROM th_barang_saldo WHERE tanggal <= '2025-10-02'; INSERT INTO th_barang_saldo SELECT * FROM tt_barang_saldo WHERE tanggal = '2025-11-01'; UPDATE tt_barang_saldo SET status_close ='CLOS' WHERE tanggal='2025-11-01'; INSERT INTO tt_barang_saldo (kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_awal,berat_awal_asli,stock_awal,berat_akhir,berat_akhir_asli,stock_akhir) SELECT kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_akhir,berat_akhir_asli,stock_akhir,berat_akhir,berat_akhir_asli,stock_akhir FROM tt_barang_saldo WHERE tanggal='2025-11-01' AND berat_akhir*1 > '0' INSERT INTO th_cash_daily SELECT * FROM tt_cash_daily WHERE tanggal = '2025-11-01'; DELETE FROM tt_cash_daily WHERE tanggal <= '2025-11-01'; INSERT INTO th_bank_daily SELECT * FROM tt_bank_daily WHERE tanggal = '2025-11-01'; DELETE FROM tt_bank_daily WHERE tanggal <= '2025-11-01'; CREATE TABLE IF NOT EXISTS th_barang_saldo_202510 SELECT * FROM th_barang_saldo WHERE LEFT(tanggal,7)='2025-10'; DELETE FROM th_barang_saldo WHERE LEFT(tanggal,7)='2025-10'; UPDATE tt_barang_saldo SET tanggal= '2025-11-02' WHERE status_close ='OPEN'; DELETE FROM tt_barang_saldo WHERE tanggal <= '2025-11-01' OR stock_akhir*1<0 OR kode_lokasi_gudang='' OR kode_lokasi_toko='' OR status_close='CLOS'; UPDATE tp_system SET tgl_system='2025-11-02'; INSERT INTO th_user_login (user_id,tgl_login,jam_login) VALUES('input','2025-11-03 ','08:57:21'); INSERT INTO th_saldo_hutang(tanggal,qty_awal,berat_awal,rp_awal,qty_akhir,berat_akhir,rp_akhir) VALUES ('2025-11-03','0','0','0','0','0','0'); DELETE FROM th_barang_saldo WHERE tanggal <= '2025-10-03'; INSERT INTO th_barang_saldo SELECT * FROM tt_barang_saldo WHERE tanggal = '2025-11-02'; UPDATE tt_barang_saldo SET status_close ='CLOS' WHERE tanggal='2025-11-02'; INSERT INTO tt_barang_saldo (kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_awal,berat_awal_asli,stock_awal,berat_akhir,berat_akhir_asli,stock_akhir) SELECT kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_akhir,berat_akhir_asli,stock_akhir,berat_akhir,berat_akhir_asli,stock_akhir FROM tt_barang_saldo WHERE tanggal='2025-11-02' AND berat_akhir*1 > '0' INSERT INTO th_cash_daily SELECT * FROM tt_cash_daily WHERE tanggal = '2025-11-02'; DELETE FROM tt_cash_daily WHERE tanggal <= '2025-11-02'; INSERT INTO th_bank_daily SELECT * FROM tt_bank_daily WHERE tanggal = '2025-11-02'; DELETE FROM tt_bank_daily WHERE tanggal <= '2025-11-02'; CREATE TABLE IF NOT EXISTS th_barang_saldo_202510 SELECT * FROM th_barang_saldo WHERE LEFT(tanggal,7)='2025-10'; DELETE FROM th_barang_saldo WHERE LEFT(tanggal,7)='2025-10'; UPDATE tt_barang_saldo SET tanggal= '2025-11-03' WHERE status_close ='OPEN'; DELETE FROM tt_barang_saldo WHERE tanggal <= '2025-11-02' OR stock_akhir*1<0 OR kode_lokasi_gudang='' OR kode_lokasi_toko='' OR status_close='CLOS'; UPDATE tp_system SET tgl_system='2025-11-03'; INSERT INTO th_user_login (user_id,tgl_login,jam_login) VALUES('input','2025-11-03 ','08:57:36'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0001','1','LBRE-YJCA-13-0','1','1.620','1.620','TOKO','SEM-BALIK','TOKO','LBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='LBRE.BALIK' WHERE kode_barang='LBRE-YJCA-13-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','LBRE.BALIK','LBRE','LBRE-YJCA-13-0','83.00','1','1.620','1.620','1','1.620','1.620'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.620',berat_out_asli=berat_out_asli+'1.620',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='LBRE-YJCA-13-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0001','2025-11-03','2025-11-03','08:58','1.62','input','2025-11-03 08:58:50'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0002','1','CKBE-YJCA-16-0','1','2.130','2.130','TOKO','SEM-BALIK','TOKO','CKBE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CKBE.BALIK' WHERE kode_barang='CKBE-YJCA-16-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CKBE.BALIK','CKBE','CKBE-YJCA-16-0','75.00','1','2.130','2.130','1','2.130','2.130'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.130',berat_out_asli=berat_out_asli+'2.130',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CKBE-YJCA-16-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0002','2025-11-03','2025-11-03','08:59','2.13','input','2025-11-03 08:59:06'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0003','1','GLKK-YJCA-18-0','1','11.250','11.250','TOKO','SEM-EMAS','TOKO','GLKE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='GLKE.BALIK' WHERE kode_barang='GLKK-YJCA-18-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-EMAS'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','GLKE.BALIK','GLKK','GLKK-YJCA-18-0','71.00','1','11.250','11.250','1','11.250','11.250'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'11.250',berat_out_asli=berat_out_asli+'11.250',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GLKK-YJCA-18-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-EMAS' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0003','2025-11-03','2025-11-03','08:59','11.25','input','2025-11-03 09:02:21'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0004','1','CKPRE-YJCA-17-0','1','4.560','4.560','TOKO','SEM-EMAS','TOKO','PER'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='PER' WHERE kode_barang='CKPRE-YJCA-17-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-EMAS'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','PER','CKPRE','CKPRE-YJCA-17-0','100.00','1','4.560','4.560','1','4.560','4.560'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'4.560',berat_out_asli=berat_out_asli+'4.560',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CKPRE-YJCA-17-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-EMAS' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0004','2025-11-03','2025-11-03','09:02','4.56','input','2025-11-03 09:02:39'); INSERT INTO th_user_login (user_id,tgl_login,jam_login) VALUES('input','2025-11-03 ','09:03:02'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0005','1','TFA-YJCA-19-0','1','6.500','6.500','TOKO','SEM-BALIK','TOKO','TFA.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='TFA.BALIK' WHERE kode_barang='TFA-YJCA-19-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','TFA.BALIK','TFA','TFA-YJCA-19-0','75.00','1','6.500','6.500','1','6.500','6.500'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'6.500',berat_out_asli=berat_out_asli+'6.500',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='TFA-YJCA-19-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0005','2025-11-03','2025-11-03','09:03','6.5','input','2025-11-03 09:03:21'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','1','CBRE-YJCA-11-0','1','2.560','2.560','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-11-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-11-0','75.00','1','2.560','2.560','1','2.560','2.560'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.560',berat_out_asli=berat_out_asli+'2.560',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-11-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','2','CBRE-YJCA-25-0','1','1.390','1.390','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-25-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-25-0','103.00','1','1.390','1.390','1','1.390','1.390'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.390',berat_out_asli=berat_out_asli+'1.390',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-25-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','3','CBRE-YJCA-12-0','1','9.470','9.470','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-12-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-12-0','75.00','1','9.470','9.470','1','9.470','9.470'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'9.470',berat_out_asli=berat_out_asli+'9.470',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-12-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','4','CBRE-YJCA-21-0','1','0.360','0.360','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-21-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-21-0','83.00','1','0.360','0.360','1','0.360','0.360'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'0.360',berat_out_asli=berat_out_asli+'0.360',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-21-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','5','CBRE-YJCA-14-0','1','2.610','2.610','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-14-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-14-0','103.00','1','2.610','2.610','1','2.610','2.610'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.610',berat_out_asli=berat_out_asli+'2.610',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-14-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','6','CBRE-YJCA-23-0','1','1.840','1.840','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-23-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-23-0','75.00','1','1.840','1.840','1','1.840','1.840'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.840',berat_out_asli=berat_out_asli+'1.840',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-23-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','7','CBRE-YJCA-10-0','1','4.490','4.490','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-10-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-10-0','75.00','1','4.490','4.490','1','4.490','4.490'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'4.490',berat_out_asli=berat_out_asli+'4.490',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-10-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','8','CBRE-YJCA-22-0','1','3.680','3.680','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-22-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-22-0','75.00','1','3.680','3.680','1','3.680','3.680'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'3.680',berat_out_asli=berat_out_asli+'3.680',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-22-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','9','CBRE-YJCA-15-0','1','1.590','1.590','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-15-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-15-0','83.00','1','1.590','1.590','1','1.590','1.590'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.590',berat_out_asli=berat_out_asli+'1.590',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-15-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','10','CBRE-YJCA-20-0','1','0.670','0.670','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-20-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-20-0','83.00','1','0.670','0.670','1','0.670','0.670'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'0.670',berat_out_asli=berat_out_asli+'0.670',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-20-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0006','11','CBRE-YJCA-24-0','1','2.120','2.120','TOKO','SEM-BALIK','TOKO','CBRE.BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='CBRE.BALIK' WHERE kode_barang='CBRE-YJCA-24-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','CBRE.BALIK','CBRE','CBRE-YJCA-24-0','83.00','1','2.120','2.120','1','2.120','2.120'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.120',berat_out_asli=berat_out_asli+'2.120',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YJCA-24-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='SEM-BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0006','2025-11-03','2025-11-03','09:04','30.78','input','2025-11-03 09:05:10'); INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','1','CBRE-YJCA-10-0','1','4.490','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-10-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-10-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-10-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-10-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-10-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='4.490',berat_out_asli='4.490', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'4.490',berat_akhir_asli =berat_akhir_asli-'4.490' WHERE kode_barang='CBRE-YJCA-10-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','2','CBRE-YJCA-11-0','1','2.560','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-11-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-11-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-11-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-11-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-11-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='2.560',berat_out_asli='2.560', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'2.560',berat_akhir_asli =berat_akhir_asli-'2.560' WHERE kode_barang='CBRE-YJCA-11-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','3','CBRE-YJCA-12-0','1','9.470','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-12-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-12-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-12-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-12-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-12-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='9.470',berat_out_asli='9.470', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'9.470',berat_akhir_asli =berat_akhir_asli-'9.470' WHERE kode_barang='CBRE-YJCA-12-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','4','CBRE-YJCA-14-0','1','2.610','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-14-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-14-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-14-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-14-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-14-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='2.610',berat_out_asli='2.610', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'2.610',berat_akhir_asli =berat_akhir_asli-'2.610' WHERE kode_barang='CBRE-YJCA-14-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','5','CBRE-YJCA-15-0','1','1.590','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-15-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-15-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-15-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-15-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-15-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='1.590',berat_out_asli='1.590', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'1.590',berat_akhir_asli =berat_akhir_asli-'1.590' WHERE kode_barang='CBRE-YJCA-15-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','6','CBRE-YJCA-20-0','1','0.670','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-20-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-20-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-20-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-20-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-20-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='0.670',berat_out_asli='0.670', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'0.670',berat_akhir_asli =berat_akhir_asli-'0.670' WHERE kode_barang='CBRE-YJCA-20-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','7','CBRE-YJCA-21-0','1','0.360','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-21-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-21-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-21-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-21-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-21-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='0.360',berat_out_asli='0.360', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'0.360',berat_akhir_asli =berat_akhir_asli-'0.360' WHERE kode_barang='CBRE-YJCA-21-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','8','CBRE-YJCA-22-0','1','3.680','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-22-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-22-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-22-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-22-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-22-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='3.680',berat_out_asli='3.680', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'3.680',berat_akhir_asli =berat_akhir_asli-'3.680' WHERE kode_barang='CBRE-YJCA-22-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','9','CBRE-YJCA-23-0','1','1.840','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-23-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-23-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-23-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-23-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-23-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='1.840',berat_out_asli='1.840', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'1.840',berat_akhir_asli =berat_akhir_asli-'1.840' WHERE kode_barang='CBRE-YJCA-23-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','10','CBRE-YJCA-24-0','1','2.120','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-24-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-24-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-24-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-24-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-24-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='2.120',berat_out_asli='2.120', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'2.120',berat_akhir_asli =berat_akhir_asli-'2.120' WHERE kode_barang='CBRE-YJCA-24-0' AND stock_akhir ='1'; INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0001','11','CBRE-YJCA-25-0','1','1.390','TOKO','CBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CBRE-YJCA-25-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CBRE-YJCA-25-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CBRE-YJCA-25-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CBRE-YJCA-25-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CBRE-YJCA-25-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='1.390',berat_out_asli='1.390', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'1.390',berat_akhir_asli =berat_akhir_asli-'1.390' WHERE kode_barang='CBRE-YJCA-25-0' AND stock_akhir ='1'; INSERT INTO tt_export_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date,tujuan_toko) VALUES ('EX-251103-0001','2025-11-03','2025-11-03','09:07','1.390','input','2025-11-03 09:07:06','ELCO'); INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0002','1','CKBE-YJCA-16-0','1','2.130','TOKO','CKBE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='CKBE-YJCA-16-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CKBE-YJCA-16-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CKBE-YJCA-16-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CKBE-YJCA-16-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CKBE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CKBE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='CKBE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='CKBE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CKBE-YJCA-16-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='2.130',berat_out_asli='2.130', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'2.130',berat_akhir_asli =berat_akhir_asli-'2.130' WHERE kode_barang='CKBE-YJCA-16-0' AND stock_akhir ='1'; INSERT INTO tt_export_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date,tujuan_toko) VALUES ('EX-251103-0002','2025-11-03','2025-11-03','09:07','2.130','input','2025-11-03 09:07:15','ELCO'); INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0003','1','GLKK-YJCA-18-0','1','11.250','TOKO','GLKE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='GLKK-YJCA-18-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='GLKK-YJCA-18-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='GLKK-YJCA-18-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='GLKK-YJCA-18-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='GOLD' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='GOLD' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='GLKK' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='GLKK' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='GLKE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='GLKE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='GLKK-YJCA-18-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='11.250',berat_out_asli='11.250', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'11.250',berat_akhir_asli =berat_akhir_asli-'11.250' WHERE kode_barang='GLKK-YJCA-18-0' AND stock_akhir ='1'; INSERT INTO tt_export_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date,tujuan_toko) VALUES ('EX-251103-0003','2025-11-03','2025-11-03','09:07','11.250','input','2025-11-03 09:07:23','ELCO'); INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0004','1','LBRE-YJCA-13-0','1','1.620','TOKO','LBRE.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='LBRE-YJCA-13-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='LBRE-YJCA-13-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='LBRE-YJCA-13-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='LBRE-YJCA-13-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='LBRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='LBRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='LBRE.BALIK'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='LBRE.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='LBRE-YJCA-13-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='1.620',berat_out_asli='1.620', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'1.620',berat_akhir_asli =berat_akhir_asli-'1.620' WHERE kode_barang='LBRE-YJCA-13-0' AND stock_akhir ='1'; INSERT INTO tt_export_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date,tujuan_toko) VALUES ('EX-251103-0004','2025-11-03','2025-11-03','09:07','1.620','input','2025-11-03 09:07:31','ELCO'); INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0005','1','CKPRE-YJCA-17-0','1','4.560','TOKO','PER'); DELETE FROM tm_barang_export WHERE kode_barang='CKPRE-YJCA-17-0' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='CKPRE-YJCA-17-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='CKPRE-YJCA-17-0'; INSERT INTO db_nagagold_elco1.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='CKPRE-YJCA-17-0'; DELETE FROM db_nagagold_elco1.tm_group_export WHERE kode_group='PER' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_group_export SELECT * FROM tm_group WHERE kode_group='PER' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_dept_export WHERE kode_dept='CKPRE' LIMIT 1; INSERT INTO db_nagagold_elco1.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='CKPRE' LIMIT 1; DELETE FROM db_nagagold_elco1.tm_lokasi_toko_export WHERE kode_lokasi_toko='PER'; INSERT INTO db_nagagold_elco1.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='PER'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='CKPRE-YJCA-17-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='4.560',berat_out_asli='4.560', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'4.560',berat_akhir_asli =berat_akhir_asli-'4.560' WHERE kode_barang='CKPRE-YJCA-17-0' AND stock_akhir ='1'; INSERT INTO tt_export_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date,tujuan_toko) VALUES ('EX-251103-0005','2025-11-03','2025-11-03','09:07','4.560','input','2025-11-03 09:07:42','ELCO'); INSERT INTO tt_export_detail (no_pindah,no_urut,kode_barang,qty,berat,gudang_asal,lokasi_asal) VALUES ('EX-251103-0006','1','TFA-YJCA-19-0','1','6.500','TOKO','TFA.BALIK'); DELETE FROM tm_barang_export WHERE kode_barang='TFA-YJCA-19-0' LIMIT 1; INSERT INTO db_nagagold_elco2.tm_barang_export SELECT * FROM tm_barang WHERE kode_barang='TFA-YJCA-19-0' LIMIT 1; DELETE FROM tm_berlian_export WHERE kode_barang='TFA-YJCA-19-0'; INSERT INTO db_nagagold_elco2.tm_berlian_export SELECT * FROM tm_berlian WHERE kode_barang='TFA-YJCA-19-0'; DELETE FROM db_nagagold_elco2.tm_group_export WHERE kode_group='DM' LIMIT 1; INSERT INTO db_nagagold_elco2.tm_group_export SELECT * FROM tm_group WHERE kode_group='DM' LIMIT 1; DELETE FROM db_nagagold_elco2.tm_dept_export WHERE kode_dept='TFA' LIMIT 1; INSERT INTO db_nagagold_elco2.tm_dept_export SELECT * FROM tm_dept WHERE kode_dept='TFA' LIMIT 1; DELETE FROM db_nagagold_elco2.tm_lokasi_toko_export WHERE kode_lokasi_toko='TFA.BALIK'; INSERT INTO db_nagagold_elco2.tm_lokasi_toko_export SELECT * FROM tm_lokasi_toko WHERE kode_lokasi_toko='TFA.BALIK'; UPDATE tm_barang set stock_on_hand='0' WHERE kode_barang='TFA-YJCA-19-0'; UPDATE tt_barang_saldo set stock_out='1',berat_out='6.500',berat_out_asli='6.500', stock_akhir = stock_akhir-'1',berat_akhir =berat_akhir-'6.500',berat_akhir_asli =berat_akhir_asli-'6.500' WHERE kode_barang='TFA-YJCA-19-0' AND stock_akhir ='1'; INSERT INTO tt_export_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date,tujuan_toko) VALUES ('EX-251103-0006','2025-11-03','2025-11-03','09:07','6.500','input','2025-11-03 09:07:52','THIFA'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251005-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251005-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('LBRE-YKXC-1-0','00039388','LBRE-00043 ','LIONTIN LBRE-00043 ','','GR','---','DM','LBRE','TOKO','LBRE.BALIK','2924500','2025-11-03','2924500','1.760','78.00','75.00','0','2130000.00','1','0.04', 'input','2025-11-03 09:31:52','1.760','0','110.40','16600.00','0','TOKO','FREETAG','','10','','0','IDB 18 500 000','3','1025 4B8','BE-251005-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'LBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('LBRE','LBRE-YKXC-1-0','00039388'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','LBRE-YKXC-1-0','LBRE','TOKO','LBRE.BALIK','78.00','1.760','1.760','1','1.760','1.760','1'); DELETE FROM tp_kode_intern WHERE kode_dept='LBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('LBRE','LBRE-00043 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-1-0','00039388','RD','8','0.020 ','400','8'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-1-0','00039388','RD','1','0.080 ','480','38.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-1-0','00039388','RD','13','0.050 ','400','20'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-1-0','00039388','RD','16','0.110 ','400','44'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0007','1','LBRE-YKXC-1-0','1','1.760','1.760','TOKO','LBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='LBRE-YKXC-1-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='LBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','LBRE','LBRE-YKXC-1-0','78.00','1','1.760','1.760','1','1.760','1.760'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.760',berat_out_asli=berat_out_asli+'1.760',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='LBRE-YKXC-1-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='LBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0007','2025-11-03','2025-11-03','09:32','1.76','input','2025-11-03 09:32:11'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251005-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251005-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('ABRE-YKXC-2-0','00039389','ABRE-02097 ','GIWANG ABRE-02097 ','','GR','---','DM','ABRE','TOKO','SEM-BALIK','5128500','2025-11-03','5128500','3.210','75.00','75','0','2130000.00','1','0.14', 'input','2025-11-03 09:34:52','3.210','0','147.20','16600.00','','TOKO','FREETAG','','10','','','IDB 28 000 000','1','1025 7B7','BE-251005-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'ABRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('ABRE','ABRE-YKXC-2-0','00039389'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','ABRE-YKXC-2-0','ABRE','TOKO','SEM-BALIK','75.00','3.210','3.210','1','3.210','3.210','1'); DELETE FROM tp_kode_intern WHERE kode_dept='ABRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('ABRE','ABRE-02097 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-2-0','00039389','RD','8','0.200 ','320','64'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-2-0','00039389','RD','56','0.260 ','320','83.2'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251005-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251005-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CMK-YKXC-3-0','00039390','CMKE70-71% ','CINCIN MAS KUNING ','','GR','---','GOLD','CMK','TOKO','SEM-EMAS','4597500','2025-11-03','4597500','3.040','71.00','70','0','2130000.00','1','0.14', 'input','2025-11-03 10:42:10','3.040','0','','16600.00','','TOKO','FREETAG','','2','','','','1','','BE-251005-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CMK' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CMK','CMK-YKXC-3-0','00039390'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CMK-YKXC-3-0','CMK','TOKO','SEM-EMAS','71.00','3.040','3.040','1','3.040','3.040','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CMK'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CMK','CMKE70-71% '); UPDATE db_nagagold_elco2.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='FB-251005-0001'; UPDATE db_nagagold_elco2.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='FB-251005-0001'; UPDATE db_nagagold_elco2.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('TFC-YKXC-4-0','00039391','TFC-21078 ','CINCIN TFC-21078 ','','GR','---','DM','TFC','TOKO','TFC','1973500','2025-11-03','1973500','1.090','85.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 10:45:20','1.090','0','28.80','16600.00','','TOKO','FREETAG','','10','','0','IDB 9 000 000','2','RS 15 1025 2B5','FB-251005-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'TFC' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('TFC','TFC-YKXC-4-0','00039391'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','TFC-YKXC-4-0','TFC','TOKO','TFC','85.00','1.090','1.090','1','1.090','1.090','1'); DELETE FROM tp_kode_intern WHERE kode_dept='TFC'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('TFC','TFC-21078 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('TFC-YKXC-4-0','00039391','RD','1','0.060 ','480','28.8'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0008','1','TFC-YKXC-4-0','1','1.090','1.090','TOKO','TFC','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='TFC-YKXC-4-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='TFC'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','TFC','TFC-YKXC-4-0','85.00','1','1.090','1.090','1','1.090','1.090'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.090',berat_out_asli=berat_out_asli+'1.090',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='TFC-YKXC-4-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='TFC' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0008','2025-11-03','2025-11-03','10:45','1.09','input','2025-11-03 10:45:36'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251007-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251007-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-5-0','00039392','CBRE-06922 ','CINCIN CBRE-06922 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','2620000','2025-11-03','2620000','1.640','75.00','75','0','2130000.00','1','0.14', 'input','2025-11-03 10:48:12','1.640','0','65.60','16600.00','','TOKO','FREETAG','','10','','','IDB 14 500 000','1','RS 11 1025 3B5','BE-251007-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-5-0','00039392'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-5-0','CBRE','TOKO','SEM-BALIK','75.00','1.640','1.640','1','1.640','1.640','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06922 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-5-0','00039392','RD','9','0.090 ','320','28.8'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-5-0','00039392','RD','18','0.115 ','320','36.8'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251008-0009'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251008-0009'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-6-0','00039393','CBRE-02942 ','CINCIN CBRE-02942 ','','GR','---','DM','CBRE','TOKO','CBRE','3419000','2025-11-03','3419000','2.140','75.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 10:51:15','2.140','0','66.20','16600.00','','TOKO','FREETAG','','10','','0','IDB 17 500 000','2','RS 12 1025 4B0','BE-251008-0009',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-6-0','00039393'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-6-0','CBRE','TOKO','CBRE','75.00','2.140','2.140','1','2.140','2.140','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-02942 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-6-0','00039393','SP','1','0.460 ','50','23'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-6-0','00039393','RD','12','0.135 ','320','43.2'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0009','1','CBRE-YKXC-6-0','1','2.140','2.140','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-6-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-6-0','75.00','1','2.140','2.140','1','2.140','2.140'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.140',berat_out_asli=berat_out_asli+'2.140',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-6-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0009','2025-11-03','2025-11-03','10:51','2.14','input','2025-11-03 10:51:28'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251008-0008'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251008-0008'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-7-0','00039394','CBRE-04303 ','CINCIN CBRE-04303 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','1709500','2025-11-03','1709500','1.070','75.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 10:53:25','1.070','0','22.40','16600.00','','TOKO','FREETAG','','10','','0','IDB 7 500 000','2','RS 16 1025 1B8','BE-251008-0008',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-7-0','00039394'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-7-0','CBRE','TOKO','CBRE.BALIK','75.00','1.070','1.070','1','1.070','1.070','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-04303 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-7-0','00039394','RD','1','0.070 ','320','22.4'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0010','1','CBRE-YKXC-7-0','1','1.070','1.070','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-7-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-7-0','75.00','1','1.070','1.070','1','1.070','1.070'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.070',berat_out_asli=berat_out_asli+'1.070',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-7-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0010','2025-11-03','2025-11-03','10:53','1.07','input','2025-11-03 10:53:39'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251008-0005'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251008-0005'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-8-0','00039395','CBRE-06327 ','CINCIN CBRE-06327 ','','GR','---','DM','CBRE','TOKO','CBRE','4649000','2025-11-03','4649000','2.910','75.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 10:56:50','2.910','200000','233.10','16600.00','','TOKO','FREETAG','','10','','0','IDB 32 500 000','2','RS 15 1025 8B8','BE-251008-0005',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-8-0','00039395'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-8-0','CBRE','TOKO','CBRE','75.00','2.910','2.910','1','2.910','2.910','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06327 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-8-0','00039395','RD','2','0.150 ','420','63'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-8-0','00039395','RD','4','0.030 ','420','12.6'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-8-0','00039395','RD','7','0.270 ','420','113.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-8-0','00039395','RD','8','0.105 ','420','44.1'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0011','1','CBRE-YKXC-8-0','1','2.910','2.910','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-8-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-8-0','75.00','1','2.910','2.910','1','2.910','2.910'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.910',berat_out_asli=berat_out_asli+'2.910',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-8-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0011','2025-11-03','2025-11-03','10:56','2.91','input','2025-11-03 10:57:03'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251008-0004'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251008-0004'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('ABRE-YKXC-9-0','00039396','ABRE-00306 ','GIWANG ABRE-00306 ','','GR','---','DM','ABRE','TOKO','ABRE.BALIK','8062000','2025-11-03','8062000','4.560','83.00','75.00','0','2130000.00','1','0.04', 'input','2025-11-03 11:00:22','4.560','551500','348.60','16600.00','0','TOKO','FREETAG','','10','','0','IDB 51 500 000','3','1025 14B4','BE-251008-0004',''); DELETE FROM tp_barang WHERE kode_dept = 'ABRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('ABRE','ABRE-YKXC-9-0','00039396'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','ABRE-YKXC-9-0','ABRE','TOKO','ABRE.BALIK','83.00','4.560','4.560','1','4.560','4.560','1'); DELETE FROM tp_kode_intern WHERE kode_dept='ABRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('ABRE','ABRE-00306 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-9-0','00039396','RD','44','0.280 ','450','126'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-9-0','00039396','RD','12','0.400 ','420','168'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-9-0','00039396','RD','2','0.130 ','420','54.6'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0012','1','ABRE-YKXC-9-0','1','4.560','4.560','TOKO','ABRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='ABRE-YKXC-9-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','ABRE','ABRE-YKXC-9-0','83.00','1','4.560','4.560','1','4.560','4.560'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'4.560',berat_out_asli=berat_out_asli+'4.560',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='ABRE-YKXC-9-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0012','2025-11-03','2025-11-03','11:00','4.56','input','2025-11-03 11:00:36'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251008-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251008-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('KLBE-YKXC-10-0','00039397','KLBE-00041 ','KALUNG KLBE-00041 ','','GR','---','DM','KLBE','TOKO','KLBE','3642500','2025-11-03','3642500','2.280','75.00','75.00','0','2130000.00','1','0.04', 'input','2025-11-03 11:04:20','2.280','0','12.80','16600.00','','TOKO','FREETAG','','10','','0','IDB 15 000 000','2','1025 2B3','BE-251008-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'KLBE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('KLBE','KLBE-YKXC-10-0','00039397'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','KLBE-YKXC-10-0','KLBE','TOKO','KLBE','75.00','2.280','2.280','1','2.280','2.280','1'); DELETE FROM tp_kode_intern WHERE kode_dept='KLBE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('KLBE','KLBE-00041 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-10-0','00039397','RD','5','0.040 ','320','12.8'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0013','1','KLBE-YKXC-10-0','1','2.280','2.280','TOKO','KLBE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='KLBE-YKXC-10-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='KLBE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','KLBE','KLBE-YKXC-10-0','75.00','1','2.280','2.280','1','2.280','2.280'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.280',berat_out_asli=berat_out_asli+'2.280',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='KLBE-YKXC-10-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='KLBE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0013','2025-11-03','2025-11-03','11:04','2.28','input','2025-11-03 11:04:35'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251008-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251008-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-11-0','00039398','CBRE-04773 ','CINCIN CBRE-04773 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','4617000','2025-11-03','4617000','2.890','75.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 11:08:16','2.890','200000','434.00','16600.00','','TOKO','FREETAG','','10','','0','IDB 43 000 000','3','RS135 1025 12B1','BE-251008-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-11-0','00039398'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-11-0','CBRE','TOKO','CBRE.BALIK','75.00','2.890','2.890','1','2.890','2.890','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-04773 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-11-0','00039398','RD','1','0.025 ','400','10'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-11-0','00039398','RD','6','0.090 ','320','28.8'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-11-0','00039398','RD','8','0.740 ','480','355.2'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-11-0','00039398','RD','28','0.125 ','320','40'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0014','1','CBRE-YKXC-11-0','1','2.890','2.890','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-11-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-11-0','75.00','1','2.890','2.890','1','2.890','2.890'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.890',berat_out_asli=berat_out_asli+'2.890',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-11-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0014','2025-11-03','2025-11-03','11:08','2.89','input','2025-11-03 11:08:38'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251008-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251008-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-12-0','00039399','GBRE-00796 ','GELANG GBRE-00796 ','','GR','---','DM','GBRE','TOKO','GBRE','10496000','2025-11-03','10496000','6.570','75.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 11:11:27','6.570','0','201.60','16600.00','','TOKO','FREETAG','','10','','0','IDB 50 000 000','2','1025 11B7','BE-251008-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-12-0','00039399'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-12-0','GBRE','TOKO','GBRE','75.00','6.570','6.570','1','6.570','6.570','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-00796 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-12-0','00039399','RD','17','0.630 ','320','201.6'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0015','1','GBRE-YKXC-12-0','1','6.570','6.570','TOKO','GBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-12-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-12-0','75.00','1','6.570','6.570','1','6.570','6.570'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'6.570',berat_out_asli=berat_out_asli+'6.570',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-12-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0015','2025-11-03','2025-11-03','11:11','6.57','input','2025-11-03 11:11:45'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251009-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251009-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-13-0','00039400','CBRE-05381 ','CINCIN CBRE-05381 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','6046500','2025-11-03','6046500','3.420','83.00','75.00','0','2130000.00','1','0.04', 'input','2025-11-03 11:17:47','3.420','264000','246.40','16600.00','0','TOKO','FREETAG','','10','','0','IDB 37 500 000','3','RS15 1025 10B4','BE-251009-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-13-0','00039400'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-13-0','CBRE','TOKO','CBRE.BALIK','83.00','3.420','3.420','1','3.420','3.420','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-05381 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-13-0','00039400','RD','1','0.120 ','620','74.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-13-0','00039400','RD','60','0.390 ','400','156'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-13-0','00039400','RD','12','0.040 ','400','16'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0016','1','CBRE-YKXC-13-0','1','3.420','3.420','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-13-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-13-0','83.00','1','3.420','3.420','1','3.420','3.420'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'3.420',berat_out_asli=berat_out_asli+'3.420',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-13-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0016','2025-11-03','2025-11-03','11:17','3.42','input','2025-11-03 11:18:00'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251009-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251009-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-14-0','00039401','CBRE-02587 ','CBRE-02587 GIA 7386352196 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','3182500','2025-11-03','3182500','1.800','83.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 11:21:03','1.800','334000','453.25','16600.00','','TOKO','FREETAG','','10','','0','GIE 40 000 000','3','DVVS2 1025 11B1','BE-251009-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-14-0','00039401'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-14-0','CBRE','TOKO','CBRE.BALIK','83.00','1.800','1.800','1','1.800','1.800','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-02587 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-14-0','00039401','EMR','1','0.300 ','1350','405'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-14-0','00039401','RD','1','0.040 ','475','19'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-14-0','00039401','RD','17','0.065 ','450','29.25'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0017','1','CBRE-YKXC-14-0','1','1.800','1.800','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-14-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-14-0','83.00','1','1.800','1.800','1','1.800','1.800'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.800',berat_out_asli=berat_out_asli+'1.800',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-14-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0017','2025-11-03','2025-11-03','11:21','1.8','input','2025-11-03 11:21:16'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251010-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251010-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('KLBE-YKXC-15-0','00039402','KLBE-00299 ','KALUNG KLBE-00299 ','','GR','---','DM','KLBE','TOKO','KLBE.BALIK','3861500','2025-11-03','3861500','1.760','103.00','75.00','0','2130000.00','1','0.04', 'input','2025-11-03 11:28:34','1.760','443500','32.85','16600.00','0','TOKO','FREETAG','','10','','0','IDB 19 000 000','4','1025 4B9','BE-251010-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'KLBE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('KLBE','KLBE-YKXC-15-0','00039402'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','KLBE-YKXC-15-0','KLBE','TOKO','KLBE.BALIK','103.00','1.760','1.760','1','1.760','1.760','1'); DELETE FROM tp_kode_intern WHERE kode_dept='KLBE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('KLBE','KLBE-00299 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-15-0','00039402','RD','5','0.045 ','450','20.25'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-15-0','00039402','RD','1','0.030 ','420','12.6'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0018','1','KLBE-YKXC-15-0','1','1.760','1.760','TOKO','KLBE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='KLBE-YKXC-15-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='KLBE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','KLBE','KLBE-YKXC-15-0','103.00','1','1.760','1.760','1','1.760','1.760'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.760',berat_out_asli=berat_out_asli+'1.760',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='KLBE-YKXC-15-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='KLBE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0018','2025-11-03','2025-11-03','11:28','1.76','input','2025-11-03 11:28:50'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251010-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251010-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-16-0','00039403','CBRE-06551 ','CINCIN CBRE-06551 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','3094000','2025-11-03','3094000','1.750','83.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 11:30:37','1.750','452000','123.75','16600.00','','TOKO','FREETAG','','10','','0','IDB 20 000 000','2','RS 15 1025 5B6','BE-251010-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-16-0','00039403'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-16-0','CBRE','TOKO','CBRE.BALIK','83.00','1.750','1.750','1','1.750','1.750','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06551 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-16-0','00039403','RD','1','0.165 ','750','123.75'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0019','1','CBRE-YKXC-16-0','1','1.750','1.750','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-16-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-16-0','83.00','1','1.750','1.750','1','1.750','1.750'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.750',berat_out_asli=berat_out_asli+'1.750',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-16-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0019','2025-11-03','2025-11-03','11:30','1.75','input','2025-11-03 11:30:51'); UPDATE db_nagagold_elco2.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='FB-251010-0001'; UPDATE db_nagagold_elco2.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='FB-251010-0001'; UPDATE db_nagagold_elco2.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('TFC-YKXC-17-0','00039404','TFC-21442 ','CINCIN TFC-21442 ','','GR','---','DM','TFC','TOKO','TFC','2192500','2025-11-03','2192500','1.240','83.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 11:34:23','1.240','324500','65.25','16600.00','','TOKO','FREETAG','','10','','0','IDB 14 000 000','2','RS 12 1025 3B0','FB-251010-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'TFC' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('TFC','TFC-YKXC-17-0','00039404'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','TFC-YKXC-17-0','TFC','TOKO','TFC','83.00','1.240','1.240','1','1.240','1.240','1'); DELETE FROM tp_kode_intern WHERE kode_dept='TFC'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('TFC','TFC-21442 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('TFC-YKXC-17-0','00039404','RD','1','0.075 ','480','36'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('TFC-YKXC-17-0','00039404','RD','10','0.065 ','450','29.25'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0020','1','TFC-YKXC-17-0','1','1.240','1.240','TOKO','TFC','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='TFC-YKXC-17-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='TFC'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','TFC','TFC-YKXC-17-0','83.00','1','1.240','1.240','1','1.240','1.240'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.240',berat_out_asli=berat_out_asli+'1.240',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='TFC-YKXC-17-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='TFC' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0020','2025-11-03','2025-11-03','11:34','1.24','input','2025-11-03 11:34:36'); UPDATE db_nagagold_elco2.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='FB-251010-0002'; UPDATE db_nagagold_elco2.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='FB-251010-0002'; UPDATE db_nagagold_elco2.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('TFC-YKXC-18-0','00039405','TFC-21486 ','CINCIN TFC-21486 ','','GR','---','DM','TFC','TOKO','SEM-BALIK','3465500','2025-11-03','3465500','1.960','83.00','75','0','2130000.00','1','0.14', 'input','2025-11-03 11:36:33','1.960','225000','42.75','16600.00','','TOKO','FREETAG','','10','','','IDB 17 000 000','1','RS125 1025 4B4','FB-251010-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'TFC' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('TFC','TFC-YKXC-18-0','00039405'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','TFC-YKXC-18-0','TFC','TOKO','SEM-BALIK','83.00','1.960','1.960','1','1.960','1.960','1'); DELETE FROM tp_kode_intern WHERE kode_dept='TFC'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('TFC','TFC-21486 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('TFC-YKXC-18-0','00039405','RD','14','0.095 ','450','42.75'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251011-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251011-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-19-0','00039406','CBR2263 ','CINCIN CBR2263 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','3722500','2025-11-03','3722500','2.330','75.00','75','0','2130000.00','1','0.14', 'input','2025-11-03 11:39:05','2.330','100000','64.00','16600.00','','TOKO','FREETAG','','10','','','IDB 19 000 000','1','RS165 1025 4B9','BE-251011-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-19-0','00039406'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-19-0','CBRE','TOKO','SEM-BALIK','75.00','2.330','2.330','1','2.330','2.330','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBR2263 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-19-0','00039406','RD','1','0.040 ','320','12.8'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-19-0','00039406','RD','6','0.100 ','320','32'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-19-0','00039406','RD','20','0.060 ','320','19.2'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251012-0004'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251012-0004'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-20-0','00039407','CBRE-06923 ','CINCIN CBRE-06923 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','1917000','2025-11-03','1917000','1.200','75.00','75','0','2130000.00','1','0.14', 'input','2025-11-03 11:42:05','1.200','0','32.00','16600.00','','TOKO','FREETAG','','10','','','IDB 9 000 000','1','RS 14 1025 2B0','BE-251012-0004',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-20-0','00039407'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-20-0','CBRE','TOKO','SEM-BALIK','75.00','1.200','1.200','1','1.200','1.200','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06923 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-20-0','00039407','RD','1','0.070 ','320','22.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-20-0','00039407','RD','8','0.030 ','320','9.6'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251012-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251012-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-21-0','00039408','GBRE-00717 ','GELANG GBRE-00717 ','','GR','---','DM','GBRE','TOKO','GBRE.BALIK','10112500','2025-11-03','10112500','5.720','83.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 11:44:21','5.720','531500','346.75','16600.00','','TOKO','FREETAG','','10','','0','IDB 57 000 000','4','1025 16B4','BE-251012-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-21-0','00039408'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-21-0','GBRE','TOKO','GBRE.BALIK','83.00','5.720','5.720','1','5.720','5.720','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-00717 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-21-0','00039408','RD','19','0.730 ','475','346.75'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0021','1','GBRE-YKXC-21-0','1','5.720','5.720','TOKO','GBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-21-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-21-0','83.00','1','5.720','5.720','1','5.720','5.720'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'5.720',berat_out_asli=berat_out_asli+'5.720',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-21-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0021','2025-11-03','2025-11-03','11:44','5.72','input','2025-11-03 11:44:35'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251012-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251012-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-22-0','00039409','CBR0979 ','CINCIN CBR0979 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','11850000','2025-11-03','11850000','7.320','76.00','75','0','2130000.00','1','0.14', 'input','2025-11-03 11:46:55','7.320','647500','522.00','16600.00','','TOKO','FREETAG','','10','','','IDB 73 000 000','1','RS 12 1025 21B2','BE-251012-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-22-0','00039409'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-22-0','CBRE','TOKO','SEM-BALIK','76.00','7.320','7.320','1','7.320','7.320','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBR0979 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-22-0','00039409','RD','13','0.530 ','420','222.6'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-22-0','00039409','RD','26','0.370 ','420','155.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-22-0','00039409','RD','78','0.320 ','450','144'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251012-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251012-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-23-0','00039410','CBRE-04375 ','CINCIN CBRE-04375 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','3554000','2025-11-03','3554000','1.720','97.00','75','0','2130000.00','1','0.04', 'input','2025-11-03 11:48:58','1.720','183500','107.40','16600.00','','TOKO','FREETAG','','10','','0','IDB 20 500 000','3','RS 11 1025 5B6','BE-251012-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-23-0','00039410'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-23-0','CBRE','TOKO','CBRE.BALIK','97.00','1.720','1.720','1','1.720','1.720','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-04375 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-23-0','00039410','RD','1','0.025 ','420','10.5'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-23-0','00039410','RD','6','0.070 ','420','29.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-23-0','00039410','RD','14','0.090 ','450','40.5'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-23-0','00039410','RD','15','0.060 ','450','27'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0022','1','CBRE-YKXC-23-0','1','1.720','1.720','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-23-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-23-0','97.00','1','1.720','1.720','1','1.720','1.720'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.720',berat_out_asli=berat_out_asli+'1.720',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-23-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0022','2025-11-03','2025-11-03','11:49','1.72','input','2025-11-03 11:49:11'); UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2201500',harga_beli ='2201500' WHERE kode_barcode='00001136' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4458500',harga_beli ='4458500' WHERE kode_barcode='00001394' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='173500',harga_beli ='173500' WHERE kode_barcode='00001984' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2522500',harga_beli ='2522500' WHERE kode_barcode='00002031' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5584500',harga_beli ='5584500' WHERE kode_barcode='00002094' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2092000',harga_beli ='2092000' WHERE kode_barcode='00003287' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2001000',harga_beli ='2001000' WHERE kode_barcode='00003288' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2037500',harga_beli ='2037500' WHERE kode_barcode='00003289' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4857000',harga_beli ='4857000' WHERE kode_barcode='00003290' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='17935500',harga_beli ='17935500' WHERE kode_barcode='00003291' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2495500',harga_beli ='2495500' WHERE kode_barcode='00005675' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2473000',harga_beli ='2473000' WHERE kode_barcode='00005680' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2336500',harga_beli ='2336500' WHERE kode_barcode='00005686' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2427500',harga_beli ='2427500' WHERE kode_barcode='00005694' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2405000',harga_beli ='2405000' WHERE kode_barcode='00005695' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6750000',harga_beli ='6750000' WHERE kode_barcode='00006371' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2584500',harga_beli ='2584500' WHERE kode_barcode='00007446' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='9258000',harga_beli ='9258000' WHERE kode_barcode='00007503' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3339500',harga_beli ='3339500' WHERE kode_barcode='00014815' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3925500',harga_beli ='3925500' WHERE kode_barcode='00015245' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4032000',harga_beli ='4032000' WHERE kode_barcode='00015248' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4742500',harga_beli ='4742500' WHERE kode_barcode='00016090' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3837000',harga_beli ='3837000' WHERE kode_barcode='00016091' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5488500',harga_beli ='5488500' WHERE kode_barcode='00019597' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6554500',harga_beli ='6554500' WHERE kode_barcode='00019598' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='7904500',harga_beli ='7904500' WHERE kode_barcode='00019599' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6394500',harga_beli ='6394500' WHERE kode_barcode='00020277' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1332500',harga_beli ='1332500' WHERE kode_barcode='00020571' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2469000',harga_beli ='2469000' WHERE kode_barcode='00023554' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3766000',harga_beli ='3766000' WHERE kode_barcode='00023557' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3410500',harga_beli ='3410500' WHERE kode_barcode='00023558' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1954000',harga_beli ='1954000' WHERE kode_barcode='00023559' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1883000',harga_beli ='1883000' WHERE kode_barcode='00023560' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5773000',harga_beli ='5773000' WHERE kode_barcode='00023561' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6927500',harga_beli ='6927500' WHERE kode_barcode='00023565' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3091000',harga_beli ='3091000' WHERE kode_barcode='00023566' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6128000',harga_beli ='6128000' WHERE kode_barcode='00023567' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4867000',harga_beli ='4867000' WHERE kode_barcode='00023569' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2362500',harga_beli ='2362500' WHERE kode_barcode='00023577' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2007500',harga_beli ='2007500' WHERE kode_barcode='00023578' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4565000',harga_beli ='4565000' WHERE kode_barcode='00023579' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3197500',harga_beli ='3197500' WHERE kode_barcode='00023581' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4739500',harga_beli ='4739500' WHERE kode_barcode='00023587' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6110500',harga_beli ='6110500' WHERE kode_barcode='00023669' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='9254500',harga_beli ='9254500' WHERE kode_barcode='00023670' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='8348500',harga_beli ='8348500' WHERE kode_barcode='00023671' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3055500',harga_beli ='3055500' WHERE kode_barcode='00023673' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4760500',harga_beli ='4760500' WHERE kode_barcode='00023675' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6643500',harga_beli ='6643500' WHERE kode_barcode='00023677' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6057000',harga_beli ='6057000' WHERE kode_barcode='00023678' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6234500',harga_beli ='6234500' WHERE kode_barcode='00023696' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='7158500',harga_beli ='7158500' WHERE kode_barcode='00023698' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='14281000',harga_beli ='14281000' WHERE kode_barcode='00023884' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1457000',harga_beli ='1457000' WHERE kode_barcode='00023899' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1457000',harga_beli ='1457000' WHERE kode_barcode='00023900' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1385500',harga_beli ='1385500' WHERE kode_barcode='00023902' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1332500',harga_beli ='1332500' WHERE kode_barcode='00023903' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4405500',harga_beli ='4405500' WHERE kode_barcode='00023909' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='7567000',harga_beli ='7567000' WHERE kode_barcode='00023910' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='8650500',harga_beli ='8650500' WHERE kode_barcode='00023911' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='7353500',harga_beli ='7353500' WHERE kode_barcode='00023963' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6892000',harga_beli ='6892000' WHERE kode_barcode='00024003' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='7549000',harga_beli ='7549000' WHERE kode_barcode='00024088' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6732000',harga_beli ='6732000' WHERE kode_barcode='00024116' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4014500',harga_beli ='4014500' WHERE kode_barcode='00024117' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='48188500',harga_beli ='48188500' WHERE kode_barcode='00024185' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='7496000',harga_beli ='7496000' WHERE kode_barcode='00024187' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6927500',harga_beli ='6927500' WHERE kode_barcode='00024190' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5133500',harga_beli ='5133500' WHERE kode_barcode='00024191' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='9858000',harga_beli ='9858000' WHERE kode_barcode='00024259' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='11440000',harga_beli ='11440000' WHERE kode_barcode='00024357' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6572000',harga_beli ='6572000' WHERE kode_barcode='00024362' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5311000',harga_beli ='5311000' WHERE kode_barcode='00025021' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5826000',harga_beli ='5826000' WHERE kode_barcode='00026264' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4565000',harga_beli ='4565000' WHERE kode_barcode='00026265' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2938000',harga_beli ='2938000' WHERE kode_barcode='00039388' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5152500',harga_beli ='5152500' WHERE kode_barcode='00039389' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1983000',harga_beli ='1983000' WHERE kode_barcode='00039391' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2632500',harga_beli ='2632500' WHERE kode_barcode='00039392' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3435000',harga_beli ='3435000' WHERE kode_barcode='00039393' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1717500',harga_beli ='1717500' WHERE kode_barcode='00039394' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4671000',harga_beli ='4671000' WHERE kode_barcode='00039395' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='8099500',harga_beli ='8099500' WHERE kode_barcode='00039396' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3659500',harga_beli ='3659500' WHERE kode_barcode='00039397' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4638500',harga_beli ='4638500' WHERE kode_barcode='00039398' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='10545000',harga_beli ='10545000' WHERE kode_barcode='00039399' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='6075000',harga_beli ='6075000' WHERE kode_barcode='00039400' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3197500',harga_beli ='3197500' WHERE kode_barcode='00039401' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3879500',harga_beli ='3879500' WHERE kode_barcode='00039402' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3108500',harga_beli ='3108500' WHERE kode_barcode='00039403' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='2203000',harga_beli ='2203000' WHERE kode_barcode='00039404' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3481500',harga_beli ='3481500' WHERE kode_barcode='00039405' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3740000',harga_beli ='3740000' WHERE kode_barcode='00039406' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='1926000',harga_beli ='1926000' WHERE kode_barcode='00039407' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='10160000',harga_beli ='10160000' WHERE kode_barcode='00039408' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='11905500',harga_beli ='11905500' WHERE kode_barcode='00039409' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3570500',harga_beli ='3570500' WHERE kode_barcode='00039410' LIMIT 1; UPDATE tm_group SET harga='2140000' WHERE kode_group = 'DM' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('DM','2140000','input','2025-11-03 13:48:57'); UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='15007000',harga_beli ='15007000' WHERE kode_barcode='00001173' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='8804000',harga_beli ='8804000' WHERE kode_barcode='00001223' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4638500',harga_beli ='4638500' WHERE kode_barcode='00001224' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4675000',harga_beli ='4675000' WHERE kode_barcode='00001225' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5425000',harga_beli ='5425000' WHERE kode_barcode='00002442' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4118000',harga_beli ='4118000' WHERE kode_barcode='00004222' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='10227500',harga_beli ='10227500' WHERE kode_barcode='00006106' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3139000',harga_beli ='3139000' WHERE kode_barcode='00006485' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='11770000',harga_beli ='11770000' WHERE kode_barcode='00034435' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='5595500',harga_beli ='5595500' WHERE kode_barcode='00038144' LIMIT 1; UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='4619500',harga_beli ='4619500' WHERE kode_barcode='00039390' LIMIT 1; UPDATE tm_group SET harga='2140000' WHERE kode_group = 'GOLD' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('GOLD','2140000','input','2025-11-03 13:49:04'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PLD' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PLD','2140000','input','2025-11-03 13:49:08'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSBRE' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSBRE','2140000','input','2025-11-03 13:49:11'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSBRL' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSBRL','2140000','input','2025-11-03 13:49:14'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSBRT' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSBRT','2140000','input','2025-11-03 13:49:17'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSGE' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSGE','2140000','input','2025-11-03 13:49:22'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSGL' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSGL','2140000','input','2025-11-03 13:49:26'); UPDATE tm_barang SET harga_skrg ='2140000',harga_jual='3233000',harga_beli ='3233000' WHERE kode_barcode='00033486' LIMIT 1; UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSGT' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSGT','2140000','input','2025-11-03 13:49:30'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSPLE' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSPLE','2140000','input','2025-11-03 13:49:34'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSPLL' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSPLL','2140000','input','2025-11-03 13:49:38'); UPDATE tm_group SET harga='2140000' WHERE kode_group = 'PSPLT' LIMIT 1; INSERT INTO th_troy(kode_group,harga_skrg,input_by,input_date) VALUES ('PSPLT','2140000','input','2025-11-03 13:49:43'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251013-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251013-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-24-0','00039411','CBRE-02679 ','CINCIN CBRE-02679 ','','GR','---','DM','CBRE','TOKO','CBRE','7961000','2025-11-03','7961000','4.960','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 13:52:26','4.960','0','211.20','16600.00','','TOKO','FREETAG','','10','','0','IDB 41 000 000','2','RS 15 1025 9B6','BE-251013-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-24-0','00039411'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-24-0','CBRE','TOKO','CBRE','75.00','4.960','4.960','1','4.960','4.960','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-02679 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-24-0','00039411','RD','4','0.160 ','320','51.2'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-24-0','00039411','RD','26','0.150 ','320','48'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-24-0','00039411','RD','51','0.350 ','320','112'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0023','1','CBRE-YKXC-24-0','1','4.960','4.960','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-24-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-24-0','75.00','1','4.960','4.960','1','4.960','4.960'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'4.960',berat_out_asli=berat_out_asli+'4.960',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-24-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0023','2025-11-03','2025-11-03','13:52','4.96','input','2025-11-03 13:52:41'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251013-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251013-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-25-0','00039412','CBRE-06266 ','CBRE-06266 GIA 7481371509 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','5746000','2025-11-03','5746000','3.580','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 13:55:30','3.580','1043000','892.25','16600.00','','TOKO','FREETAG','','10','','0','GIE 75 000 000','6','DVS1 1025 21B6','BE-251013-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-25-0','00039412'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-25-0','CBRE','TOKO','CBRE.BALIK','75.00','3.580','3.580','1','3.580','3.580','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06266 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-25-0','00039412','RD','1','0.500 ','1600','800'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-25-0','00039412','RD','42','0.205 ','450','92.25'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0024','1','CBRE-YKXC-25-0','1','3.580','3.580','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-25-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-25-0','75.00','1','3.580','3.580','1','3.580','3.580'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'3.580',berat_out_asli=berat_out_asli+'3.580',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-25-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0024','2025-11-03','2025-11-03','13:55','3.58','input','2025-11-03 13:55:42'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251013-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251013-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CMP-YKXC-26-0','00039413','CMPE75-76% ','CINCIN MAS PUTIH ','','GR','---','GOLD','CMP','TOKO','SEM-EMAS','846000','2025-11-03','846000','0.520','76.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 13:56:49','0.520','0','','16600.00','','TOKO','FREETAG','','2','','','','6','','BE-251013-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CMP' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CMP','CMP-YKXC-26-0','00039413'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CMP-YKXC-26-0','CMP','TOKO','SEM-EMAS','76.00','0.520','0.520','1','0.520','0.520','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CMP'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CMP','CMPE75-76% '); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251014-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251014-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-27-0','00039414','CBRE-00931 ','CBRE-00931 GIA 2377117949 ','','GR','---','DM','CBRE','TOKO','CBRE','6195500','2025-11-03','6195500','3.860','75.00','75.00','0','2140000.00','1','0.04', 'input','2025-11-03 13:59:47','3.860','0','420.50','16600.00','','TOKO','FREETAG','','10','','0','GIE 47 000 000','2','EVS1 1025 11B7','BE-251014-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-27-0','00039414'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-27-0','CBRE','TOKO','CBRE','75.00','3.860','3.860','1','3.860','3.860','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-00931 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-27-0','00039414','RD','34','0.200 ','320','64'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-27-0','00039414','RD','1','0.230 ','1550','356.5'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0025','1','CBRE-YKXC-27-0','1','3.860','3.860','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-27-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-27-0','75.00','1','3.860','3.860','1','3.860','3.860'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'3.860',berat_out_asli=berat_out_asli+'3.860',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-27-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0025','2025-11-03','2025-11-03','13:59','3.86','input','2025-11-03 14:00:03'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251014-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251014-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-28-0','00039415','CBRE-06482 ','CINCIN CBRE-06482 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','3801500','2025-11-03','3801500','2.140','83.00','75.00','0','2140000.00','1','0.04', 'input','2025-11-03 14:03:19','2.140','450000','33.50','16600.00','0','TOKO','FREETAG','','10','','0','IDB 19 500 000','3','RS 13 1025 5B6','BE-251014-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-28-0','00039415'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-28-0','CBRE','TOKO','CBRE.BALIK','83.00','2.140','2.140','1','2.140','2.140','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06482 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-28-0','00039415','RD','6','0.030 ','450','13.5'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-28-0','00039415','BG','3','0.050 ','400','20'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0026','1','CBRE-YKXC-28-0','1','2.140','2.140','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-28-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-28-0','83.00','1','2.140','2.140','1','2.140','2.140'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.140',berat_out_asli=berat_out_asli+'2.140',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-28-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0026','2025-11-03','2025-11-03','14:03','2.14','input','2025-11-03 14:03:33'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251014-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251014-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('ABRE-YKXC-29-0','00039416','ABRE-00125 ','ANTING ABRE-00125 ','','GR','---','DM','ABRE','TOKO','ABRE.BALIK','6035000','2025-11-03','6035000','3.760','75.00','75.00','0','2140000.00','1','0.04', 'input','2025-11-03 14:05:58','3.760','0','129.60','16600.00','','TOKO','FREETAG','','10','','0','IDB 30 500 000','3','1025 6B4','BE-251014-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'ABRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('ABRE','ABRE-YKXC-29-0','00039416'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','ABRE-YKXC-29-0','ABRE','TOKO','ABRE.BALIK','75.00','3.760','3.760','1','3.760','3.760','1'); DELETE FROM tp_kode_intern WHERE kode_dept='ABRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('ABRE','ABRE-00125 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-29-0','00039416','RD','2','0.165 ','320','52.8'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-29-0','00039416','RD','16','0.240 ','320','76.8'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0027','1','ABRE-YKXC-29-0','1','3.760','3.760','TOKO','ABRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='ABRE-YKXC-29-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','ABRE','ABRE-YKXC-29-0','75.00','1','3.760','3.760','1','3.760','3.760'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'3.760',berat_out_asli=berat_out_asli+'3.760',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='ABRE-YKXC-29-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0027','2025-11-03','2025-11-03','14:06','3.76','input','2025-11-03 14:06:12'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251015-0004'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251015-0004'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-30-0','00039417','CBRE-06924 ','CINCIN CBRE-06924 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','6372000','2025-11-03','6372000','3.970','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 14:30:21','3.970','443000','221.45','16600.00','','TOKO','FREETAG','','10','','','IDB 42 000 000','1','RS 13 1025 10B5','BE-251015-0004',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-30-0','00039417'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-30-0','CBRE','TOKO','SEM-BALIK','75.00','3.970','3.970','1','3.970','3.970','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06924 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-30-0','00039417','RD','34','0.230 ','320','73.6'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-30-0','00039417','RD','28','0.100 ','320','32'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-30-0','00039417','BD','1','1.655 ','70','115.85'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251015-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251015-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-31-0','00039418','CBRE-06755 ','CINCIN CBRE-06755 ','','GR','---','DM','CBRE','TOKO','CBRE','6092500','2025-11-03','6092500','3.430','83.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:33:10','3.430','761000','338.25','16600.00','','TOKO','FREETAG','','10','','0','IDB 45 000 000','2','RS135 1025 14B7','BE-251015-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-31-0','00039418'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-31-0','CBRE','TOKO','CBRE','83.00','3.430','3.430','1','3.430','3.430','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06755 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-31-0','00039418','RD','1','0.260 ','1050','273'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-31-0','00039418','RD','34','0.145 ','450','65.25'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0028','1','CBRE-YKXC-31-0','1','3.430','3.430','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-31-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-31-0','83.00','1','3.430','3.430','1','3.430','3.430'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'3.430',berat_out_asli=berat_out_asli+'3.430',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-31-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0028','2025-11-03','2025-11-03','14:33','3.43','input','2025-11-03 14:33:23'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251015-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251015-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-32-0','00039419','GBRE-01065 ','GELANG GBRE-01065 ','','GR','---','DM','GBRE','TOKO','GBRE','10400500','2025-11-03','10400500','6.480','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:35:18','6.480','0','193.60','16600.00','','TOKO','FREETAG','','10','','0','IDB 49 000 000','2','1025 11B9','BE-251015-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-32-0','00039419'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-32-0','GBRE','TOKO','GBRE','75.00','6.480','6.480','1','6.480','6.480','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-01065 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-32-0','00039419','RD','17','0.605 ','320','193.6'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0029','1','GBRE-YKXC-32-0','1','6.480','6.480','TOKO','GBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-32-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-32-0','75.00','1','6.480','6.480','1','6.480','6.480'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'6.480',berat_out_asli=berat_out_asli+'6.480',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-32-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0029','2025-11-03','2025-11-03','14:35','6.48','input','2025-11-03 14:35:33'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251015-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251015-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-33-0','00039420','CBRE-06925 ','CINCIN CBRE-06925 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','6147500','2025-11-03','6147500','3.830','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 14:37:35','3.830','0','16.20','16600.00','','TOKO','FREETAG','','10','','','IDB 26 000 000','1','RS14 1025 4B9','BE-251015-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-33-0','00039420'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-33-0','CBRE','TOKO','SEM-BALIK','75.00','3.830','3.830','1','3.830','3.830','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06925 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-33-0','00039420','BD','21','0.810 ','20','16.2'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251015-0005'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251015-0005'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('LBRE-YKXC-34-0','00039421','LBRE-00509 ','LBRE-00509 GIA 2424798764 ','','GR','---','DM','LBRE','TOKO','LBRE.BALIK','1942500','2025-11-03','1942500','1.210','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:40:20','1.210','0','264.00','16600.00','','TOKO','FREETAG','','10','','0','GIE 23 500 000','3','EVVS1 1025 5B8','BE-251015-0005',''); DELETE FROM tp_barang WHERE kode_dept = 'LBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('LBRE','LBRE-YKXC-34-0','00039421'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','LBRE-YKXC-34-0','LBRE','TOKO','LBRE.BALIK','75.00','1.210','1.210','1','1.210','1.210','1'); DELETE FROM tp_kode_intern WHERE kode_dept='LBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('LBRE','LBRE-00509 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-34-0','00039421','RD','1','0.160 ','1500','240'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-34-0','00039421','RD','16','0.075 ','320','24'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0030','1','LBRE-YKXC-34-0','1','1.210','1.210','TOKO','LBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='LBRE-YKXC-34-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='LBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','LBRE','LBRE-YKXC-34-0','75.00','1','1.210','1.210','1','1.210','1.210'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.210',berat_out_asli=berat_out_asli+'1.210',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='LBRE-YKXC-34-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='LBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0030','2025-11-03','2025-11-03','14:40','1.21','input','2025-11-03 14:40:33'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251016-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251016-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('ABRE-YKXC-35-0','00039422','ABRE-01669 ','GIWANG ABRE-01669 ','','GR','---','DM','ABRE','TOKO','ABRE','6131500','2025-11-03','6131500','3.820','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:43:08','3.820','0','209.60','16600.00','','TOKO','FREETAG','','10','','0','IDB 36 000 000','2','1025 9B5','BE-251016-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'ABRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('ABRE','ABRE-YKXC-35-0','00039422'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','ABRE-YKXC-35-0','ABRE','TOKO','ABRE','75.00','3.820','3.820','1','3.820','3.820','1'); DELETE FROM tp_kode_intern WHERE kode_dept='ABRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('ABRE','ABRE-01669 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-35-0','00039422','RD','10','0.170 ','320','54.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-35-0','00039422','RD','22','0.235 ','320','75.2'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-35-0','00039422','RD','50','0.250 ','320','80'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0031','1','ABRE-YKXC-35-0','1','3.820','3.820','TOKO','ABRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='ABRE-YKXC-35-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','ABRE','ABRE-YKXC-35-0','75.00','1','3.820','3.820','1','3.820','3.820'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'3.820',berat_out_asli=berat_out_asli+'3.820',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='ABRE-YKXC-35-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0031','2025-11-03','2025-11-03','14:43','3.82','input','2025-11-03 14:43:25'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251016-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251016-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-36-0','00039423','GBRE-00693 ','GELANG GBRE-00693 ','','GR','---','DM','GBRE','TOKO','GBRE.BALIK','20640500','2025-11-03','20640500','12.860','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:45:27','12.860','0','310.40','16600.00','','TOKO','FREETAG','','10','','0','IDB 89 000 000','3','1025 19B2','BE-251016-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-36-0','00039423'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-36-0','GBRE','TOKO','GBRE.BALIK','75.00','12.860','12.860','1','12.860','12.860','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-00693 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-36-0','00039423','RD','81','0.970 ','320','310.4'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0032','1','GBRE-YKXC-36-0','1','12.860','12.860','TOKO','GBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-36-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-36-0','75.00','1','12.860','12.860','1','12.860','12.860'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'12.860',berat_out_asli=berat_out_asli+'12.860',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-36-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0032','2025-11-03','2025-11-03','14:45','12.86','input','2025-11-03 14:45:44'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251016-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251016-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CMP-YKXC-37-0','00039424','CMPE75-76% ','CINCIN MAS PUTIH ','','GR','---','GOLD','CMP','TOKO','SEM-EMAS','3627000','2025-11-03','3627000','2.230','76.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 14:46:38','2.230','0','','16600.00','','TOKO','FREETAG','','2','','','','3','1025','BE-251016-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CMP' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CMP','CMP-YKXC-37-0','00039424'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CMP-YKXC-37-0','CMP','TOKO','SEM-EMAS','76.00','2.230','2.230','1','2.230','2.230','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CMP'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CMP','CMPE75-76% '); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251017-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251017-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('ABRE-YKXC-38-0','00039425','ABRE-00881 ','GIWANG ABRE-00881 ','','GR','---','DM','ABRE','TOKO','ABRE.BALIK','2274000','2025-11-03','2274000','1.280','83.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:48:57','1.280','415500','127.10','16600.00','','TOKO','FREETAG','','10','','0','IDB 19 000 000','3','1025 5B150','BE-251017-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'ABRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('ABRE','ABRE-YKXC-38-0','00039425'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','ABRE-YKXC-38-0','ABRE','TOKO','ABRE.BALIK','83.00','1.280','1.280','1','1.280','1.280','1'); DELETE FROM tp_kode_intern WHERE kode_dept='ABRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('ABRE','ABRE-00881 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-38-0','00039425','RD','2','0.205 ','620','127.1'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0033','1','ABRE-YKXC-38-0','1','1.280','1.280','TOKO','ABRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='ABRE-YKXC-38-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','ABRE','ABRE-YKXC-38-0','83.00','1','1.280','1.280','1','1.280','1.280'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.280',berat_out_asli=berat_out_asli+'1.280',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='ABRE-YKXC-38-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0033','2025-11-03','2025-11-03','14:49','1.28','input','2025-11-03 14:49:12'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251018-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251018-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-39-0','00039426','CBRE-06169 ','CBRE-06169 GIA 1478432630 ','','GR','---','DM','CBRE','TOKO','CBRE','2632500','2025-11-03','2632500','1.640','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:52:41','1.640','0','355.90','16600.00','','TOKO','FREETAG','','10','','0','GIE 32 500 000','2','DVVS2 1025 8B1','BE-251018-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-39-0','00039426'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-39-0','CBRE','TOKO','CBRE','75.00','1.640','1.640','1','1.640','1.640','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06169 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-39-0','00039426','RD','1','0.230 ','1450','333.5'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-39-0','00039426','RD','14','0.070 ','320','22.4'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0034','1','CBRE-YKXC-39-0','1','1.640','1.640','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-39-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-39-0','75.00','1','1.640','1.640','1','1.640','1.640'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.640',berat_out_asli=berat_out_asli+'1.640',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-39-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0034','2025-11-03','2025-11-03','14:52','1.64','input','2025-11-03 14:52:55'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251018-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251018-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-40-0','00039427','CBRE-06109 ','CINCIN CBRE-06109 ','','GR','---','DM','CBRE','TOKO','CBRE','1421000','2025-11-03','1421000','0.800','83.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:54:37','0.800','0','60.75','16600.00','','TOKO','FREETAG','','10','','0','IDB 9 000 000','2','RS155 1025 2B4','BE-251018-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-40-0','00039427'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-40-0','CBRE','TOKO','CBRE','83.00','0.800','0.800','1','0.800','0.800','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06109 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-40-0','00039427','RD','21','0.135 ','450','60.75'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0035','1','CBRE-YKXC-40-0','1','0.800','0.800','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-40-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-40-0','83.00','1','0.800','0.800','1','0.800','0.800'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'0.800',berat_out_asli=berat_out_asli+'0.800',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-40-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0035','2025-11-03','2025-11-03','14:54','0.8','input','2025-11-03 14:54:51'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251019-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251019-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-41-0','00039428','CBRE-05875 ','CINCIN CBRE-05875 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','1226000','2025-11-03','1226000','0.690','83.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 14:57:13','0.690','0','47.25','16600.00','','TOKO','FREETAG','','10','','0','IDB 7 000 000','3','RS12 1025 1B9','BE-251019-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-41-0','00039428'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-41-0','CBRE','TOKO','CBRE.BALIK','83.00','0.690','0.690','1','0.690','0.690','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-05875 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-41-0','00039428','RD','15','0.105 ','450','47.25'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0036','1','CBRE-YKXC-41-0','1','0.690','0.690','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-41-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-41-0','83.00','1','0.690','0.690','1','0.690','0.690'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'0.690',berat_out_asli=berat_out_asli+'0.690',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-41-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0036','2025-11-03','2025-11-03','14:57','0.69','input','2025-11-03 14:57:27'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251019-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251019-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-42-0','00039429','CBR1010 ','CINCIN CBR1010 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','4462000','2025-11-03','4462000','2.780','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 15:07:59','2.780','0','80.00','16600.00','','TOKO','FREETAG','','10','','','IDB 21 500 000','1','RS115 1025 4B3','BE-251019-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-42-0','00039429'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-42-0','CBRE','TOKO','SEM-BALIK','75.00','2.780','2.780','1','2.780','2.780','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBR1010 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-42-0','00039429','RD','61','0.250 ','320','80'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251019-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251019-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('ABRE-YKXC-43-0','00039430','ABRE-00520 ','GIWANG ABRE-00520 ','','GR','---','DM','ABRE','TOKO','ABRE','1717500','2025-11-03','1717500','1.070','75.00','75.00','0','2140000.00','1','0.04', 'input','2025-11-03 15:09:49','1.070','0','90.00','16600.00','0','TOKO','FREETAG','','10','','0','IDB 12 500 000','2','1025 3B3','BE-251019-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'ABRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('ABRE','ABRE-YKXC-43-0','00039430'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','ABRE-YKXC-43-0','ABRE','TOKO','ABRE','75.00','1.070','1.070','1','1.070','1.070','1'); DELETE FROM tp_kode_intern WHERE kode_dept='ABRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('ABRE','ABRE-00520 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-43-0','00039430','RD','2','0.180 ','500','90'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0037','1','ABRE-YKXC-43-0','1','1.070','1.070','TOKO','ABRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='ABRE-YKXC-43-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','ABRE','ABRE-YKXC-43-0','75.00','1','1.070','1.070','1','1.070','1.070'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.070',berat_out_asli=berat_out_asli+'1.070',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='ABRE-YKXC-43-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='ABRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0037','2025-11-03','2025-11-03','15:09','1.07','input','2025-11-03 15:10:02'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251021-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251021-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-44-0','00039431','CBRE-05426 ','CBRE-05426 GIA 7422458785 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','4032000','2025-11-03','4032000','2.270','83.00','75.00','0','2140000.00','1','0.04', 'input','2025-11-03 15:14:58','2.270','100000','418.00','16600.00','0','TOKO','FREETAG','','10','','0','GIE 40 500 000','3','DIF 1025 11B1','BE-251021-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-44-0','00039431'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-44-0','CBRE','TOKO','CBRE.BALIK','83.00','2.270','2.270','1','2.270','2.270','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-05426 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-44-0','00039431','RD','1','0.160 ','1500','240'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-44-0','00039431','RD','86','0.420 ','400','168'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-44-0','00039431','RD','8','0.025 ','400','10'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0038','1','CBRE-YKXC-44-0','1','2.270','2.270','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-44-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-44-0','83.00','1','2.270','2.270','1','2.270','2.270'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.270',berat_out_asli=berat_out_asli+'2.270',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-44-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0038','2025-11-03','2025-11-03','15:15','2.27','input','2025-11-03 15:15:19'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251021-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251021-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-45-0','00039432','GBRE-01042 ','GELANG GBRE-01042 ','','GR','---','DM','GBRE','TOKO','GBRE.BALIK','7142500','2025-11-03','7142500','4.450','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 15:17:13','4.450','0','216.00','16600.00','','TOKO','FREETAG','','10','','0','IDB 38 500 000','3','1025 10B0','BE-251021-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-45-0','00039432'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-45-0','GBRE','TOKO','GBRE.BALIK','75.00','4.450','4.450','1','4.450','4.450','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-01042 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-45-0','00039432','RD','11','0.675 ','320','216'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0039','1','GBRE-YKXC-45-0','1','4.450','4.450','TOKO','GBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-45-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-45-0','75.00','1','4.450','4.450','1','4.450','4.450'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'4.450',berat_out_asli=berat_out_asli+'4.450',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-45-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0039','2025-11-03','2025-11-03','15:17','4.45','input','2025-11-03 15:17:26'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251023-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251023-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-46-0','00039433','CBRE-04364 ','CINCIN CBRE-04364 ','','GR','---','DM','CBRE','TOKO','CBRE','8234000','2025-11-03','8234000','5.130','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 15:20:16','5.130','0','222.40','16600.00','','TOKO','FREETAG','','10','','0','IDB 43 000 000','2','RS13 1025 9B9','BE-251023-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-46-0','00039433'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-46-0','CBRE','TOKO','CBRE','75.00','5.130','5.130','1','5.130','5.130','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-04364 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-46-0','00039433','RD','33','0.695 ','320','222.4'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0040','1','CBRE-YKXC-46-0','1','5.130','5.130','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-46-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-46-0','75.00','1','5.130','5.130','1','5.130','5.130'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'5.130',berat_out_asli=berat_out_asli+'5.130',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-46-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0040','2025-11-03','2025-11-03','15:20','5.13','input','2025-11-03 15:20:30'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251023-0005'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251023-0005'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-47-0','00039434','CBRE-05754 ','CINCIN CBRE-05754 ','','GR','---','DM','CBRE','TOKO','CBRE','4012500','2025-11-03','4012500','2.500','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 15:22:32','2.500','0','153.60','16600.00','','TOKO','FREETAG','','10','','0','IDB 24 500 000','2','RS 13 1025 6B4','BE-251023-0005',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-47-0','00039434'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-47-0','CBRE','TOKO','CBRE','75.00','2.500','2.500','1','2.500','2.500','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-05754 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-47-0','00039434','RD','4','0.125 ','320','40'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-47-0','00039434','RD','5','0.130 ','320','41.6'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-47-0','00039434','RD','52','0.225 ','320','72'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0041','1','CBRE-YKXC-47-0','1','2.500','2.500','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-47-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-47-0','75.00','1','2.500','2.500','1','2.500','2.500'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.500',berat_out_asli=berat_out_asli+'2.500',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-47-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0041','2025-11-03','2025-11-03','15:22','2.5','input','2025-11-03 15:22:46'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251023-0004'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251023-0004'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-48-0','00039435','GBRE-00722 ','GELANG GBRE-00722 ','','GR','---','DM','GBRE','TOKO','GBRE','9213000','2025-11-03','9213000','5.740','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 15:24:35','5.740','0','240.00','16600.00','','TOKO','FREETAG','','10','','0','IDB 47 000 000','2','1025 11B6','BE-251023-0004',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-48-0','00039435'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-48-0','GBRE','TOKO','GBRE','75.00','5.740','5.740','1','5.740','5.740','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-00722 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-48-0','00039435','RD','19','0.750 ','320','240'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0042','1','GBRE-YKXC-48-0','1','5.740','5.740','TOKO','GBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-48-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-48-0','75.00','1','5.740','5.740','1','5.740','5.740'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'5.740',berat_out_asli=berat_out_asli+'5.740',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-48-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0042','2025-11-03','2025-11-03','15:24','5.74','input','2025-11-03 15:24:48'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251023-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251023-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('LBRE-YKXC-49-0','00039436','LBRE-00701 ','LIONTIN LBRE-00701 ','','GR','---','DM','LBRE','TOKO','LBRE','3989000','2025-11-03','3989000','2.330','80.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 15:27:27','2.330','0','246.00','16600.00','','TOKO','FREETAG','','10','','0','IDB 30 000 000','2','1025 8B0','BE-251023-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'LBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('LBRE','LBRE-YKXC-49-0','00039436'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','LBRE-YKXC-49-0','LBRE','TOKO','LBRE','80.00','2.330','2.330','1','2.330','2.330','1'); DELETE FROM tp_kode_intern WHERE kode_dept='LBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('LBRE','LBRE-00701 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-49-0','00039436','RD','1','0.065 ','400','26'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-49-0','00039436','RD','8','0.090 ','400','36'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('LBRE-YKXC-49-0','00039436','RD','81','0.460 ','400','184'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0043','1','LBRE-YKXC-49-0','1','2.330','2.330','TOKO','LBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='LBRE-YKXC-49-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='LBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','LBRE','LBRE-YKXC-49-0','80.00','1','2.330','2.330','1','2.330','2.330'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'2.330',berat_out_asli=berat_out_asli+'2.330',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='LBRE-YKXC-49-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='LBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0043','2025-11-03','2025-11-03','15:27','2.33','input','2025-11-03 15:27:41'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251023-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251023-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GLRR-YKXC-50-0','00039437','GLRRE75-76% ','GELANG RANTAI ROSE GOLD ','','GR','---','GOLD','GLRR','TOKO','SEM-EMAS','3432000','2025-11-03','3432000','2.110','76.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 15:28:51','2.110','0','','16600.00','','TOKO','FREETAG','','2','','','','2','','BE-251023-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'GLRR' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GLRR','GLRR-YKXC-50-0','00039437'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GLRR-YKXC-50-0','GLRR','TOKO','SEM-EMAS','76.00','2.110','2.110','1','2.110','2.110','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GLRR'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GLRR','GLRRE75-76% '); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251020-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251020-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-51-0','00039438','GBRE-00198 ','GELANG GBRE-00198 ','','GR','---','DM','GBRE','TOKO','GBRE.BALIK','9903000','2025-11-03','9903000','6.170','75.00','75.00','0','2140000.00','1','0.04', 'input','2025-11-03 15:31:34','6.170','0','201.60','16600.00','0','TOKO','FREETAG','','10','','0','IDB 47 500 000','4','1025 11B2','BE-251020-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-51-0','00039438'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-51-0','GBRE','TOKO','GBRE.BALIK','75.00','6.170','6.170','1','6.170','6.170','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-00198 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-51-0','00039438','RD','72','0.180 ','320','57.6'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-51-0','00039438','RD','18','0.450 ','320','144'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0044','1','GBRE-YKXC-51-0','1','6.170','6.170','TOKO','GBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-51-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-51-0','75.00','1','6.170','6.170','1','6.170','6.170'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'6.170',berat_out_asli=berat_out_asli+'6.170',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-51-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0044','2025-11-03','2025-11-03','15:31','6.17','input','2025-11-03 15:31:46'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251022-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251022-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-52-0','00039439','CBRE-06281 ','CINCIN CBRE-06281 ','','GR','---','DM','CBRE','TOKO','CBRE','1137000','2025-11-03','1137000','0.640','83.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 15:33:52','0.640','100000','31.50','16600.00','','TOKO','FREETAG','','10','','0','IDB 7 000 000','2','RS 11 1025 1B8','BE-251022-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-52-0','00039439'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-52-0','CBRE','TOKO','CBRE','83.00','0.640','0.640','1','0.640','0.640','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06281 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-52-0','00039439','RD','15','0.070 ','450','31.5'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0045','1','CBRE-YKXC-52-0','1','0.640','0.640','TOKO','CBRE','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-52-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-52-0','83.00','1','0.640','0.640','1','0.640','0.640'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'0.640',berat_out_asli=berat_out_asli+'0.640',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-52-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0045','2025-11-03','2025-11-03','15:34','0.64','input','2025-11-03 15:34:08'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251026-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251026-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-53-0','00039440','CBRE-04489 ','CBRE-04489 GIA 1435597651 ','','GR','---','DM','CBRE','TOKO','CBRE.BALIK','1942500','2025-11-03','1942500','1.210','75.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 15:36:23','1.210','0','244.80','16600.00','','TOKO','FREETAG','','10','','0','GIE 22 500 000','3','EVVS1 1025 5B6','BE-251026-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-53-0','00039440'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-53-0','CBRE','TOKO','CBRE.BALIK','75.00','1.210','1.210','1','1.210','1.210','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-04489 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-53-0','00039440','RD','1','0.160 ','1500','240'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-53-0','00039440','RD','2','0.015 ','320','4.8'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0046','1','CBRE-YKXC-53-0','1','1.210','1.210','TOKO','CBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='CBRE-YKXC-53-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','CBRE','CBRE-YKXC-53-0','75.00','1','1.210','1.210','1','1.210','1.210'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'1.210',berat_out_asli=berat_out_asli+'1.210',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='CBRE-YKXC-53-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='CBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0046','2025-11-03','2025-11-03','15:36','1.21','input','2025-11-03 15:36:36'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251028-0004'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251028-0004'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-54-0','00039441','CBRE-06926 ','CBRE-06926 GIA 6452030799 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','4414000','2025-11-03','4414000','2.750','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 15:51:28','2.750','0','1045.60','16600.00','','TOKO','FREETAG','','10','','','GIE 75 500 000','1','EVVS2 1025 21B8','BE-251028-0004',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-54-0','00039441'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-54-0','CBRE','TOKO','SEM-BALIK','75.00','2.750','2.750','1','2.750','2.750','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBRE-06926 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-54-0','00039441','RD','1','0.510 ','2000','1020'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-54-0','00039441','RD','9','0.080 ','320','25.6'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251028-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251028-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('CBRE-YKXC-55-0','00039442','CBR0872 ','CINCIN CBR0872 ','','GR','---','DM','CBRE','TOKO','SEM-BALIK','3017500','2025-11-03','3017500','1.880','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 15:53:38','1.880','0','179.80','16600.00','','TOKO','FREETAG','','10','','','IDB 22 500 000','1','RS 11 1025 5B6','BE-251028-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'CBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('CBRE','CBRE-YKXC-55-0','00039442'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','CBRE-YKXC-55-0','CBRE','TOKO','SEM-BALIK','75.00','1.880','1.880','1','1.880','1.880','1'); DELETE FROM tp_kode_intern WHERE kode_dept='CBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('CBRE','CBR0872 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-55-0','00039442','RD','1','0.180 ','750','135'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('CBRE-YKXC-55-0','00039442','RD','14','0.140 ','320','44.8'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251027-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251027-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('KLBE-YKXC-56-0','00039443','KLBE-00862 ','KALUNG KLBE-00862 ','','GR','---','DM','KLBE','TOKO','SEM-BALIK','9389500','2025-11-03','9389500','5.850','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 15:56:45','5.850','0','188.80','16600.00','','TOKO','FREETAG','','10','','','IDB 45 000 000','1','1025 9B6','BE-251027-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'KLBE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('KLBE','KLBE-YKXC-56-0','00039443'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','KLBE-YKXC-56-0','KLBE','TOKO','SEM-BALIK','75.00','5.850','5.850','1','5.850','5.850','1'); DELETE FROM tp_kode_intern WHERE kode_dept='KLBE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('KLBE','KLBE-00862 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-56-0','00039443','RD','1','0.045 ','320','14.4'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-56-0','00039443','RD','16','0.285 ','320','91.2'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-56-0','00039443','RD','34','0.260 ','320','83.2'); UPDATE db_nagagold_elco2.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='FB-251027-0001'; UPDATE db_nagagold_elco2.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='FB-251027-0001'; UPDATE db_nagagold_elco2.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('TFGRR-YKXC-57-0','00039444','TFGRR75-76% ','THIFA GELANG RANTAI RG ','','GR','---','GOLD','TFGRR','TOKO','SEM-EMAS','4895500','2025-11-03','4895500','3.010','76.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 15:58:14','3.010','0','','16600.00','','TOKO','FREETAG','','2','','','','1','1025','FB-251027-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'TFGRR' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('TFGRR','TFGRR-YKXC-57-0','00039444'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','TFGRR-YKXC-57-0','TFGRR','TOKO','SEM-EMAS','76.00','3.010','3.010','1','3.010','3.010','1'); DELETE FROM tp_kode_intern WHERE kode_dept='TFGRR'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('TFGRR','TFGRR75-76% '); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251029-0003'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251029-0003'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('ABRE-YKXC-58-0','00039445','ABRE-02098 ','ANTING ABRE-02098 ','','GR','---','DM','ABRE','TOKO','SEM-BALIK','2391500','2025-11-03','2391500','1.490','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 16:02:49','1.490','0','38.40','16600.00','','TOKO','FREETAG','','10','','','IDB 12 000 000','1','1025 2B7','BE-251029-0003',''); DELETE FROM tp_barang WHERE kode_dept = 'ABRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('ABRE','ABRE-YKXC-58-0','00039445'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','ABRE-YKXC-58-0','ABRE','TOKO','SEM-BALIK','75.00','1.490','1.490','1','1.490','1.490','1'); DELETE FROM tp_kode_intern WHERE kode_dept='ABRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('ABRE','ABRE-02098 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('ABRE-YKXC-58-0','00039445','RD','28','0.120 ','320','38.4'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251029-0002'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251029-0002'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('KLBE-YKXC-59-0','00039446','KLBE-00863 ','KALUNG KLBE-00863 ','','GR','---','DM','KLBE','TOKO','SEM-BALIK','9004500','2025-11-03','9004500','5.610','75.00','75','0','2140000.00','1','0.14', 'input','2025-11-03 16:04:36','5.610','0','259.20','16600.00','','TOKO','FREETAG','','10','','','IDB 48 000 000','1','1025 10B9','BE-251029-0002',''); DELETE FROM tp_barang WHERE kode_dept = 'KLBE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('KLBE','KLBE-YKXC-59-0','00039446'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','KLBE-YKXC-59-0','KLBE','TOKO','SEM-BALIK','75.00','5.610','5.610','1','5.610','5.610','1'); DELETE FROM tp_kode_intern WHERE kode_dept='KLBE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('KLBE','KLBE-00863 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-59-0','00039446','RD','15','0.680 ','320','217.6'); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('KLBE-YKXC-59-0','00039446','RD','4','0.130 ','320','41.6'); UPDATE db_nagagold_elco1.tt_beli_detail SET status='DONE' WHERE no_faktur_beli='BE-251029-0001'; UPDATE db_nagagold_elco1.tt_barang_tukar SET status='DONE' WHERE no_faktur_group='BE-251029-0001'; UPDATE db_nagagold_elco1.tt_persekot_detail SET status_close='DONE' WHERE no_persekot=''; INSERT INTO tm_barang (kode_barang,kode_barcode,kode_intern,nama_barang,nama_atribut,kode_satuan,kode_supplier,kode_group,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,harga_beli,tgl_last_beli,harga_jual,berat,kadar,kadar_cetak,harga_atribut,harga_skrg,stock_on_hand,berat_bandrol,input_by,input_date,berat_asli,ongkos_berlian,total_usd,curr_rp,potongan,gudang_asal,tagid,kadar_beli,profit,harga_modal,berat_atribut,total_usd_ext,no_urut,kode_cetak,no_faktur_beli,no_persekot) VALUES ('GBRE-YKXC-60-0','00039447','GBRE-01278 ','GELANG GBRE-01278 ','','GR','---','DM','GBRE','TOKO','GBRE.BALIK','7458000','2025-11-03','7458000','4.100','85.00','75','0','2140000.00','1','0.04', 'input','2025-11-03 16:07:05','4.100','0','145.60','16600.00','','TOKO','FREETAG','','10','','0','IDB 37 000 000','3','1025 9B8','BE-251029-0001',''); DELETE FROM tp_barang WHERE kode_dept = 'GBRE' LIMIT 1; INSERT INTO tp_barang (kode_dept,kode_barang,kode_barcode) VALUES ('GBRE','GBRE-YKXC-60-0','00039447'); INSERT INTO tt_barang_saldo(tanggal,kode_barang,kode_dept,kode_lokasi_gudang,kode_lokasi_toko,kadar,berat_tambah,berat_tambah_asli,stock_tambah,berat_akhir,berat_akhir_asli,stock_akhir) VALUES ('2025-11-03','GBRE-YKXC-60-0','GBRE','TOKO','GBRE.BALIK','85.00','4.100','4.100','1','4.100','4.100','1'); DELETE FROM tp_kode_intern WHERE kode_dept='GBRE'; INSERT INTO tp_kode_intern (kode_dept,no_intern) VALUES ('GBRE','GBRE-01278 '); INSERT INTO tm_berlian (kode_barang,kode_barcode,jenis_batu,jml_batu,krt_batu,harga_usd,total_usd) VALUES('GBRE-YKXC-60-0','00039447','RD','21','0.455 ','320','145.6'); INSERT INTO tt_pindah_detail(no_pindah,no_urut,kode_barang,qty,berat,jml_detail,gudang_asal,lokasi_asal,gudang_to,lokasi_to) VALUES ('PB-251103-0047','1','GBRE-YKXC-60-0','1','4.100','4.100','TOKO','GBRE.BALIK','TOKO','SEM-BALIK'); UPDATE tm_barang SET berat_bandrol='0', kode_lokasi_gudang='TOKO', kode_lokasi_toko='SEM-BALIK' WHERE kode_barang='GBRE-YKXC-60-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK'; INSERT INTO tt_barang_saldo(tanggal,kode_lokasi_gudang,kode_lokasi_toko,kode_dept,kode_barang,kadar,stock_in,berat_in,berat_in_asli,stock_akhir,berat_akhir,berat_akhir_asli) VALUES('2025-11-03','TOKO','SEM-BALIK','GBRE','GBRE-YKXC-60-0','85.00','1','4.100','4.100','1','4.100','4.100'); UPDATE tt_barang_saldo SET stock_out=stock_out+1,berat_out=berat_out+'4.100',berat_out_asli=berat_out_asli+'4.100',stock_akhir=0,berat_akhir=0,berat_akhir_asli=0 WHERE tanggal='2025-11-03' AND kode_barang='GBRE-YKXC-60-0' AND kode_lokasi_gudang='TOKO' AND kode_lokasi_toko='GBRE.BALIK' AND stock_akhir > 0; INSERT INTO tt_pindah_head(no_pindah,tgl_system,tgl_pindah,jam_pindah,jml_berat,input_by,input_date) VALUES('PB-251103-0047','2025-11-03','2025-11-03','16:07','4.1','input','2025-11-03 16:07:19'); INSERT INTO th_user_login (user_id,tgl_login,jam_login) VALUES('input','2025-11-03 ','16:09:04');