Spaces:
Sleeping

File size: 1,941 Bytes
57a9d02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
af5644b
 
 
d5c6262
 
af5644b
 
 
 
b0d9121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a8013a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57a9d02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import { currentDateValue } from "../../lib/format.js";

export function createLoginForm() {
  return { username: "", password: "" };
}

export function createOrderForm() {
  return {
    order_date: currentDateValue(),
    order_no: "",
    platform: "Trendyol",
    store_name: "",
    product_name: "",
    quantity: 1,
    order_total: "",
    unit_sale_price: "",
    unit_cost: "",
    commission: "",
    discount: "",
    shipping_cost: "",
    return_shipping_cost: "",
    penalty: "",
    cancellation_amount: "",
    refund_amount: "",
    other_fees: "",
    net_platform_amount: "",
    international_return_fee: "",
    international_service_fee: "",
    platform_service_fee: "",
    notes: "",
  };
}

export function createProductCostForm() {
  return {
    product_name: "",
    unit_cost: "",
    unit_sale_price: "",
  };
}

export function createCompanyForm() {
  return {
    name: "",
    address: "",
    tax_number: "",
    notes: "",
  };
}

export function createTalashPriceForm() {
  return {
    company_id: "",
    effective_date: currentDateValue(),
    unit_price: "",
    notes: "",
  };
}

export function createTalashSaleForm() {
  return {
    company_id: "",
    sale_date: currentDateValue(),
    bag_count: "",
    unit_price: "",
    notes: "",
  };
}

export function createTalashUnitCostForm() {
  return {
    effective_date: currentDateValue(),
    cost_per_bag: "",
    notes: "",
  };
}

export function createTalashExpenseForm() {
  return {
    expense_date: currentDateValue(),
    category: "",
    amount: "",
    notes: "",
  };
}

export function createLumberForm() {
  return {
    lumber_kind: "serit",
    tier_id: "",
    operation_count: "",
    notes: "",
  };
}

export function createExpenseForm() {
  return {
    expense_date: currentDateValue(),
    mode: "oneoff",
    template_id: "",
    category: "",
    amount: "",
    notes: "",
    template_default_amount: "",
  };
}