You are on page 1of 24

DELIVERY PLAN

Cont No Ser Ship Delv Customer Ship Date


ETX-2020-0351 B 1 1 PENFABRIC SDN. BERHAD 30-06-2020
ETX-2020-0351 C 1 1 PENFABRIC SDN. BERHAD 30-06-2020

ADD NEW

CONT NO ETX 2020 0351

CUST_NAME Credit Limit Delv Amount


PENFABRIC SDN. BERHAD USD 100,000 67,320
SHIP_PLAN ARTICLE_CODE

ETX20200351-A-1 ET186JW

ETX20200351-B-1 ET208G2

ETX20200351-C-1 TC130SW

ETX20200351-D-1 TC130KW

ADD DELV PLAN

SHIP_PLAN ARTICLE_CODE
ETX20200351-A-1 ET186JW

DELV PLAN DELV QTY


Save
1 110,000
ADD DELV PLAN -- Jika sudah Pernah Ada Previous Delivery

SHIP_PLAN ARTICLE_CODE
ETX20200351-A-1 ET186JW

'>> Munculkan Delivery Plan DELV PLAN DELV QTY


Sebelum nya 1 50,000
Save
Insert Delv Plan selanjut nya 2 68,000
pakai Select Max + 1

Query sampai Shipment Plan


select a.cont_no1, a.cont_no2, a.cont_no3, a.cust_code, cm.cust_name, cont_date, a.length_unit,
a.cont_no1||a.cont_no2||a.cont_no3||'-'||b.cont_ser_no||'-'|| c.ship_no as ship_plan,
b.cont_ser_no, b.article_code, b.currency, b.cont_up, b.length_currency,
c.ship_no, c.ship_date, c.ship_qty, 0000000000 as ship_ori,
c.dest_code, dm.country_code, dm.dest_name, dm.country_name,
decode(substr(a.cont_no3,1,1),'S','3',Decode(a.cont_no1,'ETX',1,2)) as urut, '0000000' as sort_delv, '0000000' as sort_con
0000000000 as prev_delv_qty, a.cont_date as prev_delv_date, 0000000000 as delv_qty, a.cont_date as delv_date,
0000000000 as outstading_qty, 0000000000 as stock_AAA, 00000 as stk_Bale, 00000 as stk_Plt, b.cont_up as up_yds
from cont_header a, cont_detail1 b, cont_detail2 c, cust_master cm, dest_master dm
where a.cont_no1 = 'ETX' and a.cont_no2 = '2020' and a.cont_no3 = '0351' and a.cust_code = cm.cust_code and c.dest_c
and a.cont_no1 = b.cont_no1(+) and a.cont_no2 = b.cont_no2(+)
and a.cont_no3 = b.cont_no3
and b.cont_no1 = c.cont_no1(+) and b.cont_no2 = c.cont_no2(+)
and b.cont_no3 = c.cont_no3(+) and b.cont_ser_no = c.cont_ser_no(+)

Query Sampai Delivery Plan


select a.cont_no1, a.cont_no2, a.cont_no3, a.cust_code, cm.cust_name, cont_date, a.length_unit,
a.cont_no1||a.cont_no2||a.cont_no3||'-'||b.cont_ser_no||'-'|| c.ship_no as ship_plan,
b.cont_ser_no, b.article_code, b.currency, b.cont_up, b.length_currency,
c.ship_no, c.ship_date, c.ship_qty, 0000000000 as ship_ori,
c.dest_code, dm.country_code, dm.dest_name, dm.country_name,
d.deliv_no, d.deliv_date, d.deliv_qty,
decode(substr(a.cont_no3,1,1),'S','3',Decode(a.cont_no1,'ETX',1,2)) as urut, '0000000' as sort_delv, '0000000' as sort_con
0000000000 as prev_delv_qty, a.cont_date as prev_delv_date, 0000000000 as delv_qty, a.cont_date as delv_date,
0000000000 as outstading_qty, 0000000000 as stock_AAA, 00000 as stk_Bale, 00000 as stk_Plt, b.cont_up as up_yds
from cont_header a, cont_detail1 b, cont_detail2 c, cust_master cm, dest_master dm, delivery_schedule1 d
where a.cont_no1 = 'ETX' and a.cont_no2 = '2020' and a.cont_no3 = '0351' and a.cust_code = cm.cust_code and c.dest_c
and a.cont_no1 = b.cont_no1(+) and a.cont_no2 = b.cont_no2(+)
and a.cont_no3 = b.cont_no3
and b.cont_no1 = c.cont_no1(+) and b.cont_no2 = c.cont_no2(+)
and b.cont_no3 = c.cont_no3(+) and b.cont_ser_no = c.cont_ser_no(+)
and c.cont_no1 = d.cont_no1(+) and c.cont_no2 = d.cont_no2(+)
and c.cont_no3 = d.cont_no3(+) and c.cont_ser_no = d.cont_ser_no(+)
and c.ship_no = d.ship_no(+)

MTR
Article Uprice Quantity Remarks Delv Qty Amount
TC208A 68.7 100000 Invoice A 110000 67320
TC130W 114.91 100000 Invoice A

0351

Remain
32,680
SHIP_DATE SHIP_QTY LENGTH_CURRENCY CONT_UP Delv Qty

30-06-2020 118,000 YD 61.20 1 110,000

30-06-2020 106,000 YD 68.70

30-06-2020 105,000 YD 114.91


Save Cancel
31-08-2020 45,000 YD 114.91

SHIP_DATE SHIP_QTY LENGTH_CURRENCY CONT_UP


30-06-2020 118,000 YD 61.20

DELV DATE Note : Saat Save - Update ORACLE Delivery_Schedule1


Save Cancel
12/16/2020
SHIP_DATE SHIP_QTY LENGTH_CURRENCY CONT_UP
30-06-2020 118,000 YD 61.20

DELV DATE Note : Saat Save - Update ORACLE Delivery_Schedule1


11/16/2020
Save Cancel
12/16/2020 --> Yang Baru

te, a.length_unit,

000' as sort_delv, '0000000' as sort_cont, '000000' as sort_cust,


lv_qty, a.cont_date as delv_date,
000 as stk_Plt, b.cont_up as up_yds

cust_code = cm.cust_code and c.dest_code = dm.dest_code

te, a.length_unit,
000' as sort_delv, '0000000' as sort_cont, '000000' as sort_cust,
lv_qty, a.cont_date as delv_date,
000 as stk_Plt, b.cont_up as up_yds
dm, delivery_schedule1 d
cust_code = cm.cust_code and c.dest_code = dm.dest_code
Delv Status
OK

Amount Status DELV


Select
67,320 OK Select
Select
Select
LC
Screen Ikut Semua Dari CENTEX

Pada Saat Add Sales Order

CONT NO ETX 2020 0351

CUST_NAME
PENFABRIC SDN. BERHAD
SHIP_PLAN ARTICLE_CODE SHIP_DATE SHIP_QTY LENGTH_CURRENCY

ETX20200351-A-1 ET186JW 30-06-2020 118,000 YD

ETX20200351-B-1 ET208G2 30-06-2020 106,000 YD

ETX20200351-C-1 TC130SW 30-06-2020 105,000 YD

ETX20200351-D-1 TC130KW 31-08-2020 45,000 YD

Save Cancel
Save Cancel
CONT_UP Delv SHIP_QTY Amount

61.20 1 118,000 72,216.00

68.70 106,000 72,822.00

114.91 105,000 120,655.50

114.91 45,000 51,709.50


Contract Amount 317,403.00
CONT_NO1 CONT_NO2 CONT_NO3 CUST_CODE CUST_NAME CONT_DATE LENGTH_UNIT
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
ETX 2020 0341 ICH ICHIMURA SANGYO, CO.,LTD 16-04-2020 MTR
SHIP_PLAN CONT_SER_NO ARTICLE_CODE CURRENCY CONT_UP UP_YDS SHIP_QTY
ETX20200341-0-1 0 TT194JW USD 78.70 78.70 773
ETX20200341-1-1 1 TT194JW USD 78.70 78.70 23,000
ETX20200341-2-1 2 TT166WV USD 83.40 83.40 43,000
ETX20200341-2-2 2 TT166WV USD 83.40 83.40 42,000
ETX20200341-2-3 2 TT166WV USD 83.40 83.40 85,000
ETX20200341-3-1 3 TT156WE USD 75.80 75.80 54,000
ETX20200341-3-2 3 TT156WE USD 75.80 75.80 54,000
ETX20200341-3-3 3 TT156WE USD 75.80 75.80 129,272
ETX20200341-4-1 4 TT159WD USD 77.50 77.50 54,000
ETX20200341-4-2 4 TT159WD USD 77.50 77.50 54,000
ETX20200341-4-3 4 TT159WD USD 77.50 77.50 68,000
ETX20200341-5-1 5 TT170SV USD 75.30 75.30 54,000
ETX20200341-5-2 5 TT170SV USD 75.30 75.30 108,000
ETX20200341-5-3 5 TT170SV USD 75.30 75.30 148,000
ETX20200341-6-1 6 TT166WV USD 83.40 83.40 4,284
ETX20200341-7-1 7 TT159WD USD 72.50 72.50 4,091
ETX20200341-8-1 8 TT170SV USD 75.30 75.30 10,162
ETX20200341-9-1 9 TT156WE USD 75.80 75.80 5,162
LENGTH_CURRENCY MTR AMOUNT MTR TO YDS SHIP_YDS UPRICE YDS
MTR 608.35 1.09361 845.36 71.96350
MTR 18,101.00 1.09361 25,153.03 71.96350
MTR 35,862.00 1.09361 47,025.23 76.26119
MTR 35,028.00 1.09361 45,931.62 76.26119
MTR 70,890.00 1.09361 92,956.85 76.26119
MTR 40,932.00 1.09361 59,054.94 69.31173
MTR 40,932.00 1.09361 59,054.94 69.31173
MTR 97,988.18 1.09361 141,373.15 69.31173
MTR 41,850.00 1.09361 59,054.94 70.86621
MTR 41,850.00 1.09361 59,054.94 70.86621
MTR 52,700.00 1.09361 74,365.48 70.86621
MTR 40,662.00 1.09361 59,054.94 68.85453
MTR 81,324.00 1.09361 118,109.88 68.85453
MTR 111,444.00 1.09361 161,854.28 68.85453
MTR 3,572.86 1.09361 4,685.03 76.26119
MTR 2,965.98 1.09361 4,473.96 66.29420
MTR 7,651.99 1.09361 11,113.26 68.85453
MTR 3,912.80 1.09361 5,645.21 69.31173
SHIP_NO SHIP_DATE SHIP_ORI DEST_CODE COUNTRY_CODE DEST_NAME COUNTRY_NAME URUT
1 31-10-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 30-06-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 31-05-2020 0.00 KNZ JP KANAZAWA JEPANG 1
2 30-06-2020 0.00 KNZ JP KANAZAWA JEPANG 1
3 31-07-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 31-05-2020 0.00 KNZ JP KANAZAWA JEPANG 1
2 30-06-2020 0.00 KNZ JP KANAZAWA JEPANG 1
3 31-07-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 31-05-2020 0.00 KNZ JP KANAZAWA JEPANG 1
2 30-06-2020 0.00 KNZ JP KANAZAWA JEPANG 1
3 31-07-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 31-05-2020 0.00 KNZ JP KANAZAWA JEPANG 1
2 30-06-2020 0.00 KNZ JP KANAZAWA JEPANG 1
3 31-07-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 30-09-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 16-09-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 16-09-2020 0.00 KNZ JP KANAZAWA JEPANG 1
1 30-09-2020 0.00 KNZ JP KANAZAWA JEPANG 1
SORT_DELV SORT_CONT SORT_CUST PREV_DELV_QTY PREV_DELV_DATE DELV_QTY DELV_DATE
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
0000000 0000000 000000 0.00 16-04-2020 0.00 16-04-2020
OUTSTADING_QTY STOCK_AAA STK_BALE STK_PLT
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00
Invoice - PL

Add Detail

PL No GT-2020-19373

SER_NO CONTRACT_NO ARTICLE_CODE CURRENCY


1 ETX20200376-1-1-4 TT186SW USD
2 ETX20200436-1-1-1 TT186SW USD
3 ETX20200436-3-1-2 TT217JW USD
4 ETX20200409-1-1-3 TT220JD USD

Save

Muncul Di Header
DOCUMENT_NO SER_NO CONTRACT_NO ARTICLE_CODE
GT-2020-19365 1 ETX20200376-1-1-4 TT186SW
GT-2020-19365 2 ETX20200436-1-1-1 TT186SW
GT-2020-19365 3 ETX20200436-3-1-2 TT217JW
GT-2020-19365 4 ETX20200409-1-1-3 TT220JD
GT-2020-19366 3 ETX20200436-3-1-2 TT217JW
GT-2020-19366 4 ETX20200409-1-1-3 TT220JD

