| record_id |
int |
id ของเอกสาร |
[optional] [default to 0] |
| contact_code |
string |
รหัส ลูกค้า/ผู้จำหน่าย |
[optional] |
| contact_name |
string |
ชื่อ ลูกค้า/ผู้จำหน่าย <br> <ex>Example: บริษัท ลูกค้า จำกัด, คุณลูกค้า ซื้อประจำ</ex> |
|
| contact_address |
string |
ที่อยู่ ลูกค้า/ผู้จำหน่าย |
[optional] |
| contact_tax_id |
string |
เลขประจำตัวผู้เสียภาษี ลูกค้า หรือ ผู้จำหน่าย/ลูกค้า <br> (ถ้ามีจำเป็นต้องครบ 13 หลัก) <br> <ex>Example: 1234567890123 </ex> |
[optional] |
| contact_branch |
string |
สำนักงาน/สาขา |
[optional] |
| contact_person |
string |
ชื่อผู้ติดต่อ |
[optional] |
| contact_email |
string |
อีเมลผู้ติดต่อ <br> <ex>Example: contact@email.com</ex> |
[optional] |
| contact_number |
string |
เบอร์มือถือผู้ติดต่อ <br> <ex>Example: 099-999-9999</ex> |
[optional] |
| contact_zip_code |
string |
รหัสไปรษณีย์ติดต่อ |
[optional] |
| contact_group |
int |
ประผู้ติดต่อ <br> 1 = บุคคลธรรมดา <br> 3 = นิติบุคคล |
[optional] [default to 1] |
| published_on |
\DateTime |
วันที่เอกสาร รูปแบบ yyyy-MM-dd <br> <ex>Example: 2020-01-01</ex> |
|
| credit_type |
int |
รูปแบบเครดิต <br> 1 = เครดิต (วัน) <br> 3 = เงินสด <br> 5 = เครดิต (ไม่แสดงวันที่ครบกำหนด) |
[optional] [default to 1] |
| credit_days |
int |
จำนวนวันที่ให้เครดิต <br> <ex>Example: 30</ex> |
[optional] [default to 0] |
| due_date |
\DateTime |
วันครบกำหนดเอกสาร รูปแบบ yyyy-MM-dd <br> <ex>Example: 2020-01-01</ex> |
|
| sales_name |
string |
ชื่อผู้สร้างเอกสาร หรือ ชื่อพนักงานขาย <br> <ex>Example: sale@email.com or Mr.Sale Shop</ex> |
[optional] [default to 'อีเมล หรือ ชื่อผู้สร้างเอกสาร'] |
| project_name |
string |
ชื่อโปรเจค |
[optional] |
| reference |
string |
เลขที่อ้างอิง หรือ เลขที่เอกสารที่เกี่ยวข้อง <br> <ex>Example: INV2020010001</ex> |
[optional] |
| is_vat_inclusive |
bool |
มูลค่าเอกสารรวมภาษีแล้วหรือไม่ |
[optional] [default to false] |
| use_receipt_deduction |
bool |
เปิดใช้งานฟังก์ชั่น ปรับลดท้ายเอกสาร <br> (เฉพาะเอกสารใบกำกับภาษี / ใบเสร็จรับเงิน และ ใบเสร็จรับเงิน) |
[optional] [default to false] |
| sub_total |
float |
มูลค่ารวมเป็นเงิน |
[optional] [default to 0] |
| discount_percentage |
int |
มูลค่าส่วนลดเป็นเปอร์เซ็นต์ |
[optional] [default to 0] |
| discount_amount |
float |
มูลค่าส่วนลดเป็นจำนวน (บาท) |
[optional] [default to 0] |
| total_after_discount |
float |
มูลค่าหลังหักส่วนลด |
|
| is_vat |
bool |
มูลค่าหลังหักส่วนลด มีภาษีมูลค่าเพิ่ม 7% |
[optional] [default to false] |
| vat_amount |
float |
ภาษีมูลค่าเพิ่ม |
[optional] |
| grand_total |
float |
จำนวนเงินรวมทั้งสิ้น (รวมภาษีมูลค่าเพิ่ม 7% แล้ว) |
|
| document_show_withholding_tax |
bool |
แสดงหรือไม่แสดง หัก ณ ที่จ่ายท้ายเอกสาร |
[optional] [default to false] |
| document_withholding_tax_percentage |
int |
ภาษี ณ ที่จ่าย (%) |
[optional] [default to 0] |
| document_withholding_tax_amount |
float |
มูลค่าภาษีหัก ณ ที่จ่าย |
[optional] [default to 0] |
| document_deduction_type |
int |
ประเภทรายการปรับลด <br> 1 = ส่วนลดพิเศษ <br> 3 = ค่านายหน้าและส่วนแบ่งการขาย <br> 5 = ค่าดำเนินการ <br> 7 = ปัดเศษ <br> (เฉพาะเอกสารใบกำกับภาษี/ใบเสร็จรับเงิน) |
[optional] [default to 0] |
| document_deduction_amount |
float |
จำนวนเงินยอดรายการปรับลด <br> (เฉพาะเอกสารใบกำกับภาษี/ใบเสร็จรับเงิน) |
[optional] [default to 0] |
| remarks |
string |
หมายเหตุเอกสาร |
[optional] |
| internal_notes |
string |
โน๊ตภายในบริษัท |
[optional] |
| show_signature_or_stamp |
bool |
ลายเซ็นอิเล็กทรอนิกส์และตรายาง |
[optional] [default to true] |
| document_structure_type |
string |
|
|