- รับ quantity ทศนิยมได้
- ทศนิยม 2 ตำแหน่ง
- เพิ่ม process การเลือก order ที่จะผลิต
- ตอนรับของ มีใส่ PR แล้ว suggest รายการของ PR มาให้เลือกได้ (suggest เหมือน PR)
- sum ของ main-inventory , หน้างาน
- ของหน้างาน ให้รู้ว่าเบิกไปโครงการไหน รับของโครงการไหน
- เพิ่ม form เบิกแบบเลือกเข้า inventory
- ตอนรับของ มีเลือกคลัง ถ้าไม่ใช่คลังหลัก ไม่มีการตัดไปทำ order
- เพิ่ม transfer ของ คลังต่อคลัง
- Drawing ให้ล็อครหัส
- หน้า receipt ราคาไม่ได้หาร 100
- เพิ่มเลือก order ตอน admin withdraw
- แยก HOF กับ Factory
- เพิ่ม layer คลังหน้างาน
- สร้าง user ให้ลองใช้
- login
gcloud auth login
- set project id
gcloud config set project daijai
- change environment (.env file) to prod
- comment some lines in
.gitignore
- keys/*
- .env
- .env*
- build
gcloud builds submit --config cloudbuild_run.yaml
- deploy
gcloud run deploy daijai --platform managed --region asia-southeast1 --image gcr.io/daijai/daijai-go --allow-unauthenticated
docker build --platform linux/amd64 -t daijai-go-1 .
PORT=8080 && docker run -p 9090:${PORT} -e PORT=${PORT} .
docker run --entrypoint=sh -ti daijai-go
- set slug config in
slug.model.go
- add model to function
initSlugger
inmigrator.go
- run migrate