mirror of
https://github.com/frappe/books.git
synced 2025-01-02 22:50:14 +00:00
Merge pull request #1047 from AbleKSaju/fix-sinv-validation
fix: change date fieldtype to Datetime in invoice
This commit is contained in:
commit
a05d2aa703
@ -29,8 +29,8 @@ const partyData = {
|
|||||||
|
|
||||||
const loyaltyProgramData = {
|
const loyaltyProgramData = {
|
||||||
name: 'program',
|
name: 'program',
|
||||||
fromDate: new Date(Date.now()),
|
fromDate: new Date('12/10/2024'),
|
||||||
toDate: new Date(Date.now()),
|
toDate: new Date('12/30/2024'),
|
||||||
email: 'sample@gmail.com',
|
email: 'sample@gmail.com',
|
||||||
mobile: '1234567890',
|
mobile: '1234567890',
|
||||||
expenseAccount: accountData.name,
|
expenseAccount: accountData.name,
|
||||||
@ -122,6 +122,7 @@ async function createSalesInvoice() {
|
|||||||
const sinvDoc = fyo.doc.getNewDoc(ModelNameEnum.SalesInvoice, {
|
const sinvDoc = fyo.doc.getNewDoc(ModelNameEnum.SalesInvoice, {
|
||||||
account: 'Debtors',
|
account: 'Debtors',
|
||||||
party: partyData.name,
|
party: partyData.name,
|
||||||
|
date: new Date('12/11/2024'),
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
item: itemData.name,
|
item: itemData.name,
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "date",
|
"fieldname": "date",
|
||||||
"label": "Date",
|
"label": "Date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Datetime",
|
||||||
"required": true,
|
"required": true,
|
||||||
"section": "Default"
|
"section": "Default"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user