diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index f9b1f31..0429b7d 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -30,6 +30,10 @@ { Path: "/transfer", Name: "Transfer", + }, + { + Path: "/payment", + Name: "Payment", } ] diff --git a/src/routes/payment/+page.svelte b/src/routes/payment/+page.svelte new file mode 100644 index 0000000..65a0323 --- /dev/null +++ b/src/routes/payment/+page.svelte @@ -0,0 +1,497 @@ + + +
+

Manage Payments

+ + + {#if $error} +

{$error}

+ {/if} + + +
+

+ {editingPayment ? "Edit Payment" : "Add New Payment"} +

+ + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+

Items:

+ + + + + {#each (currentPayment.items as ItemBought[]) as itemBought, index} +
+

Item {index + 1}

+ + + + + + + + + + + + + + +
+ Total Cost: + {NumberToFPA(itemBought.price*itemBought.quantity) || ""} +
+ + + + + {#if itemBought.metric_type != 0} + + + {/if} + + + +
+ {/each} +
+ + + +
+ + {#if editingPayment} + + {/if} +
+
+ + +

Payments List

+ +