NOTE :
Perbaikan untuk UOM METER
select a.pl_ctl_no, a.cont_type, a.document_no, a.pl_date,
b.ser_no,b.cont_no1, b.cont_no2, b.cont_no3, b.cont_ser_no, b.ship_no, b.deliv_plan_no,
b.article_code, b.packout_qty, g.length_unit,
c.SER_NO as pcs_ser, c.trace_no1, c.trace_no2,
d.wh_pcs_qty, d.wh_qty, d.net_weight, d.gross_weight,
e.ser_no as roll_ser, e.grey_pcs_no1, e.grey_pcs_no2,
f.grade_code, f.pcs_length, f.length_category, f.loom_no,
decode(g.length_unit, 'MTR',f.pcs_length * 0.9144, f.pcs_length) as uom_qty
from packing_header a, packing_detail1 b, packing_detail2 c, warehouse_header d,
warehouse_detail e, grey_production f, cont_header g
where a.document_no = 'GT-2020-19365'
and a.pl_ctl_no = b.pl_ctl_no
and b.pl_ctl_no = c.pl_ctl_no
and b.cont_no1 = c.cont_no1 and b.cont_no2 = c.cont_no2
and b.cont_no3 = c.cont_no3 and b.cont_ser_no = c.cont_ser_no
and b.ship_no = c.ship_no and b.deliv_plan_no = c.deliv_plan_no
and c.trace_no1 = d.trace_no1 and c.trace_no2 = d.trace_no2
and d.trace_no1 = e.trace_no1 and d.trace_no2 = e.trace_no2
and e.grey_pcs_no1 = f.grey_pcs_no1 and e.grey_pcs_no2 = f.grey_pcs_no2
and b.cont_no1 = g.cont_no1 and b.cont_no2 = g.cont_no2
and b.cont_no3 = g.cont_no3

Untuk Summary nya


select document_no, ser_no,cont_no1||cont_no2||cont_no3||'-'||cont_ser_no||'-'||ship_no||'-'||deliv_plan_no as contra
article_code, currency, cont_up, length_unit, sum(wh_pcs_qty) as tot_pcs, sum(uom_qty) as quantity,
round((cont_up / 100) * sum(uom_qty),2) as pl_amount
from
(select a.pl_ctl_no, a.cont_type, a.document_no, a.pl_date,
b.ser_no,b.cont_no1, b.cont_no2, b.cont_no3, b.cont_ser_no, b.ship_no, b.deliv_plan_no,
b.article_code, b.packout_qty, g.length_unit,
c.SER_NO as pcs_ser, c.trace_no1, c.trace_no2,
d.wh_pcs_qty, d.wh_qty, d.net_weight, d.gross_weight,
e.ser_no as roll_ser, e.grey_pcs_no1, e.grey_pcs_no2,
f.grade_code, f.pcs_length, f.length_category, f.loom_no,
decode(g.length_unit, 'MTR',floor(f.pcs_length * 0.9144), f.pcs_length) as uom_qty,
h.currency, h.cont_up
from packing_header a, packing_detail1 b, packing_detail2 c, warehouse_header d,
warehouse_detail e, grey_production f, cont_header g, cont_detail1 h
where a.document_no = 'GT-2020-19365'
and a.pl_ctl_no = b.pl_ctl_no
and b.pl_ctl_no = c.pl_ctl_no
and b.cont_no1 = c.cont_no1 and b.cont_no2 = c.cont_no2
and b.cont_no3 = c.cont_no3 and b.cont_ser_no = c.cont_ser_no
and b.ship_no = c.ship_no and b.deliv_plan_no = c.deliv_plan_no
and c.trace_no1 = d.trace_no1 and c.trace_no2 = d.trace_no2
and d.trace_no1 = e.trace_no1 and d.trace_no2 = e.trace_no2
and e.grey_pcs_no1 = f.grey_pcs_no1 and e.grey_pcs_no2 = f.grey_pcs_no2
and b.cont_no1 = g.cont_no1 and b.cont_no2 = g.cont_no2
and b.cont_no3 = g.cont_no3
and b.cont_no1 = h.cont_no1 and b.cont_no2 = h.cont_no2
and b.cont_no3 = h.cont_no3 and b.cont_ser_no = h.cont_ser_no) temp
group by document_no, ser_no,cont_no1||cont_no2||cont_no3||'-'||cont_ser_no||'-'||ship_no||'-'||deliv_plan_no,
article_code, currency, cont_up, length_unit
Search

CONT_UP LENGTH_UNIT TOT_PCS QUANTITY PL_AMOUNT


84.60 MTR 225 3,117 2,636.98
85.80 MTR 300 7,402 6,350.92
85.50 MTR 342 9,253 7,911.32
84.80 MTR 275 10,257 8,697.94

Cancel
CURRENCY CONT_UP LENGTH_UNIT TOT_PCS QUANTITY INV_UP PL_AMOUNT
USD 84.60 MTR 225.00 3,117.00 84.60 2,636.98
USD 85.80 MTR 300.00 7,402.00 85.80 6,350.92
USD 85.50 MTR 342.00 9,253.00 85.50 7,911.32
USD 84.80 MTR 275.00 10,257.00 84.80 8,697.94
USD 85.50 MTR 342.00 9,253.00 85.50 7,911.32
USD 84.80 MTR 275.00 10,257.00 84.80 8,697.94
_no||'-'||deliv_plan_no as contract_no,

hip_no||'-'||deliv_plan_no,

You might also like