Skip to content

Instantly share code, notes, and snippets.

@3bugs
Last active March 30, 2024 17:10
Show Gist options
  • Select an option

  • Save 3bugs/ca9ed0caa45d41a13960db3c83a9953d to your computer and use it in GitHub Desktop.

Select an option

Save 3bugs/ca9ed0caa45d41a13960db3c83a9953d to your computer and use it in GitHub Desktop.
saleOrderHeaders: [
{
shipmentNo: "BL6703-00001",
shipmentDate: "2024-03-21T00:00:00.000Z",
invoiceNo: "BL6703-00001",
invoiceDate: "2024-03-21T00:00:00.000Z",
creditStartDate: "2024-03-21T00:00:00.000Z",
creditDays: 30,
creditEndDate: "2024-04-20T00:00:00.000Z",
dueDate: "2024-04-20T00:00:00.000Z",
saleCode: "EMP-00005",
saleName: "วีรดา พลจักร",
customerCode: "C-0001",
customerName: "นาย มาโนช ทดสอบ",
sumGoodAmount: 306000,
billDiscount: 153000,
billAfterDiscount: 153000,
vatType: "คิด",
baseVat: 153000,
vatRate: 7,
vatAmount: 10710,
netAmount: 163710,
vatCode: "SO-EX7",
vatGroup: 1,
jobCodeMore: "001",
goodType: "ขายสินค้า",
stockFlag: "Y",
exchRate: 1,
saleOrderDetails: [
{
partNumber: "DM-001",
partName: "ผลไม้",
inventory: "01",
location: "01",
unit: "กิโลกรัม",
qty: 100,
price: 1500,
discount: "10%",
amount: 135000,
jobCode: "001",
unitRate: 1
},
{
partNumber: "DM-002",
partName: "น้ำตาล",
inventory: "01",
location: "01",
unit: "กิโลกรัม",
qty: 90,
price: 2000,
discount: "5%",
amount: 171000,
jobCode: "001",
unitRate: 1
}
]
},
{
shipmentNo: "BL6703-00002",
shipmentDate: "2024-03-21T00:00:00.000Z",
invoiceNo: "BL6703-00002",
invoiceDate: "2024-03-21T00:00:00.000Z",
creditStartDate: "2024-03-21T00:00:00.000Z",
creditDays: 30,
creditEndDate: "2024-04-20T00:00:00.000Z",
dueDate: "2024-04-20T00:00:00.000Z",
saleCode: "EMP-00005",
saleName: "วีรดา พลจักร",
customerCode: "C-0001",
customerName: "นาย มาโนช ทดสอบ",
sumGoodAmount: 3113,
billDiscount: 0,
billAfterDiscount: 3113,
vatType: "ไม่คิด",
baseVat: 3113,
vatRate: 0,
vatAmount: 0,
netAmount: 3113,
vatCode: "NO",
vatGroup: 3,
goodType: "ขายสินค้า",
stockFlag: "Y",
exchRate: 1,
saleOrderDetails: [
{
partNumber: "DM-001",
partName: "ผลไม้",
inventory: "01",
location: "01",
unit: "กิโลกรัม",
qty: 15,
price: 55,
amount: 825,
unitRate: 1
},
{
partNumber: "DM-003",
partName: "น้ำบริสุทธิ์",
inventory: "01",
location: "01",
unit: "ลิตร",
qty: 52,
price: 44,
amount: 2288,
unitRate: 1
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment