Git Product home page Git Product logo

ช่อง "จำนวนเงิน" ในใบเสนอราคาช่องสุดท้ายไม่ได้แสดงราคาหลังส่วนลดครับ about oas HOT 11 CLOSED

goragodwiriya avatar goragodwiriya commented on June 15, 2024
ช่อง "จำนวนเงิน" ในใบเสนอราคาช่องสุดท้ายไม่ได้แสดงราคาหลังส่วนลดครับ

from oas.

Comments (11)

goragodwiriya avatar goragodwiriya commented on June 15, 2024 1

from oas.

goragodwiriya avatar goragodwiriya commented on June 15, 2024 1

from oas.

goragodwiriya avatar goragodwiriya commented on June 15, 2024 1

from oas.

appdisqus avatar appdisqus commented on June 15, 2024

สวสดีครับ @goragod

ผมลองอัพเดตไฟล์ทั้งหมดแล้วพบว่าช่องจำนวนเงินมีการคำนวนส่วนลดผิดนะครับ โดยแทนที่จะลดเป็น % มันลดเป็นจำนวนตัวเลขที่อยู่หน้า % แทนน่ะครับ ยกตัวอย่างเช่นสินค้าตัวหนึ่งถูกตั้งราคาไว้ที่ 8000 บาท ลด 5% แล้วมันควรจะเหลือ 7,600 บาท (หลังบ้านแสดงถูกต้อง) แต่ในหน้าปรินต์ใบเสนอราคากลับกลายเป็นแสดงเป็น 7995 บาทแทน คือเอา 8000 ไปลบ 5 น่ะครับ ตามตัวอย่างรูปที่แนบมาเลยครับ

test-new

รบกวนชี้แนะด้วยนะครับ

ขอบคุณมากครับผม

from oas.

appdisqus avatar appdisqus commented on June 15, 2024

@goragod

ขอบคุณมากครับผม แสดงผลถูกต้องตามสมควรเรียบร้อยครับ ^^

อาจารย์พอจะมีวิธีให้มัน export เป็น pdf ได้แทนการปรินต์ด้วยไหมครับผม พอดีเห็นในคำอธิบายโค๊ดเหมือนจะมี controller สร้าง pdf แต่ไม่แน่ใจว่ามันต้องทำอย่างไรน่ะครับ

ขอบคุณมากครับผม

from oas.

goragodwiriya avatar goragodwiriya commented on June 15, 2024

from oas.

appdisqus avatar appdisqus commented on June 15, 2024

@goragod

รบกวนสอบถามอาจารย์อีกนิดครับว่าหากเราต้องการให้ Product Number (product_id) แสดงในหน้าใบสั่งซื้อด้วย จะต้องแก้ไขส่วนไหนเหรอครับให้มันสามารถดึงรหัสสินค้ามาได้ (เดี๋ยวผมไปจัดการในส่วนของพื้นที่ template ในหน้ายสั่งซื้อต่อเองให้มีที่สำหรับตัวเลขรหัสสินค้าได้ครับ)

ขอบคุณมากครับผม

from oas.

appdisqus avatar appdisqus commented on June 15, 2024

@goragod

ขอบคุณมากครับผม

ตอนนี้ผมเจออีกปัญหาครับ "หัก ภาษี หัก ณ ที่จ่าย/Less W/H Tax" ไม่ถูกนำไปหักลบจาก "Grand Total"

screen shot 2561-01-09 at 08 59 57

จะเห็นว่าจริงๆ แล้วยอดใน Grand Total จะต้องแสดงเป็น 46,800 (48,150 - 1,350) แต่ว่ามันแสดงเป็นยอดที่ไม่หักลบภาษี ณ ที่จ่ายแทนน่ะครับ

รบกวนด้วยครับผม

from oas.

appdisqus avatar appdisqus commented on June 15, 2024

@goragod

สวัาดีครับ

ผมเจอจุดที่ต้องแก้ไขแล้วครับผม

ขอบคุณมากครับ

from oas.

appdisqus avatar appdisqus commented on June 15, 2024

@goragod

อาจารย์ครับ ถ้าเราต้องการให้สามารถทำซ้ำ (duplicate) ใบสั่งซื้อหรือใบเสนอราคาได้ เราพอจะเพิ่มฟังก์ชั่นเข้าไปได้ไหมครับ และหากได้เราควรจะแก้ไขที่ไฟล์ไหนดีเหรอครับผม

ขอบคุณมากครับ

from oas.

goragodwiriya avatar goragodwiriya commented on June 15, 2024

from oas.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.