fixing purchase invoice dates
This commit is contained in:
@@ -30,6 +30,8 @@ import java.math.RoundingMode;
|
|||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
import static java.time.OffsetDateTime.now;
|
||||||
|
|
||||||
@Service("purchaseInvoice")
|
@Service("purchaseInvoice")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class PurchaseInvoiceHandler implements HandlerInterface {
|
public class PurchaseInvoiceHandler implements HandlerInterface {
|
||||||
@@ -139,8 +141,8 @@ public class PurchaseInvoiceHandler implements HandlerInterface {
|
|||||||
.doctype("Purchase Invoice")
|
.doctype("Purchase Invoice")
|
||||||
.supplier("Steward Bank")
|
.supplier("Steward Bank")
|
||||||
.company(erpnextCompany)
|
.company(erpnextCompany)
|
||||||
.postingDate(transaction.getCreatedAt().toLocalDate().toString())
|
.postingDate(now().toLocalDate().toString())
|
||||||
.dueDate(transaction.getCreatedAt().toLocalDate().plusDays(1).toString())
|
.dueDate(now().toLocalDate().plusDays(1).toString())
|
||||||
.docstatus(1)
|
.docstatus(1)
|
||||||
.isReturn(0)
|
.isReturn(0)
|
||||||
.isPaid(0)
|
.isPaid(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user