fix: body not save in database
This commit is contained in:
parent
c1fb21e14c
commit
d5e0c56da3
1 changed files with 12 additions and 0 deletions
|
|
@ -311,6 +311,12 @@ export class CreditNoteController extends Controller {
|
||||||
quotation: true,
|
quotation: true,
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
reason: body.reason,
|
||||||
|
detail: body.detail,
|
||||||
|
paybackType: body.paybackType,
|
||||||
|
paybackBank: body.paybackBank,
|
||||||
|
paybackAccount: body.paybackAccount,
|
||||||
|
paybackAccountName: body.paybackAccountName,
|
||||||
code: `CN${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}${last.value.toString().padStart(6, "0")}`,
|
code: `CN${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}${last.value.toString().padStart(6, "0")}`,
|
||||||
value,
|
value,
|
||||||
requestWork: {
|
requestWork: {
|
||||||
|
|
@ -415,6 +421,12 @@ export class CreditNoteController extends Controller {
|
||||||
quotation: true,
|
quotation: true,
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
reason: body.reason,
|
||||||
|
detail: body.detail,
|
||||||
|
paybackType: body.paybackType,
|
||||||
|
paybackBank: body.paybackBank,
|
||||||
|
paybackAccount: body.paybackAccount,
|
||||||
|
paybackAccountName: body.paybackAccountName,
|
||||||
value,
|
value,
|
||||||
requestWork: {
|
requestWork: {
|
||||||
disconnect: creditNoteData.requestWork
|
disconnect: creditNoteData.requestWork
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue