Spaces:
Sleeping
Sleeping
Download frontend/src/features/forms/defaults.js from Caner7/Muhasebe: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/spaces/Caner7/Muhasebe/resolve/main/frontend/src/features/forms/defaults.js
- Command line
-
hf download hf://spaces/Caner7/Muhasebe/frontend/src/features/forms/defaults.js
-
curl -L -o defaults.js https://huggingface.co/spaces/Caner7/Muhasebe/resolve/main/frontend/src/features/forms/defaults.js
1.94 kB
| 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: "", | |
| }; | |
| } | |